This content has been marked as final.
Show 1 reply
-
1. Re: lookup remote DataSource fail with JBoss 5 GA
nouredine13 Dec 18, 2008 7:52 AM (in response to nouredine13)i have found the solution:
The one change that is necessary for the client to be able to lookup the DataSource from JNDI is to specify use-java-context=false as shown here:
<local-tx-datasource>
<jndi-name>GenericDS</jndi-name>
<use-java-context>false</use-java-context>
<connection-url>...</connection-url>
...
This results in the DataSource being bound under the JNDI name "GenericDS" instead of the default of "java:/GenericDS" which restricts the lookup to the same VM as the jboss server.
Best regard's.