Check datasource java

Posted: July 23, 2012 in web

1) goto src/main/resources/META-INF/persistence.xml. Look for

java:jboss/datasources/TestDS

2) go to jboss server standalone.xml. Look for

 <datasource jndi-name="java:jboss/datasources/TestDS" pool-name="TestDS" enabled="true" use-java-context="true">
                    <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>
...
                </datasource>

This is using H2 monitor (in memory db for dev purpose only)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s