Create DataSource using JBoss 7 JNDI and Spring -


i first time making webapp jboss server. jboss have jndi details, wondering how create datasource using in spring application context.

if has example create connection, please share it.

i put sample here.

just show way it.

<bean id="datasource" class="org.springframework.jndi.jndiobjectfactorybean">     <property name="jndiname">         <value>java:jboss/datasources/dsname</value>     </property> </bean> 

Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -