Discussion:
[jboss-user] [JNDI and Naming] - Configuring JNDI dynamically
Ramanathan Lakshmanan
2013-03-22 16:37:58 UTC
Permalink
Ramanathan Lakshmanan [https://community.jboss.org/people/ars.ram] created the discussion

"Configuring JNDI dynamically"

To view the discussion, visit: https://community.jboss.org/message/804333#804333

--------------------------------------------------------------
I'm working on struts2 with hibernate 3.3. I'm new to this environment. I'd like to know how to configure JNDI datasource on EAP Jboss 6.0 dynamically and use driver jar file from my project war file, without manually changing anything in standalone.xml?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/804333#804333]

Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]
Wolf-Dieter Fink
2013-03-23 20:14:59 UTC
Permalink
Wolf-Dieter Fink [https://community.jboss.org/people/wdfink] created the discussion

"Re: Configuring JNDI dynamically"

To view the discussion, visit: https://community.jboss.org/message/804445#804445

--------------------------------------------------------------
You might pack the driver into the war file and use it manually.
But in this case you will not have a pool and benefit from the app-server.

If you use the CLI to configure the database and create a module for for the driver you can use the connection inside the application.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/804445#804445]

Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]
Loading...