File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Lookup problem with local bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Lookup problem with local bean" Watch "Lookup problem with local bean" New topic

Lookup problem with local bean


Joined: Jul 29, 2002
Posts: 24
I would like to clarify onething. I have deployed one LOcalejb in the weblogic server as separate JAR file. And i am trying to lookup that localbean from a servlet which is deployed as a separate WAR file in the server. And its not able to lookup that.
Can anyone tell why is like that. I know that if u want to lookup a local bean, it should be in the same JVM. But my doubt is these WAR & JAR are handled bt separate JVM or what??
If that is the case i think if we are making an EAR file of WAR+JAR, will it work???
Or if anyone knows any better idea please help me out in solving that problem.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
They should be in the same EAR.
rastin purr
Ranch Hand

Joined: Jul 20, 2002
Posts: 73
Dear Chris,
Could you explain further? Having both war and jar (the ejb jar) in an ear would mean executing them both in the same jvm as for as the Application server is concern, so does that means looking up local references is possible?
for example if i had a ejb-jar file. Make a vendor specific ejb-jar file as well. In the vendor specific ejb-jar file there is a way to specified the jndi lookup nane for that ejb-jar file. Is that the jndi name to lookup a remote or local? Does Websphere specified 2 kinds of jndi name to lookup remote and local reference?
I agree. Here's the link:
subject: Lookup problem with local bean
jQuery in Action, 3rd edition