• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Weblogic 7.0 JDBC Culster

 
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Happily living in the valley of the dried frogs with a few tiny ads.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic