Microsoft
Software
Hardware
Network
Question : lookup a Local entity bean...How?
I am migrating a J2EE app from WAS4 to WAS5.1 in the process we are trying to take advantage of the new Local EJBs, so we have changed a handful of our remote entity beans into Local entity beans.
We are having an error now when we try to lookup the beans home interface.
We are doing it the same way we were doing it when they were remote entity beans:
Hashtable parms = new Hashtable();
parms.put(Context.INITIAL_
CONTEXT_FA
CTORY,"com
.ibm.websp
here.namin
g.WsnIniti
alContextF
actory");
InitialContext ctx = new InitialContext(parms);
webHome =(WebResLocalHome)ctx.look
up("ejb/go
v/mdc/comm
on/ejb/ent
ityBeans/W
ebResLocal
Home");
This isnt working now. We are getting this error:
[12/10/04 15:31:05:188 EST] 3c924619 mdct E gov.mdct ********** NamingException while initializing FrontController:
[12/10/04 15:31:05:188 EST] 3c924619 mdct E gov.mdct javax.naming.NameNotFoundE
xception: Context: localhost/nodes/localhost/
servers/se
rver1, name: ejb/gov/mdc/common/ejb/ent
ityBeans/W
ebResLocal
Home: First component in name ejb/gov/mdc/common/ejb/ent
ityBeans/W
ebResLocal
Home not found. Root exception is org.omg.CosNaming.NamingCo
ntextPacka
ge.NotFoun
d: IDL:omg.org/CosNaming/Nami
ngContext/
NotFound:1
.0
How do you lookup Local entity beans???
Thanks a lot for your time.
Answer : lookup a Local entity bean...How?
did u try the program which i gave you above.... from the output did u see what the JNDI name is for your WebResLocalHome is......
Random Solutions
IP subnetting question
Issue with moving DHCP from 2000 to 2003 box with DHCPEXIM
Novell, Netware 6.5 , SP 6, Excessive failed logins
Traceroute problem
NetDiag, DCDiag under 2003 Server?
IP Stack Corruption
How to search entire network for a file?
Toshiba CIX100 cofiguration
setting up a metropolitan area network
J2ME Resources