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?
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.