sun application server lookup jdbc resources
- From: "www.guanfenglin.com" <guanfenglin@xxxxxxxxx>
- Date: 7 Feb 2006 14:58:53 -0800
Hello Guys,
I am a newbie in j2ee, I am having problem to lookup jdbc resources via
jndi...
I was able to find the EJBs I deployed, but not any jdbc resources.
here is my code
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.cosnaming.CNCtxFactory");
p.put(Context.PROVIDER_URL, "iiop://localhost:23700");
InitialContext ic = new InitialContext(p);
NamingEnumeration enu = ic.list("");
while(enu.hasMore())
{
Binding b = (Binding) enu.next();
System.out.println(b.getName());
}
the output I have is:
SerialContextProvider
TravelEJB
ConverterEJB
GreeterEJB
ejb
OrderEJB
please help!!
.
- Follow-Ups:
- Re: sun application server lookup jdbc resources
- From: Mark Thomas
- Re: sun application server lookup jdbc resources
- Prev by Date: Re: GUI best practices question
- Next by Date: Re: int cannot be drefrenced....??
- Previous by thread: how to feed a Process object keyboard input
- Next by thread: Re: sun application server lookup jdbc resources
- Index(es):
Relevant Pages
|
|