08-09-07 12:24 PM
Hi all,
I have this environment:
-WebSphere 5.1
-1.4.2 IBM jvm
We have 2 server in clustering with 2 nodes with load balancing, so -->
cell/nodes/myNode1/servers/myWSServer1
cell/nodes/myNode2/servers/myWSServer2
I need to lookup a resource from both servers, so I tried to lookup the JNDI
name using the "full path" -->
context.lookup("cell/nodes/myNode1/servers/myWSServer1/ejb/myEjb");
context.lookup("cell/nodes/myNode2/servers/myWSServer2/ejb/myEjb");
but what I get is not what I expected, because the resource that is given to
me is independet from the "path" I use, and it comes from one server or the
other, dependig on the load balancing...
I also tried to use Persistent Namespace Binding -->
I set two different Persistent binding for two EJBs (the "same" EJB in two s
ervers), but when I make the lookups I get the EJBs in the same server...
There's a way to do what I'm trying to do?
Thanks in advance
nihilim
[ Post a follow-up to this message ]
|