1 Reply Latest reply on Mar 23, 2013 4:14 PM by wdfink

    Configuring JNDI dynamically

    ars.ram

      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?

        • 1. Re: Configuring JNDI dynamically
          wdfink

          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.