[jboss-user] [JNDI/Naming/Network] - Re: Configuring JNDI Datasource (MySQL-5.1.36) in JBOSS 5.1.

jaikiran do-not-reply at jboss.com
Wed Aug 5 08:05:59 EDT 2009


anonymous wrote : 1. Copy JDBC Driver to $JBOSS_HOME$/server/default/lib/-where is find this? 

You mean you want to know where to find the JDBC jar file? Since you mention MySQL, the driver jar will be available here http://dev.mysql.com/downloads/connector/j/5.1.html. After you download that .tar/.zip, extract it to some folder. Inside that you will find a jar (ex: mysql-connector-java-5.1.8-bin.jar). Copy that jar to $JBOSS_HOME/server/default/lib
anonymous wrote : 
  | 2. i copied the sample from $JBOSS_HOME$/docs/examples/jca/mysql-ds.xml
  | to $JBOSS_HOME$/server/default/deploy-is this all i need to do? 

You will have to edit it to point to the correct database URL and the user name, password.

More details about the datasource configuration can be found here:

http://www.jboss.org/community/wiki/ConfigDataSources

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

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



More information about the jboss-user mailing list