Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how can i visit an ejb which is in a j2ee Server from tomcat  RSS feed

 
kenkin you
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i visit an ejb which is in a j2ee Server from tomcat ???

thank you!!!
 
Tim Holloway
Bartender
Posts: 18720
72
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would help I think to mention which EJB Server. Most common is JBoss, though I use JOnAS myself. I think some have used WebLogic, but that's sort of a duplication of effort, since WebLogic has a perfectly good servlet/JSP server itself.
The exact details vary from server to server, so you need to look at the docs and examples for your server. But basically, it's the same as for standalone apps. You grab the RMI Registry that is serving for your EJB server, lookup the EJB's home interface and go from there.
 
Michael Arndt
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tim Holloway:
[...] You grab the RMI Registry that is serving for your EJB server, lookup the EJB's home interface and go from there.

You do not grap the RMI Registry. Instead you use the JNDI Context.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!