Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB and other Java EE Technologies and the fly likes 【help】lookup Error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "【help】lookup Error" Watch "【help】lookup Error" New topic
Author

【help】lookup Error

pinheng wang
Greenhorn

Joined: May 24, 2002
Posts: 5
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?