• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You is taken of when you get your initial context.
You have two choices:
1) Give a comma separated list of nodes in the cluster as the PROVIDER_URL.
2) Give a cluster DNS name the contains the full list of all nodes in the cluster.

or

Of the two, the second choice is best. It is more maintainable and BEA admits to a bug related to the resolution of comma separated cluster lists.
Regardless of how you do the lookup, the naming service is then chosen by DNS Round-Robin.
[ September 17, 2002: Message edited by: Chris Mathews ]
 
Santhosh Kumar
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cris, I understood this concept now. I'll configure the same and test it. If I have any more questions, I'll continue back here.
Thank you so much,
Santhosh.
 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Chris
Just thinking WLS 7.x allows to run multiple instances of MS on single IP address. If I run 2 instances on same m/c then how can I figure out using DNS or configuring network file for name resoloution?
Sinc most of us for testing do not have many m/c to test true clustering what is the best soln. using 1 or 2 m/c's?
 
Chris Mathews
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In 7.0 you can specify comma separated name :p ort pairs in your initial context lookup.

Definitely for development clustering on a single machine is the way to go. I don't know many places that are willing to give developers multiple machines. In fact, some places that I have worked wouldn't have given us a single machine if they could get around it .
[ September 19, 2002: Message edited by: Chris Mathews ]
 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Chris,
Can you point me to the weblogic 7.0 documentation for this.
 
Chris Mathews
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rahul,
Here is your link.
 
Rahul Mahindrakar
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks
It looks like I never read this document and focused on the other areas like ejb etc . Strange I still got 100% in my Weblogic Exam in the clustering section.
 
Chris Mathews
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We can't read everything... try as we might.
I still have a wish list miles long with books that I want to read. Sometimes I think software development was invented by publishers to sell more books
 
reply
    Bookmark Topic Watch Topic
  • New Topic