1.  Get the latest MySQL JDBC Connector/J driver from www.mysql.com - 3.0.11 works 
well.  Place the JAR driver file in your jboss/server/default/lib directory.

2.  Create a file called mysql-ds.xml (or anything-ds.xml) with the following 
contents, and drop it in the deploy directory:


  | <?xml version="1.0" encoding="UTF-8"?>
  | <datasources>
  |         <local-tx-datasource>
  |                 <jndi-name>MysqlDS</jndi-name>
  |                 <connection-url>jdbc:mysql://localhost/test</connection-url>
  |                 <driver-class>com.mysql.jdbc.Driver</driver-class>
  |                 <user-name>yourusername</user-name>
  |                 <password>yourpassword</password>
  |         </local-tx-datasource>
  | </datasources>
  | 

Of course, replace 'yourusername' and 'yourpassword' with a username and password that 
can access the database.  

As for getting an app to talk to the DB, I recommend the jboss workbook that goes with 
o'reilly's EJB book, see http://www.oreilly.com/catalog/entjbeans3/workbooks/

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

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


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to