This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Lookup problem with local bean" Watch "Lookup problem with local bean" New topic
Author

Lookup problem with local bean

georgejk
Greenhorn

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.
Regards
George
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?
Say,
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?
Cheers
Ras
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Lookup problem with local bean
 
Similar Threads
problem in deploying WAR files in server
How to deploy ejb application on two jvms?
jndi lookup problem in OC4J Application Server
EJB Local home lookup - URGENT
classpath woes