-
1. Re: java: prefix for datasources
borinsm Jul 28, 2005 6:39 PM (in response to _developer)Is this what you are looking for?
Configuring a DataSource for remote usage
As of jboss-4.0.0 there is support for accessing a DataSource from a remote client. The one change that is neccessary 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.
taken from: http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigDataSources -
2. Re: java: prefix for datasources
frankgrimes Jul 28, 2005 10:35 PM (in response to _developer)See the resource-ref tag of jboss.xml and jboss-web.xml.
e.g.
http://www.huihoo.com/jboss/online_manual/3.0/ch07.html
http://www.huihoo.com/jboss/online_manual/3.0/ch07s22.html -
3. Re: java: prefix for datasources
_developer Aug 2, 2005 5:46 AM (in response to _developer)Thanks a lot!
use-java-context seems to me exactly what I need!