-
1. Re: When I try to get the datasource from JNDI using the loo
lzhlzh Sep 2, 2002 4:03 AM (in response to lzhlzh)//oracle-service.xml
and it's good
becauce in jsp files of lookup("java:/OracleDS") is success
<?xml version="1.0" encoding="UTF-8"?>
<depends optional-attribute-name="ManagedConnectionFactoryName">
OracleDS -
2. Re: When I try to get the datasource from JNDI using the loo
juha Sep 2, 2002 6:06 AM (in response to lzhlzh)Are you trying to do the lookup from a separate process client (Client.java) or from within the session bean?
A lookup from a separate process client can't access the private 'java:comp/env' namespace. -
3. Re: When I try to get the datasource from JNDI using the loo
lzhlzh Sep 2, 2002 9:38 PM (in response to lzhlzh)oh.thanks.
this Client(.java) is a test programm.still is a stand process.
but used (jdbc/OracleDS) is error.
How to get datasource in client? -
4. Re: When I try to get the datasource from JNDI using the loo
juha Sep 3, 2002 9:59 AM (in response to lzhlzh)We don't export datasources to the global namespace, only under the in-VM name space (java:/something), so you can't lookup a DS from client. Instead use a stateless session, servlet or MBean as a server side component and hook your client to that.
-
5. Re: When I try to get the datasource from JNDI using the loo
lzhlzh Sep 4, 2002 4:57 AM (in response to lzhlzh)thank you very much.
my session bean of using lookup("java:/OracleDS") is successful.