It's not a secret anymore!
The moose likes BEA/Weblogic and the fly likes Weblogic 7.0 JDBC Culster Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Weblogic 7.0 JDBC Culster" Watch "Weblogic 7.0 JDBC Culster" New topic

Weblogic 7.0 JDBC Culster

Santhosh Kumar
Ranch Hand

Joined: Nov 07, 2000
Posts: 242
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.
Dave Landers
Ranch Hand

Joined: Jul 24, 2002
Posts: 401
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.
I agree. Here's the link:
subject: Weblogic 7.0 JDBC Culster
It's not a secret anymore!