After struggling for 2 weeks because of error  "datasource-mapping mysql not 
find ",in jboss4.0.0. and put mysql-ds.xml to default\deploy .
I already finally configured as following :
in mysql-ds.xml
    <local-tx-datasource>
    <jndi-name>mysqldbstudents</jndi-name>
    <use-java-context>false</use-java-context>
    <connection-url>jdbc:mysql://localhost:3306/mysqldb</connection-url>
    <driver-class>org.gjt.mm.mysql.Driver</driver-class>
    <user-name>as</user-name>
    as
      
         <type-mapping>mysql</type-mapping>
      
  </local-tx-datasource>  .....  
in standardjaws.xml
     
     java:/mysqldbstudents
   <type-mapping>mysql</type-mapping>
     .....
in standardjbosscmp-jdbc.xml
     java:/mysqldbstudents
      <datasource-mapping>mysql</datasource-mapping>
      <create-table>true</create-table>      .........   
           
thanks.

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

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


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to