• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to do local look ups in a clustered environment?  RSS feed

 
LGu Gu
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a clustered environment. And need to go through a series of EJB calls. For performance reasons, I like to all EJB calls in one action are all invoked on one node. So, after the first EJB call on one node, I like to do local look up on the same node for subsequent EJB calls. Help needed. THanks!
Liang
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Excuse me if this seems obvious... but just get an InitialContext to the local server everytime you need to lookup an ejb.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!