I am experimenting on clustering on a WebLogic cluster.
I have set up
-MyCluster
--server1
--server2
I have set up the WebLogic Properties on server1 and server2 to separate machines to deploy properly, as appeared on the webLogic console (join cluster....)
Problem is, I could get the client to look up using the following code-
What settings do I need to get
p.put(Context.PROVIDER_URL, "t3://myCluster:7001"
; working??
I have set up
-MyCluster
--server1
--server2
I have set up the WebLogic Properties on server1 and server2 to separate machines to deploy properly, as appeared on the webLogic console (join cluster....)
Problem is, I could get the client to look up using the following code-
Code:
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL, "t3://server1,server2:7001");
Context ctx= new InitialContext();
MyBeanHome home = (MyBeanHome) ctx.lookup("MyBean");
...
What settings do I need to get
p.put(Context.PROVIDER_URL, "t3://myCluster:7001"