I am trying to use MySQL as a DataSource for CMP. I have configured the DataSource
and I am able to look up and use the DataSource from a Servlet with:
DataSource ds = (DataSource)jndiCntx.lookup("java:comp/env/MySqlDS");
or
DataSource ds = (DataSource) ic.lookup("java:/MySqlDS");
When I use CMP the DefaultDS is always used. The only addition I made for this
DataSource was (jbosscmp-jdbc.xml):
<jbosscmp-jdbc>
java:/MySqlDS
<datasource-mapping>mySQL</datasource-mapping>
<preferred-relation-mapping>foreign-key</preferred-relation-mapping>
Are there any other changes I need to make? Is there any way to check in the
JMX-Console to see what datasource a CMP is configured to use?
I am using JBoss-3.2.3.
Thanks
Kevin Nilson
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840518#3840518
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840518
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user