-
1. Re: How can I access a DataSource in JBoss 4.0 from a client
nimrod Sep 24, 2004 12:46 AM (in response to nimrod)Sorry, the error message should be "javax.naming.NameNotFoundException: mySqlServerDB not bound"
-
2. Re: How can I access a DataSource in JBoss 4.0 from a client
darknight Sep 24, 2004 3:12 AM (in response to nimrod)I have the very same problem even if my code does something different. Server-side the data source IS bound...
-
3. Re: How can I access a DataSource in JBoss 4.0 from a client
darknight Sep 24, 2004 3:47 AM (in response to nimrod)And the answer is: you cannot access the DS from client...
So make a bean to handle it.
However, since the default behaviour for JAAS login modules is to make a direct query on the DS it was AWFULLY strange that it didn't work. This isn't coherent at all, please rectify this in the jaas modules. -
4. Re: How can I access a DataSource in JBoss 4.0 from a client
nimrod Sep 24, 2004 4:15 AM (in response to nimrod)The JBossJCA FAQ said "In JBoss-3.2.x you cannot, DataSources are not exposed remotely. There is an implementation of this in JBoss4. I would not recommend this anti-pattern", but how to do it in JBoss4.0.0? Someone said, to bind the datasource in the global jndi namespace, but how to bind the datasource in the global jndi namespace?
-
5. Re: How can I access a DataSource in JBoss 4.0 from a client
nimrod Sep 24, 2004 5:53 AM (in response to nimrod)in xxx-ds.xml,
under this line:
<jndi-name>myHibernateSqlServerDB</jndi-name>
add a new line:
<use-java-context>false</use-java-context>
That's all..