I have an application which has been developed in Tomcat. I configured a datasource in 
Tomcat in the server.xml that comes with Tomcat.



                

          
        
                

...



I also have the following entry in the web.xml of my web application:
<resource-ref>
      DB Connection
      <res-ref-name>jdbc/MySqlDS</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
</resource-ref>

These two steps allow my application to gain access to the datasource through the name 
space: 
java:comp/env/jdbc/securanceDatasource

My question is how do I configure this exact datasource in jboss so that my 
application can access it transparently. I have tried this:


  <local-tx-datasource>
    <jndi-name>securanceDatasource</jndi-name>
    <connection-url>jdbc:mysql://localhost:3306/securance</connection-url>
    <driver-class>com.mysql.jdbc.Driver</driver-class>
    <user-name>user</user-name>
    pass
  </local-tx-datasource>


But this doesn't work. When I try starting jboss I get a huge stacktrace of errors. I 
am sure that the mysql driver is in the lib folder of the server I am working in. 

Thanks in advance

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

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


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to