MutliPool

Im trying to use Multi Pool.
Here is my config.
I got SQL Server 2000 running on machine A
Another SQL Server 2000 running on Machine B.
I have created 2 connection pool
SQLPOOL
jdbc:weblogic:mssqlserver4:weblogic@dbserv (pointing to one sql server
instance)
weblogic.jdbc.mssqlserver4.Driver
user=sa
password=bea
SQLPOOL_Andro
jdbc:weblogic:mssqlserver4:weblogic@ANDROMEDA (pointing to second sql server
instance)
weblogic.jdbc.mssqlserver4.Driver
user=sa
password=bea
I have created a multipool "MultiPool" with target pool
SQLPOOL
SQLPOOL_Andro
Algorithm - "Load Balancing"
then created a datasource MultiPoolD pointing to "MultiPool"
Both my SQL Server 2000 is running fine. Got "weblogic" database on both the
machines. Got a "Customer" table on both the servers.
I try to run a sample client (inserting a record into customer table). when
both the servers are running. record is inserted into the database on bothe
the server instance in round robin fashion.
Now I shut down one SQL Server (databse ) running on machine (ANDROMEDA).
then i try to run the same client. I get follwoing exception. fail-over is
not happening.
Exception is
weblogic.jdbc.mssqlserver4.TdsException: I/O exception while talking to the
ser
er, java.net.SocketException: Connection reset by peer: socket write error
Start server side stack trace:
weblogic.jdbc.mssqlserver4.TdsException: I/O exception while talking to the
ser
er, java.net.SocketException: Connection reset by peer: socket write error
at
weblogic.jdbc.mssqlserver4.TdsStatement.execute(TdsStatement.java:22
at
weblogic.jdbc.mssqlserver4.TdsStatement.executeUpdate(TdsStatement.j
va:97)
at weblogic.jdbc.pool.Statement.executeUpdate(Statement.java:872)
at
weblogic.jdbc.rmi.internal.StatementImpl.executeUpdate(StatementImpl
java:89)
at weblogic.jdbc.rmi.internal.StatementImpl_WLSkel.invoke(Unknown
Sourc
at
weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.ja
a:267)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteReques
.java:22)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
End server side stack trace
at
weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutbound
equest.java:85)
at
weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:135)
at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
at $Proxy3.executeUpdate(Unknown Source)
at
weblogic.jdbc.rmi.internal.StatementStub.executeUpdate(StatementStub
java:74)
at
weblogic.jdbc.rmi.SerialStatement.executeUpdate(SerialStatement.java
99)
at com.jdbc.multipool.main(multipool.java:34)

pavans wrote:
>
Im trying to use Multi Pool.
Here is my config.
I got SQL Server 2000 running on machine A
Another SQL Server 2000 running on Machine B.
I have created 2 connection poolHi. The issue is that multipool failover can only occur during
the call your code makes to get a connection, and only if your
pools are defined to test connections on reserve. Once you
have a connection from a pool, if the DBMS goes down, the only
way to continue is to close the broken connection and ask for a
new one from the pool(s). At that time, if one pool's DBMS is down,
you should get one from the other pool.
Joe
>
SQLPOOL
jdbc:weblogic:mssqlserver4:weblogic@dbserv (pointing to one sql server
instance)
weblogic.jdbc.mssqlserver4.Driver
user=sa
password=bea
SQLPOOL_Andro
jdbc:weblogic:mssqlserver4:weblogic@ANDROMEDA (pointing to second sql server
instance)
weblogic.jdbc.mssqlserver4.Driver
user=sa
password=bea
I have created a multipool "MultiPool" with target pool
SQLPOOL
SQLPOOL_Andro
Algorithm - "Load Balancing"
then created a datasource MultiPoolD pointing to "MultiPool"
Both my SQL Server 2000 is running fine. Got "weblogic" database on both the
machines. Got a "Customer" table on both the servers.
I try to run a sample client (inserting a record into customer table). when
both the servers are running. record is inserted into the database on bothe
the server instance in round robin fashion.
Now I shut down one SQL Server (databse ) running on machine (ANDROMEDA).
then i try to run the same client. I get follwoing exception. fail-over is
not happening.
Exception is
weblogic.jdbc.mssqlserver4.TdsException: I/O exception while talking to the
ser
er, java.net.SocketException: Connection reset by peer: socket write error
Start server side stack trace:
weblogic.jdbc.mssqlserver4.TdsException: I/O exception while talking to the
ser
er, java.net.SocketException: Connection reset by peer: socket write error
at
weblogic.jdbc.mssqlserver4.TdsStatement.execute(TdsStatement.java:22
at
weblogic.jdbc.mssqlserver4.TdsStatement.executeUpdate(TdsStatement.j
va:97)
at weblogic.jdbc.pool.Statement.executeUpdate(Statement.java:872)
at
weblogic.jdbc.rmi.internal.StatementImpl.executeUpdate(StatementImpl
java:89)
at weblogic.jdbc.rmi.internal.StatementImpl_WLSkel.invoke(Unknown
Sourc
at
weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.ja
a:267)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteReques
.java:22)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
End server side stack trace
at
weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutbound
equest.java:85)
at
weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:135)
at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
at $Proxy3.executeUpdate(Unknown Source)
at
weblogic.jdbc.rmi.internal.StatementStub.executeUpdate(StatementStub
java:74)
at
weblogic.jdbc.rmi.SerialStatement.executeUpdate(SerialStatement.java
99)
at com.jdbc.multipool.main(multipool.java:34)--
B.E.A. is now hiring! (12/14/01) If interested send a resume to [email protected]
DIRECTOR OF PRODUCT PLANS AND STRATEGY San Francisco, CA
E-SALES BUSINESS DEVELOPMENT REPRESENTATIVE Dallas, TX
SOFTWARE ENGINEER (DBA) Liberty Corner, NJ
SENIOR WEB DEVELOPER San Jose, CA
SOFTWARE ENGINEER (ALL LEVELS), CARY, NORTH CAROLINA San Jose, CA
SR. PRODUCT MANAGER Bellevue, WA
SR. WEB DESIGNER San Jose, CA
Channel Marketing Manager - EMEA Region London, GBR
DIRECTOR OF MARKETING STRATEGY, APPLICATION SERVERS San Jose, CA
SENIOR SOFTWARE ENGINEER (PLATFORM) San Jose, CA
E-COMMERCE INTEGRATION ARCHITECT San Jose, CA
QUALITY ASSURANCE ENGINEER Redmond, WA
Services Development Manager (Business Development Manager - Services) Paris, FRA; Munich, DEU
SENIOR SOFTWARE ENGINEER (PLATFORM) Redmond, WA
E-Marketing Programs Specialist EMEA London, GBR
BUSINESS DEVELOPMENT DIRECTOR - E COMMERCE INTEGRATION San Jose, CA
MANAGER, E-SALES Plano, TX

Similar Messages

Maybe you are looking for

  • Can't display data that exist in cupe

    Hi All, I get a problem which is thar even i entered data in the cube i cant display with charecteristics. When i go to bw and display data if i say select charecteristics i can see any data but if i dont select charecteristics i can display data. Al

  • Can't change a linked image???

    I have a lot left to learn in Dreamweaver but linking images I've done alot, I hope someone can help me on what I'm doing wrong.  The linked image won't let me change links.  Here is the home page http://kmmcement.com/.  The bottom right picture unde

  • Can't open Word .doc in lion

    I installed OS Lion yesterday.  I cannot open any Word documents saved .doc.  I can open docx files.  What do I do?

  • Table structure and constraints in HTML table

    This script creates a html file (Structure.html) that contains structure of a specific table. When the following script is executed in sql * plus, it asks for the table name for which structure information is needed. after entering the table name, it

  • Fitbit Aria Scale Sync not working

    I had my Fitbit Aria scale set to sync with HealthVault and it worked for quite some time. It stopped working sometime in April and I tried fixing it the other day. I verified via the Fitbit website that they are sending data to HealthVault.  Latest