This content has been marked as final.
Show 5 replies
-
1. Re: look up datasource failing~
jaikiran Oct 25, 2006 10:45 PM (in response to tntxia)Looking at your stacktrace it appears that you are looking up the datasource from a standalone java class. This will not work since datasources are not exposed remotely. Have a look at:
http://wiki.jboss.org/wiki/Wiki.jsp?page=HowCanIAccessADataSourceFromAClient
for more details -
2. Re: look up datasource failing~
weston.price Oct 25, 2006 10:48 PM (in response to tntxia)Note, exposing a DataSource remotely is *not* encouraged.
But yes, that is the issue. -
3. Re: look up datasource failing~
jaikiran Oct 25, 2006 10:56 PM (in response to tntxia)Note, exposing a DataSource remotely is *not* encouraged.
Mentioned this in the wiki as well so that this need not be repeated. -
4. Re: look up datasource failing~
weston.price Oct 25, 2006 11:00 PM (in response to tntxia)Actually it is here
http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigDataSources
Note: JBoss does not recommend using this feature on a production environment. It requires accessing a connection pool remotely and this is an anti-pattern as connections are not serializable. Besides, transaction propagation is not supported and it could lead to connection leaks if the remote clients are unreliable (i.e crashes, network failure). If you do need to access a datasource remotely, JBoss recommends accessing it via a remote session bean facade.
But it doesn't hurt to have it in two places people won't read ;-) -
5. Re: look up datasource failing~
jaikiran Oct 26, 2006 2:54 AM (in response to tntxia)But it doesn't hurt to have it in two places people won't read ;-)
:-)