In our system there are sereral EJB. We have identified that 2 beans will always be deployed on the single apps server. To communicate bertween these two also we have to lookup ( which is unnecessary) Can the 2 beans talk to each other without lookup. Is there a way to get remote handle without jndi lookup.
Can anybody guide on this
Thanks
-
Get remote handle without lookup (SOS) (2 messages)
- Posted by: Pranav Kamkhalia
- Posted on: October 25 2000 02:59 EDT
Threaded Messages (2)
- Get remote handle without lookup (SOS) by Dimitri Rakitine on October 25 2000 03:15 EDT
- Get remote handle without lookup (SOS) by Raj Sankuratri on October 25 2000 22:27 EDT
-
Get remote handle without lookup (SOS)[ Go to top ]
- Posted by: Dimitri Rakitine
- Posted on: October 25 2000 03:15 EDT
- in response to Pranav Kamkhalia
I do not think so, but on a single server overhead will neglidgeble. To make things easier, you do not have to supply any parameters to 'new InitialContext()' - all enviroment is provided by the container (1.1 that is). -
Get remote handle without lookup (SOS)[ Go to top ]
- Posted by: Raj Sankuratri
- Posted on: October 25 2000 22:27 EDT
- in response to Pranav Kamkhalia
If you are looking to reduce the overhead of JNDI lookup, you can cache the EJBHome reference. In some Application Servers like WebSphere, you can secify if the bean-to-bean interaction is local to optimize the JNDI lookup.