Is there any discussion on best practices for looking up EJB in multiple servers that are clustered?
E.g. EJB1.ear is deployed in 2 different WebSphere boxes - box1 and box2. My code (e.g. code.ear) is also deployed in box1 and box2.
Within box 1, code.ear is deployed in a server called Svr1 and EJB1.ear is deployed in a server called Svr2.
Same goes for box2.
I am using WebSphere 5.1.x
Hashtable properties = new Hashtable();
properties.put(Context.PROVIDER_URL, url);
// url = "iiop://" + "myhostname" + ":" + "MyPortNumber";
Can I do the following things?
1) Can I specify virtual host as the hostname for both box1 and box2?
2) Can I skip providing port number?
By doing the above 2 things, can I still get reference to the same EJB that is deployed in box1 and box2?
E.g. EJB1.ear is deployed in 2 different WebSphere boxes - box1 and box2. My code (e.g. code.ear) is also deployed in box1 and box2.
Within box 1, code.ear is deployed in a server called Svr1 and EJB1.ear is deployed in a server called Svr2.
Same goes for box2.
I am using WebSphere 5.1.x
Hashtable properties = new Hashtable();
properties.put(Context.PROVIDER_URL, url);
// url = "iiop://" + "myhostname" + ":" + "MyPortNumber";
Can I do the following things?
1) Can I specify virtual host as the hostname for both box1 and box2?
2) Can I skip providing port number?
By doing the above 2 things, can I still get reference to the same EJB that is deployed in box1 and box2?