Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
EJB and other Java EE Technologies
Author
【help】lookup Error
pinheng wang
Greenhorn
Joined: May 24, 2002
Posts: 5
posted
Jun 14, 2002 11:06:00
0
in
SessionBean
:
public void setSessionContext(
SessionContext
sessionContext) {
this.sessionContext = sessionContext;
try {
javax.naming.Context
context1 = new
javax.naming.InitialContext
();
if(logging)System.out.println("start to lookup entitybean jndi 2");
countrylistHome = (MmshowCountrylistHome) context1.lookup("java:comp/env/ejb/MmshowCountrylist");
if(logging)System.out.println("sessionbean jndi successful");
}
catch (Exception ex) {
if(logging)System.out.println(ex.toString());
}
}
Error message:
javax.naming.NameNotFoundException
: Unable to resolve comp/env/ejb/MmshowCountrylist Resolved: 'comp/env' Unresolved:'ejb' ; remaing name 'MmshowCountrylist'
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: 【help】lookup Error
Similar Threads
Unable to Find EJB in JNDI
JNDI and WAS Deployment Descriptot
Lookup strings question
Remote / Local beans problem (WSAD 5)
How to do lookup for local ejb's in WSAD?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter