This content has been marked as final.
Show 2 replies
-
1. Re: Using JDBC in Entity Bean
adrian.brock Aug 5, 2002 2:09 PM (in response to kelvinchui)The service you mentioned binds a
javax.sql.DataSource into jndi which you should lookup.
ds = (DataSource) new InitialContext ().lookup("java:yournamehere");
Don't forget to close everything when you are done.
This test source might help?
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/jbosstest/src/main/org/jboss/test/bmp/beans/SimpleBMPBean.java?rev=1.4&content-type=text/vnd.viewcvs-markup
Regards,
Adrian -
2. Re: Using JDBC in Entity Bean
kelvinchui Aug 6, 2002 11:59 AM (in response to kelvinchui)Thanks for your suggestion.
I have fixed the problem.
Regards,
Kelvin