Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How i lookup for EJB3 in different server

 
hassan ali
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i need to find Ejb SessionBean in another server to use it

how can id do it?
thank you
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34371
345
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which server - JBoss, WebSphere, WebLogic, etc? The details of how to do this tend to vary by server.

The basics are the same:
1) Add all needed jars to classpath
2) Create an initial context
3) Lookup the remote home interface from the JNDI
 
hassan ali
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using GlassFish
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic