Thank you adrian. I 'm suprised at the very fast reply.
I'm sorry about problem with CMP2.0, i used datasourcename instead
java:/datasourcename. now i fixed it. But i can't lookup that datasource
Context ctx = getInitCtx();//set properties
Object objds = ctx.lookup("datasourcename")//java:/datasourcename , i tried.
--> datasourcename not bound ??? ejb work with that datasource ????
there're my configuration file :
--mysql-ds.xml--
-
- <local-tx-datasource>
<jndi-name>mysqldstest</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/test</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
rootpassword
</local-tx-datasource>
--mysql-jdbc2-service.xml--
<depends
optional-attribute-name="ConnectionManager">jboss.jca:service=LocalTxCM,name=mysqldstest
--standardjbosscmp-jdbc.xml--
- <jbosscmp-jdbc>
-
java:/mysqldstest
<datasource-mapping>mySQL</datasource-mapping>
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831299#3831299
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831299
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user