I have installed jboss 4.0.4.GA and have configured a MySQL datasource, named 
"qmmsDB", as I did in jboss 4.0.2. However, when my code attempts to look up 
the data source, a null value is returned and no exeception is returned. The 
code is as follows:

Context ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:/qmmsDB");

The value of ds is always null, yet the same code and mysql-ds.xml worked in 
4.0.2. The following are extracts from mysql-ds.xml:

<jndi-name>qmmsDB</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/qmmsDB?autoReconnect=true</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>

Help anyone out there!


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

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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to