Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejb3 newbie questions

 
al nik
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello. sorry I'm newbie with ejb. I don't understand basic concepts.
I can have my ejbs deployed on different servers.
If I have an ejb deployed on my J2EE server I can inject it with @EJB (only in servlets and other components that runs inside my J2EE server, right?), and if I have a standalone java class I have to do a lookup.
I can access a remote ejb (with an RMI call).. I have build a @Remote ejb and I have accessed it within my server, .. but how can I lookup an ejb located in another server with another ip address (another host)..?
some examples?
I have to set some properties like these



to set the InitialContext before lookup an ejb that's located in another host?
thanks a lot
[ December 18, 2007: Message edited by: al nik ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic