Weblogic Server 6.1 SP2 is running fine. But unable to get XAConnections! I am getting following error
java.sql.SQLException: Internal error: Cannot obtain XAConnection Creation of XAConnection for pool ibesXaConnection Pool failed after waitSecs:300
at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1063)
at weblogic.jdbc.jta.Connection.getXAConn(Connection.java:148)
at weblogic.jdbc.jta.Connection.prepareStatement(Connection.java:236)
at weblogic.jdbc.rmi.internal.ConnectionImpl.prepareStatement(ConnectionImpl.java:135)
at weblogic.jdbc.rmi.SerialConnection.prepareStatement(SerialConnection.java:76)
-GoutamG
Please make sure your refresh minutes is turned off in config.xml. You should put very large value like 999999 for RefreshMinutes parameter for
defination of connectionpool in config.xml instead of 0.
Thanks,
Mitesh
Goutam wrote:
> Hi Mitesh,
> If I set refreshminutes to some large number, do I need to setup TestTableName too.
> According to Weblogic Help, If TestTableName is not set then the test will not be performed.
> Please let me know.
> Thanks in advance..!
Properties="oracleXATrace=false;user=samperf1sd;password=xxx;server=tstp817"
RefreshMinutes="5" ShrinkPeriodMinutes="15"
ShrinkingEnabled="true" SupportsLocalTransaction="false"
Targets="smpdomain_4_server" TestConnectionsOnRelease="false"
TestConnectionsOnReserve="false" TestTableName="dual" URL="jdbc:weblogic:oracle"/>
As defined TestTableName="dual" do the same.
You can also do the same thing using weblogic console also.
Thanks,
Mitesh