Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

When calling a Remote EJB Object  RSS feed

 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • 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
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36417
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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
Sheriff
Posts: 36417
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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?
 
Scott Selikoff
author
Bartender
Posts: 4081
21
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36417
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!