Hi!

Tai-Hsin Lu wrote:
>   Thx so much for your document..
>   I have been working on db for several days and cant get my stateless session bean 
>connnect to db
>   I have fixed the problem now..
>   One of the difficult is what name should I use in order to lookup the db source in 
>my ejb
>   Most of the mails which I read all says names like "jdbc/myDataSource", which 
>doesnt work
>   But when I change to "java:comp/env/jdbc/myDataSource" it works
>   Can any one tells me whats the difference between these two names

If you read the EJB specification the difference should be clear. You
specify "jdbc/myDataSource" in the deployment descriptor, and prefix it
with "java:comp/env" when you use it in your beans.

/Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to