aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Weblogic 7.0 JDBC Culster" Watch "Weblogic 7.0 JDBC Culster" New topic
Author

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.
Santhosh.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
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

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

Joined: Jan 16, 2002
Posts: 91
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?


Arun Sahni<br />SCJP2,SWCD,<br />BEA Certified Specialist: Server <br />JCert Enterprise Developer for BEA.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
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 ]
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1850
Chris,
Can you point me to the weblogic 7.0 documentation for this.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Rahul,
Here is your link.
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1850
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

Joined: Jul 18, 2001
Posts: 2712
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Weblogic 7.0 JDBC Culster