This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Weblogic 7.0 JDBC Culster

 
Santhosh Kumar
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Dave Landers
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic