• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

When calling a Remote EJB Object

 
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys, I need to call an EJB which is alive from another Server. The client would also be an EJB(part of my app). I'm just a little confused, do I still need to reference the jar files of the EJB I need to call or not? Do I need an entry in my ejb-jar about the EJB I'm going to call?

Thanks
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Timothy Sam:
I still need to reference the jar files of the EJB I need to call or not?


No. You do needs the stubs, but not the full fledged jar.



Do I need an entry in my ejb-jar about the EJB I'm going to call?


No. You only need an entry in your ejb-jar for beans defined and deployed withing that ejb jar file.
 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, I'm using RAD7 btw... Are you saying that even without the jar files I should be able to solve compilation issues? Thanks!
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Timothy Sam:
even without the jar files I should be able to solve compilation issues?


You still need a jar file. What you don't need is the full jar file. For example, you don't need the bean implementation class.
 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Jeanne.

Just a bonus question...

So if such a situation happens that I am not supplied with any jar file... But I know the fully qualified names of the remote and home class and I also know the provider URL (node and port) and say, the JNDI name. Is there any way I can resolve the compilation issue? Perhaps download the jar file or something?
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Timothy,
I second Scott's "no." You would need to ask the provider for a jar. If you want to be able to have people call your EJB without a client jar, consider using a web service instead.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic