Have a look at:
http://wiki.jboss.org/wiki/Wiki.jsp?page=HowCanIAccessADataSourceFromAClient
However, this is not a recommended approach as mentioned at
http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigDataSources
anonymous wrote : 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.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023478#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...