There are a few things to look for: 

1) Use the JNDIView MBean to list the JNDI context and make sure that 
DataSource, as you have configured it is showing up. You should  see it in the 
Global JNDI namespace.  

2) Add a resource reference to application component (EJB or otherwise) that 
allows a logical name mapping to a physical JNDI name. This would show up as 
something like

<resource-ref id="ResourceRef_1105457328015">
                <res-ref-name>data</res-ref-name>
                <res-type>javax.sql.DataSource</res-type>
                <res-auth>Container</res-auth>
                <res-sharing-scope>Shareable</res-sharing-scope>
        </resource-ref>


Then, you would look up your datasource as
DataSource ds = (DataSource)ctx.lookup("java:comp/env/data"); 

I may be a bit confused on why you are removing or altering the Hypersonic 
datasource.  You should just be able to deploy your MySQL datasource without 
modifying the default data source at all. Is there something I am missing? 

Weston

i

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

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


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to