• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Lookup problem with local bean

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
They should be in the same EAR.
 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ever since I found this suit I've felt strange new needs. And a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic