WebSphere Application Server - Re: EJB Local Bindings

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > January 2006 > Re: EJB Local Bindings





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: EJB Local Bindings

2006-01-29, 9:47 pm

Eswar,
I have recently done some similar changes (haven't tested in a cluster yet).
Instead of using same JNDI name for both local and remote beans:
Assuming that you have bean 'A' with RemoteA and HomeA interfaces with jndiA,
create a NEW EJB in the deployment descriptor with LocalA and LocalHomeA but and jndiA, the actual EJB is still the original 'A'.

Now create the LocalA and LocalHomeA with the methods that you want to use LOCALLY from the EJB and ofcourse without Remoteexceptions.

This way I had my one EJB serving both local and remote purposes. However I haven't tested in a cluster yet.

If this solution works for you and if you can test it in a cluster, I would like to the results.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com