[jboss-user] [JNDI/Naming/Network] - Re: Tomcat dabase in JBoss

PeterJ do-not-reply at jboss.com
Tue Dec 26 17:44:05 EST 2006


In your application, how are you accessing the database? Directly via JNDI or are you using a data source defined within Tomcat? If the former, you don't have to make any changes (well, you do need to copy the JDBC driver jar file to the server/default/lib directory).

If the later, you need to create a *-ds.xml file to define the data source, and copy it to the server/default/deploy directory (and put the JDBC driver jar file in the server/default/lib directory).  Several example *-ds.xml files, for various databases, can be found at ./docs/examples/jca. And the documentation is at http://docs.jboss.com/jbossas/guides/j2eeguide/r2/en/html_single/#ch7.jdbc.sect

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996344#3996344

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996344



More information about the jboss-user mailing list