I'm trying to configure the Weblogic JDBC in cluster. I'm getting confused at the conceptual level. Let's say I have following two Two m/cs 1. MC1 (Hosting Adming server AS1 and managed server MS2 2. MC2 (Hosting managed server MS2) MS1 and MS2 are part of the cluster CLUSTER1. I have created a JDBC pool and corresponding datasource in managed server and given "CLUSTER1" as the target. As MS1 and MS2 are part of the cluster, pool should be automatically be available in the both managed server. My qustions are, 1. When we look up to get the Datasource context, which server should I lookup to? MS1 or MS2? 2. If we lookup to MS1 or MS2, its bound to one sever. How it will work in cluster? 3. Is it possible to look up to Admin server? Your help is greatly appreciated. Santhosh.
You should target the pool and the code that uses it together to the same cluster. For example, if you are using the pool in an ejb, then target the ejb also to the cluster. Then, all code uses "local" server to use the pool: new InitialContext().lookup( "pool" ); If you can do this then there are no code changes required to switch from single server to cluster. It is all a matter of proper configuration.