Yes, its work, :-)
Thank you so much.
i have a error in my connection code.
| DataSource ds=(DataSource)ctx.lookup("java:comp/env/jdbc/myjndi");
| changed to
| DataSource ds=(DataSource)ctx.lookup("java:/myjndi");
|
|
Thank you again.
View the original post :
http://www.jboss.com/
Thank you fro your reply.
i got exception in runtime when i try to use my ejb.
but about ejb. i use BMP. i know that there is a jbosscmp-jdbc file for setting
datasource in CMP but how about BMP.
i try to add these setting in ejb-jar.xml but it was useless... :-(
...
jdbc/myjndi
Hi all.
i write a program that use mssql server for DB.
in servlets i can use sql server connection properly.
but when i try to use sqlserver in EJB, an exception occurs.
i found that in my ejb, when i get DB connection, it point to Default ds
(HSQLDB).
i think i must make a configuration file th