Weblogic Eclipselink Sequence Table Connection Pool Sequence Separate transaction while JTA on main transaction
Hi,
And thanks in advance for your support.
In weblogic 12, managing to get the eclipse link connection sequencing mechanism when one uses Tables for sequencing entity ids seems to be complicated.
QUICK REFERENCE:
http://www.eclipse.org/eclipselink/api/2.5/org/eclipse/persistence/config/PersistenceUnitProperties.html
The concept:
While having EJB, MDBs etc... run on a JEE container, be it glassfish or weblogic, it should be possible to have the main thread transaction be managed as part of JTA global transactions by the contianer.
Namely, pumping messages to JMS queues, persisting entities etc.
Meanwhile, it should be also possible to as the transaction is on going write and update entity ids from sequencing tables.
For this very purpose, eclipse link provides persistence.xml properties, such as the now deprecated eclipselink.jdbc.sequence-connection-pool" value="true", to fullfill this very purpose.
This option greatly avoids dead longs, by allowing eclipse link to fetch a non JTA managed connection, pseudo "two phase locking read table update table" go to the datbase and fetch a new sequence.
The same mechnism under JTA is a disaster. A transaction that creates ten different entities, might do ten reads and updates on this table, while mean while a competing transaction might be trying to do the same. It is guaranteed dead lock with minimal stress on the environment.
Under glassfish, for example, tagging a persistence.xml with :
<persistence-unit name="MY_PU" transaction-type="JTA">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<jta-data-source>jdbc/DERBY_DS</jta-data-source>
<non-jta-data-source>jdbc/DERBY_DS</non-jta-data-source>
<properties>
<property name="eclipselink.jdbc.sequence-connection-pool" value="true" />
</properties>
</peristence-unit>
does miracles, when entities are using TABLE sequencing.
Under weblogic, say you are using the Derby embedded XA driver with two phase commit, deploying the applicaiton immediately leads to:
Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.3.v20120629-r11760): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Cannot call commit when using distributed transactions
Error Code: 0
at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:324)
at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicCommitTransaction(DatabaseAccessor.java:426)
at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.commitTransaction(DatasourceAccessor.java:389)
at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.commitTransaction(DatabaseAccessor.java:409)
at org.eclipse.persistence.internal.sequencing.SequencingManager$Preallocation_Transaction_Accessor_State.getNextValue(SequencingManager.java:579)
at org.eclipse.persistence.internal.sequencing.SequencingManager.getNextValue(SequencingManager.java:1067)
at org.eclipse.persistence.internal.sequencing.ClientSessionSequencing.getNextValue(ClientSessionSequencing.java:70)
at org.eclipse.persi
While weblogic is right that their might be a distributed transaction ongoing, it is mistaken in the fact tha tthe connection requested by eclipse link for generating the ID should be part of the global transaciton.
Eclipse link provides other ways to attempt to configure the sequencing mechanism, by sating for example a non-jta transaction.
I have attempted also using these properties both withe original data DERBY_DS that uses the XA driver, and later with a new data source i created on purpose to try to work around the sequencing contengy.
For example:
<!--property name="eclipselink.jdbc.sequence-connection-pool.nonJtaDataSource" value="jdbc/DERBY_SEQUENCING_NON_JTA" /-->
<!--property name="eclipselink.connection-pool.sequence.nonJtaDataSource" value="jdbc/DERBY_SEQUENCING_NON_JTA" /-->
This new DERBY_SEQUENCING_NON_JTA is explicitly configured to use a NON_XA driver with global transactions flag set to disabled.
Regardless, the only thing I get out of this is that the application is deployed and super fast, up to the point where i stress it with a system test that introduces some degreee of concurrency, and then I see the dead locks on the sequencing table.
Meaning that the ongoing transactions are holding tight to their locks on the sequencing table.
Is this a known issue?
Is there something I am missing in the configuration?
It really should not be this diffcult to get eclipse link to run its sequence reads and updates on a separate transaction of the main JTA transaction, but so far looks impossible.
Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.3.v20120629-r11760): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLTransactionRollbackException: A lock could not be obtained within the time requested
Error Code: 30000
Call: UPDATE ID_GEN SET SEQ_VALUE = SEQ_VALUE + ? WHERE SEQ_NAME = ?
bind => [2 parameters bound]
Query: DataModifyQuery(name="MyEntity_Gen" sql="UPDATE ID_GEN SET SEQ_VALUE = SEQ_VALUE + ? WHERE SEQ_NAME = ?")
Many thanks for your help.
Are you calling the cmp bean code and your new Sql code under a same transactional context?
The following setting
"rollbackLocalTxUponConnClose=true"
will make the connectionpool to call the rollback method on the connection object before keeping it back in the pool. In your sql code if you are calling connection.close() , then your entire transaction will be rolled back.
CMP bean requires a transactional connection while communicating with the database.
What is the sequence of code execution?
I think you must be calling sql code first and then cmp bean code later.
You may avoid this problem in this way. This is my guess based on my understanding on your code execution.
1. set rollbackLocalTxUponConnClose=false
Execute the sql code and cmp code in a single transaction (in a single session bean method with cmt or bmt transaction ). Specify tx.rollback if it is bmt. or call tx.setRollbackOnly() if it is a cmt. In this way you will have control to roll back the transactions.
Hope this helps you.
bmt-> bean managed transaction
cmt-> container managed transaction.
Regards,
Seshi.
Similar Messages
-
Weblogic 6.1 sp2 Connection Pool will not connect to oci901 driver
ok, I am trying to get weblogic to connect to the connection pool in solaris. I created
the pool in the console with the following:
URL = jdbc:weblogic:oracle
Driver Class Name = weblogic.jdbc.oci.Driver
Properties = user=sa password=*****
I also set the LD_LIBRARY PATH as directed.
LD_LIBRARY_PATH=/usr/local/wlserver6.1/lib/solaris/oci901_8:ORACLE/lib
Oracle is on a seperate box then the box that Weblogic is installed on so I think
the problem is in my LD_LIBRARY_PATH. Here is the error I am getting. Any help
would be appreciated.
Starting Loading jDriver/Oracle .....
<Jun 7, 2002 9:04:25 AM CDT> <Error> <JDBC> <Cannot startup connection pool "FargoPool"
weblogic.common.ResourceException:
Could not create pool connection. The DBMS driver exception was:
java.sql.SQLException: System.loadLibrary(weblogicoci37) threw java.lang.UnsatisfiedLinkError:
/usr/local/wlserver6.1/lib/solaris/oci901_8/libweblogicoci37.so: ld.so.1: /home/bea/jdk131/jre/bin/../bin/sparc/native_threads/java:
fatal: libclntsh.so.9.0: open failed: No such file or directory
at weblogic.jdbc.oci.Driver.loadLibraryIfNeeded(Driver.java:226)
at weblogic.jdbc.oci.Driver.connect(Driver.java:76)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:193)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:134)
at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.java:698)
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java:282)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:623)
at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:491)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:361)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy8.addDeployment(Unknown Source)
at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1516)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:895)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:295)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
at $Proxy17.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:135)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:209)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:134)
at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.java:698)
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java:282)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:623)
at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:491)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:361)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy8.addDeployment(Unknown Source)
at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1516)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:895)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:295)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
at $Proxy17.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:135)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)"Tim" <[email protected]> wrote:
>
I have the following setup.
For QA, 1 IIS Server (using plug-in from 6.1 SP2) forwarding all request
to a
cluster on the backend. (2 Physical Servers, 4 JVM's). I do have a firewall
in
between the IIS Server & the backend servers.
According to the docs, the IIS plug-in is supposed to establish a connection
pool
to the backend. I do not see this behavior.
I see a connection created/close per request.
So , I have 2 questions:
1. Does the IIS Plug-in use connection Pooling, Do you have to enable
it ?
2. How do I control the pool size ?
Thanks in advance,
TimDoes anyone from BEA monitor this newsgroup ?
I have also opened up a case (1 week old) with tech support and still do not have
an answer. This is very frustrating considering the cost of owning this environment.
Tim -
SUN IDM 7.1 - Weblogic 8.1 SP6 Connection Pooling error
Hi,
We have a POC environment and IDM is being moved onto the weblogic server.
I need to have the IDM use the weblogic connection pooling, however i am getting the following issue:
Oracle is 10g and wl oracle drivver is oracle.jdbc.driver.OracleDriver
/lh setRepo -v -tOracle -iweblogic.jndi.WLInitialContextFactory -fCIIDMDS -ut3://localhost:29003/" -U"weblogic" -P"password"
Defaulting administrator to 'configurator'.
Defaulting credentials to 'configurator'.
DB Server @ jdbc:hsqldb:hsql://127.0.0.1:53111/idm
Checking 'OracleDataStore:CIIDMDS'...
==> java.sql.SQLException: Internal error: Invalid NLS Conversion ratio
com.waveset.util.IOException:
==> java.sql.SQLException: Internal error: Invalid NLS Conversion ratio
at com.waveset.repository.RelationalDataStore.checkDatabaseMetaData(RelationalDataStore.java:4155)
at com.waveset.repository.RelationalDataStore.init(RelationalDataStore.java:3788)
at com.waveset.install.RepoMan.check(RepoMan.java:1194)
at com.waveset.install.RepoMan.setRepo(RepoMan.java:1082)
at com.waveset.install.RepoMan.main(RepoMan.java:1314)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.waveset.util.Command.main(Command.java:117)
Caused by: java.sql.SQLException: Internal error: Invalid NLS Conversion ratio
at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:164)
at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_T4CConnection_814_WLStub.getMetaData(Unknown Source)
at weblogic.jdbc.rmi.SerialConnection.getMetaData(SerialConnection.java:312)
at com.waveset.util.PooledConnection.getMetaData(PooledConnection.java:213)
at com.waveset.repository.RelationalDataStore.checkDatabaseMetaData(RelationalDataStore.java:3940)
... 16 more
Caused by: java.sql.SQLException: Internal error: Invalid NLS Conversion ratio
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
at oracle.jdbc.driver.PhysicalConnection.getMaxCharSize(PhysicalConnection.java:4485)
at weblogic.jdbc.wrapper.PoolConnection_oracle_jdbc_driver_T4CConnection.getMaxCharSize(Unknown Source)
at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_T4CConnection.getMaxCharSize(Unknown Source)
at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_T4CConnection_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Wrapped exception:
java.sql.SQLException: Internal error: Invalid NLS Conversion ratio
at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:164)
at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_T4CConnection_814_WLStub.getMetaData(Unknown Source)
at weblogic.jdbc.rmi.SerialConnection.getMetaData(SerialConnection.java:312)
at com.waveset.util.PooledConnection.getMetaData(PooledConnection.java:213)
at com.waveset.repository.RelationalDataStore.checkDatabaseMetaData(RelationalDataStore.java:3940)
at com.waveset.repository.RelationalDataStore.init(RelationalDataStore.java:3788)
at com.waveset.install.RepoMan.check(RepoMan.java:1194)
at com.waveset.install.RepoMan.setRepo(RepoMan.java:1082)
at com.waveset.install.RepoMan.main(RepoMan.java:1314)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.waveset.util.Command.main(Command.java:117)
Caused by: java.sql.SQLException: Internal error: Invalid NLS Conversion ratio
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
at oracle.jdbc.driver.PhysicalConnection.getMaxCharSize(PhysicalConnection.java:4485)
at weblogic.jdbc.wrapper.PoolConnection_oracle_jdbc_driver_T4CConnection.getMaxCharSize(Unknown Source)
at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_T4CConnection.getMaxCharSize(Unknown Source)
at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_PoolConnection_oracle_jdbc_driver_T4CConnection_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)Hi,
Are you getting any other Exception when performing basic operations other than ones you had mentioned like search,delete,report etc..?
What was your JDK version earlier and now?
Have you re-build the custom java classes if any?
Have you re-build the custom objects like Forms,WF,TDs etc..?
Regards,
Ferose -
WebLogic 6.1 losing connection pools and deployments on restart
Hi,
Has anyone else seen a problem where it appears that processing of
config.xml is incomplete, without any error message? For example, a
connection pool that is deployed fine through the console, shows as
undeployed (available) when the server is restarted, regardless of how the
server is shut down.
Most recently, this happened with a connection pool and tx data source I've
been using for weeks, when I added a RDBMSRealm going to the same database.
The EJB deployment that needs the tx data source fails on startup, but if I
redeploy the connection pool and tx data source through the console and then
deploy the EJBs everything works. Until I restart the server, when the
problem recurs.
If I go back to my backed up config.xml, without the RDBMSRealm, everything
works fine at startup.
I see no error message in any log file: it's as though config.xml entries
are being ignored.
I attach my config.xml file. The multiple targets are the result of
redeploying through the console: editing them out does't fix the problem.
Regards,
Rod Johnson
[config.xml]hi.
Please post this question in weblogic.developer.interest.jdbc.
Thanks,
Michael
Rod Johnson wrote:
Hi,
Has anyone else seen a problem where it appears that processing of
config.xml is incomplete, without any error message? For example, a
connection pool that is deployed fine through the console, shows as
undeployed (available) when the server is restarted, regardless of how the
server is shut down.
Most recently, this happened with a connection pool and tx data source I've
been using for weeks, when I added a RDBMSRealm going to the same database.
The EJB deployment that needs the tx data source fails on startup, but if I
redeploy the connection pool and tx data source through the console and then
deploy the EJBs everything works. Until I restart the server, when the
problem recurs.
If I go back to my backed up config.xml, without the RDBMSRealm, everything
works fine at startup.
I see no error message in any log file: it's as though config.xml entries
are being ignored.
I attach my config.xml file. The multiple targets are the result of
redeploying through the console: editing them out does't fix the problem.
Regards,
Rod Johnson
<?xml version="1.0" encoding="UTF-8"?>
<!--If your domain is active, please do not edit the config.xml file. Any changes made to that file while the domain is active will not have any effect on the domain's configuration and are likely to be lost. If your domain is inactive, you may edit this file with an XML editor. If you do so, please refer to the BEA Weblogic Server Configuration Reference documentation available from http://edocs.bea.com/wls/docs61/reference.html. In general, we recommend that changes to your configuration file be made through the Administration Console.-->
<Domain Name="rj">
<Log FileName="config/rj/logs/wl-domain.log" Name="rj"/>
<Application Deployed="true" Name="ticket-app" Path=".\config\rj\applications\ticket-app">
<EJBComponent Name="ticket-ejb/ticket-ejb"
Targets="rj,rj,rj,rj,rj,rj" URI="ticket-ejb/ticket-ejb.jar"/>
<WebAppComponent Name="ticket-war" Targets="rj,rj" URI="ticket-war"/>
</Application>
<Security GuestDisabled="false" Name="rj"
PasswordPolicy="wl_default_password_policy" Realm="wl_default_realm"/>
<CustomRealm
ConfigurationData="server.host=ldapserver.example.com;membership.scope.depth=1;microsoft.membership.scope=sub;membership.filter=(|(&(memberobject=%M)(objectclass=memberof))(&(groupobject=%M)(objectclass=groupmemberof)));group.dn=ou=Groups, o=ExampleMembershipDir;group.filter=(&(cn=%g)(objectclass=mgroup));server.principal=cn=Administrator, ou=Members, o=ExampleMembershipDir;user.dn=ou=Members, o=ExampleMembershipDir;user.filter=(&(cn=%u)(objectclass=member))"
Name="defaultLDAPRealmForMicrosoftSiteServer"
Notes="This is provided as an example. Before enabling this Realm, you must edit the configuration parameters as appropriate for your environment."
Password="{3DES}aTzgEUdjzAqaEDs0MC2lBQ==" RealmClassName="weblogic.security.ldaprealmv2.LDAPRealm"/>
<JDBCTxDataSource JNDIName="ticket-ds" Name="ticket-ds"
PoolName="ticket-pool" Targets="rj,rj,rj,rj"/>
<Application Deployed="true" Name="DefaultWebApp" Path=".\config\rj\applications">
<WebAppComponent Name="DefaultWebApp" Targets="rj" URI="DefaultWebApp"/>
</Application>
<PasswordPolicy Name="wl_default_password_policy"/>
<JTA Name="rj"/>
<Application Deployed="true" Name="certificate" Path=".\config\rj\applications">
<WebAppComponent Name="certificate" Targets="rj" URI="certificate.war"/>
</Application>
<Realm CachingRealm="ticketCaching Realm"
FileRealm="wl_default_file_realm" Name="wl_default_realm"/>
<CachingRealm BasicRealm="ticketRDBMS Realm" Name="ticketCaching Realm"/>
<JDBCConnectionPool DriverName="COM.cloudscape.core.RmiJdbcDriver"
InitialCapacity="3" MaxCapacity="15" Name="ticket-pool"
Properties="user=portal;password=portal" Targets="rj,rj,rj,rj" URL="jdbc:cloudscape:rmi:d:\\book\\db\\csdb"/>
<DomainLogFilter Name="MyDomain Log Filter" SeverityLevel="64" SubsystemNames="JTA,EJB"/>
<Server DomainLogFilter="MyDomain Log Filter" ListenPort="7001"
Name="rj" NativeIOEnabled="true" StdoutDebugEnabled="true"
StdoutSeverityLevel="64" TransactionLogFilePrefix="config/rj/logs/">
<ExecuteQueue Name="default" ThreadCount="15"/>
<KernelDebug Name="rj"/>
<Log FileName="config/rj/logs/weblogic.log" Name="rj"/>
<ServerStart Name="rj"/>
<ServerDebug Name="rj"/>
<WebServer DefaultWebApp="DefaultWebApp"
LogFileName="./config/rj/logs/access.log"
LoggingEnabled="true" Name="rj"/>
<SSL Enabled="true" ListenPort="7002" Name="rj"
ServerCertificateChainFileName="config/rj/ca.pem"
ServerCertificateFileName="config/rj/democert.pem" ServerKeyFileName="config/rj/demokey.pem"/>
</Server>
<SNMPAgent Name="rj"/>
<ApplicationManager Name="rj"/>
<CustomRealm
ConfigurationData="user.filter=(&(uid=%u)(objectclass=person));user.dn=ou=people, dc=example, dc=com;server.principal=cn=Manager, dc=example, dc=com;membership.filter=(&(uniquemember=%M)(objectclass=groupofuniquenames));group.filter=(&(cn=%g)(objectclass=groupofuniquenames));server.host=ldapserver.example.com;group.dn=ou=groups, dc=example, c=com"
Name="defaultLDAPRealmForOpenLDAPDirectoryServices"
Notes="This is provided as an example. Before enabling this Realm, you must edit the configuration parameters as appropriate for your environment."
Password="{3DES}aTzgEUdjzAqaEDs0MC2lBQ==" RealmClassName="weblogic.security.ldaprealmv2.LDAPRealm"/>
<CustomRealm
ConfigurationData="user.filter=(&(uid=%u)(objectclass=person));user.dn=ou=people, o=beasys.com;server.principal=uid=admin, ou=Administrators, ou=TopologyManagement, o=NetscapeRoot;membership.filter=(&(uniquemember=%M)(objectclass=groupofuniquenames));group.filter=(&(cn=%g)(objectclass=groupofuniquenames));server.host=ldapserver.example.com;group.dn=ou=groups, o=beasys.com"
Name="defaultLDAPRealmForNetscapeDirectoryServer"
Notes="This is provided as an example. Before enabling this Realm, you must edit the configuration parameters as appropriate for your environment."
Password="{3DES}aTzgEUdjzAqaEDs0MC2lBQ==" RealmClassName="weblogic.security.ldaprealmv2.LDAPRealm"/>
<FileRealm Name="wl_default_file_realm"/>
<CustomRealm
ConfigurationData="user.filter=(&(cn=%u)(objectclass=person));user.dn=ou=people, o=example.com;server.principal=cn=admin, o=example.com;membership.filter=(&(member=%M)(objectclass=groupofuniquenames));group.filter=(&(cn=%g)(objectclass=groupofuniquenames));server.host=ldapserver.example.com;server.ssl=true;group.dn=ou=groups, o=example.com"
Name="defaultLDAPRealmForNovellDirectoryServices"
Notes="This is provided as an example. Before enabling this Realm, you must edit the configuration parameters as appropriate for your environment."
Password="{3DES}aTzgEUdjzAqaEDs0MC2lBQ==" RealmClassName="weblogic.security.ldaprealmv2.LDAPRealm"/>
<RDBMSRealm DatabaseDriver="COM.cloudscape.core.RmiJdbcDriver"
DatabaseURL="jdbc:cloudscape:rmi:d:\\book\\db\\csdb"
DatabaseUserName="portal" Name="ticketRDBMS Realm" SchemaProperties="getGroupMembers=SELECT GM_GROUP, GM_MEMBER from groupmembers WHERE GM_GROUP = ?;deleteGroup2=DELETE FROM aclentries WHERE A_PRINCIPAL = ?;deleteGroup1=DELETE FROM groupmembers WHERE GM_GROUP = ?;addGroupMember=INSERT INTO groupmembers VALUES ( ? , ? );getUser=SELECT EMAIL, PASSWORD FROM LOGINS WHERE EMAIL = ?;getPermission=SELECT DISTINCT A_PERMISSION FROM aclentries WHERE A_PERMISSION = ?;deleteUser3=DELETE FROM aclentries WHERE A_PRINCIPAL = ?;getGroupNewStatement=true;deleteUser2=DELETE FROM groupmembers WHERE GM_MEMBER = ?;deleteUser1=DELETE FROM LOGINS WHERE EMAIL = ?;getAcls=SELECT A_NAME, A_PRINCIPAL, A_PERMISSION FROM aclentries ORDER BY A_NAME, A_PRINCIPAL;getUsers=SELECT EMAIL, PASSWORD FROM LOGINS;getGroups=SELECT GM_GROUP, GM_MEMBER FROM groupmembers;getPermissions=SELECT DISTINCT A_PERMISSION FROM aclentries;getAclEntries=SELECT A_NAME, A_PRINCIPAL, A_PERMISSION FROM aclentries WHERE A_NAME = ?
ORDER BY A_PRINCIPAL;newUser=INSERT INTO LOGINS VALUES ( ? , ? );removeGroupMember=DELETE FROM groupmembers WHERE GM_GROUP = ? AND GM_MEMBER = ?"/>
</Domain>--
Developer Relations Engineer
BEA Support -
WebLogic 11g data source connection pooling failed with IO error:socket read timed out.
Hi all,
We encountered IO Error: Socket read timed out( <Received exception while creating connection for pool "DS_1": IO Error: Socket read timed out> ) during the creation of data sources in WebLogic 11g. Manual data source testing seems to indicate intermittent connection and the server seems to take a long time to start up with multiple IO errors. We increased the timeout at the database side but it does not seems to help. The database is 11g (11.2.0.3). The database services and listener are up which does not indicate that the database instance is down.This particular error means your database is down and socket is timedout. Or the query takes so long that the reader timedout -- unlikely.
Also, the general weblogic socket write errors, which you might see sometimes means that the client got disconnected before the server wrote results back. This is harmless -
Problem with Weblogic 9.1 JDBC connection pooling
Hi,
We are currently in the middle of a migration from JBoss & WAS to BEA Weblogic. Both in JBoss and Websphere there are no problems with the connection but in Weblogic we (quickly) run out of connections.
Our project uses Hibernate 3.1.3, Spring 1.2.7 and EJB 2.1. Using CMT and Spring to connect to our Oracle database. We tried different using the different drivers Weblogic offers, XA and non-AX, but in all cases we create connections quickly but they are almost never closed... until we run out of connections and get a Exception.
Any ideas what this could be? Are there known errors?Roy van Rijn wrote:
Hi,
We are currently in the middle of a migration from JBoss & WAS to BEA Weblogic. Both in JBoss and Websphere there are no problems with the connection but in Weblogic we (quickly) run out of connections.
Our project uses Hibernate 3.1.3, Spring 1.2.7 and EJB 2.1. Using CMT and Spring to connect to our Oracle database. We tried different using the different drivers Weblogic offers, XA and non-AX, but in all cases we create connections quickly but they are almost never closed... until we run out of connections and get a Exception.
Any ideas what this could be? Are there known errors?Hi. Please try setting the pool's idle-connection-timeout to 10 seconds or something
reasonable, and we'll forcibly retract any leaked connections. So you don't write any
JDBC code yourself, right?
Joe -
Unable to create connection pool on weblogic startup
Hi, I have a problem currently with the connection pool of weblogic 8.1 not being able to be created on a scheduled restart daily.
The weblogic server is restarted daily at 6am. However, the oracle database is shut down for maintenance daily till 7am before it is up again. It is not possible to shift either timings of restarting weblogic and oracle.
Is there any script or option settings in weblogic to reconnect the connection pool after 7am daily without restarting the weblogic instance?
Please help. Thanks.Kwee Tin Toh wrote:
Hi, I have a problem currently with the connection pool of weblogic 8.1 not being able to be created on a scheduled restart daily.
The weblogic server is restarted daily at 6am. However, the oracle database is shut down for maintenance daily till 7am before it is up again. It is not possible to shift either timings of restarting weblogic and oracle.
Is there any script or option settings in weblogic to reconnect the connection pool after 7am daily without restarting the weblogic instance?
Please help. Thanks.You can use the weblogic.Admin command line program to create, destroy, disable, or enable pools
in a running server. However, the easiest thing to do is to define your pool to have an initial
capacity of zero, so it is allowed to be created at startup, without needing to make any connections.
Then it will self-populate as needed when application load starts, if/when the DBMS is available.
Joe -
Multiple Connection Pools in Weblogic
Hello.
We have a requirement whereby a user logging on to an existing web application has the option to then use another application that uses a different database.
So.. I configured Weblogic with a second Connection Pool and a second Data Source, which references the new Connection Pool.
In order acces the new Connection Pool, I tried this:
Context ctx = null;
Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL, "ourProviderUrl");
ctx = new InitialContext(ht);
ds = (javax.sql.DataSource) ctx.lookup("newDataSourceName");but it didn't work. The Data Source couldn't be resolved (I don't have the stack trace of the exception at the moment.)
How can I access the different connection pools?
Am I going about this the wrong way?
Help much appreciated!!Here's the stack trace:
java.rmi.UnexpectedException: Unexpected exception in indecs.bip.services.UserManagerEJB.getNumSesionesActivas():
java.lang.Exception: javax.transaction.TransactionRolledbackException: Error in ejbCreate:: javax.ejb.CreateException: SessionManager.create error: javax.naming.NameNotFoundException: Unable to resolv
e 'TxBIPDataSource' Resolved: '' Unresolved:'TxBIPDataSource' ; remaining name 'TxBIPDataSource'
at indecs.bip.services.SessionManagerEJB.ejbCreate(SessionManagerEJB.java:235)
at indecs.bip.services.SessionManagerEJB_qjvfpz_Impl.ejbCreate(SessionManagerEJB_qjvfpz_Impl.java:112)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:148)
at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:98)
at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:154)
at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:126)
at weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java:61)
at indecs.bip.services.SessionManagerEJB_qjvfpz_EOImpl.getSesion(SessionManagerEJB_qjvfpz_EOImpl.java:29)
at indecs.bip.services.UserManagerEJB.getNumSesionesActivas(UserManagerEJB.java:79)
at indecs.bip.services.UserManagerEJB_ymjd1a_EOImpl.getNumSesionesActivas(UserManagerEJB_ymjd1a_EOImpl.java:1254)
at indecs.bip.services.UserManagerEJB_ymjd1a_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:359)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:114)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:762)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)"TxBIPDataSource" is the name of the original Data Source. -
DEFAUT SEQUENCE TABLE (Please Help !!!)
Hi,
kann somebody tell me what is better using:
- Default sequence table
or
- Custom Sequence Table
What is the difference.
THXBoth of these options will perform the same. The Default sequence table is simply a table schema based on TopLink defaults. The custom sequence table allows a developer to specify their own sequence table schema.
--Gordon -
WebLogic 6.0 SP1 - No JdbcServices for connection pools.
"My question is what version of WebLogic will the progromatic connection pool creation be re-introduced? Is it available in SP2 or version
Edit the registry.xml file and change "6.0 Beta" to "6.0"
-Greg
On 12 Mar 2001 10:02:19 -0800, "Raman Trikkur" <[email protected]>
wrote:
>
Hello Kumar,
Here is my registry.xml.
<?xml version="1.0" encoding="UTF-8"?>
<bea-product-information>
<host name="ramantrik2pc">
<product name="WebLogic Server" format="1.0">
<release level="6.0 Beta" Status="installed" InstallDir="D:\bea\wlserver6.0"
InstallTime="Mar 1, 2001 5:18:57 PM" InstallSet="Server">
<component name="Program" />
<component name="Samples" />
</release>
</product>
</host>
</bea-product-information>
Thanks for helping me figure this out. If this doesn't work,
I'll just try installing the whole package (WLS 6.0 with SP1
applied) as Xiang suggested.
Regards,
Raman
Kumar Allamraju <[email protected]> wrote:
could you post your registry.xml ?
Raman Trikkur wrote:
Hi,
I'm trying to get the service pack SP1 ((wls60sp1_upgrade_win.exe)
) installed on my NT box. I have wls 6.0 installed andworking.
After unpacking and choosing my bea home directory (D:\bea),I
get an error that says "Weblogic Server Service Pack1 Installation
failed. You do not seem to have Weblogic server 6.0installed for
BEAHOME D:\bea".
But that is untrue. I DO have it installed in D:\bea,and I have
the environment shell up by running setEnv.cmd and Iinvoked the
service pack installer from within that shell.
Is there anything I'm missing? Has anyone else encounteredthis
problem? Any help with this would be much appreciated.
Regards,
Raman -
JDBC Connection pool recovery after DB server restart
I am finding that Kodo is throwing the following exception after I restart
my database server (mysql). I am doing the database server restart while my
application server is idle, so it is not during a transaction.
Communication link failure: java.net.SocketException [code=0;state=08S01]
NestedThrowables:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
This is presumably due to the JDBC connection pooling. Is there a
configuration setting that allows Kodo to detect such failures and reconnect
to the database server without exposing this problem to the application
code? For example, WebLogic Server's JDBC connection pool has a setting that
enables testing a connection and recovering from such failures before
allocating it from the pool.
BenThis is presumably due to the JDBC connection pooling. Is there a
configuration setting that allows Kodo to detect such failures and reconnect
to the database server without exposing this problem to the application
code?Not right now. You can log an enhancement request with our bug database:
http://bugzilla.solarmetric.com/ -
Oracle Clobs, datasources, connection pools, RMI ...
Hello all,
We are using Weblogic 7.0, windows 2K server, Oracle 9i and are trying to read from a clob. Using
Weblogic datasources to manage connection pools. We are getting back a weblogic.jdbc.rmi.serialClob
object.
Any help reading data from this?
The main error is "No Data Found".
What else might I tell you to help?
Thanks a bunch for any help.
BTW
We had this working in iplanet and we are converting to weblogic. This is our last major hurdle.
Galen BoyerOn 3 Feb 2004 12:51:26 -0800, Raymond Tiong <[email protected]> wrote:
>
Oracle Database Server 9i supports the usage of LABELS to enforce highly
granular
resource access restrictions at the database level independent of the
application
that is accessing it. In order to use this however, the particular
user, and
not just the application, accessing the database must be known. Oracle
Application
Server (Oracle's J2EE product line) solves this by providing the ability
to PROXY
the identity of the application user and creditials (SSL Certs for
instance) down
to the database server.
I haven't seen a similar ability for BEA Weblogic Server 8.1 which allow
the user
identity and credientials to be PROXIED to the database server. Is this
possible?
Have I missed an important document?
Thanks for any input,
Raymond Tiong
I think there is a section in the JDBC documentation for 8.1 which
describes what it takes to utilize Oracle 9i extension called "Virtual
Private Database". With this extension, one might be able to proxy the
callers
identity to the DB.
See: http://e-docs.bea.com/wls/docs81/jdbc/thirdparty.html#1103627 -
Need Help About Connection Pooling
I am new to WebLogic.
We have a Java based application hosted on WebLogic 6.1.
We have not used any Database Pooling utility.
We are just creating connection objects in JSP/Java files (Worst!!).
Now we want to use Database Connection Pooling facility of WebLogic.
So now if I create connection pool from WebLogic console, the database connection pooling will be automatically handle by WebLogic OR I have to develop a class using Database Pooling package of the WebLogic and than need to use that class in all file where I am accessing database.
Reg,
ChetanChetan,
Once you have created a connection pool using the console the next thing to do is create a datasource with a JNDIname that uses that pool.
Then you can write a ServiceLocator to use JNDI to encapsulate the lookup code and cache the datasource, finally and you can use the datasource to retrieve connections from your connection pool.
By creating a datasource you decouple your apoplication from connection pools making it more flexible. If you don't like ServiceLocators you can always use something like the spring framework to hide all the plumbing.
For some example code to connect to a datasource see:
http://e-docs.bea.com/wls/docs81/jdbc/programming.html#1056955
For a description of the service locator see:
http://java.sun.com/blueprints/corej2eepatterns/Patterns/ServiceLocator.html
And for completeness
http://www.springframework.org/
Cheers
Hussein Badakhchani
www.orbism.com -
How to Retrieve Server Name for creating connection pool during startup!
Hi All,
I am going thru the edocs documentation of weblogic for creating the connection pool and the datasource dynamically. The URL I referred to was as under
http://edocs.bea.com/wls/docs81/jdbc/programming.html
There is a sample given in the above-mentioned URL. The Server MBean is created by passing the server name.
The code below mentioned was have placed in my dblib.java
svrAdminMBean = (ServerMBean)adminMBeanHome.getAdminMBean("myserver", "Server");
I am creating the connection pool from the servlet by invoking the dblib.java
I cannot hard-code the server name in the dblib.java since the same code was shared across multiple servlets.
Each Servlet will create its own connection pool during application server startup.
Is there a way to retrieve the server name in which the dblib.java is invoked.
Any pointers to info source will be REALLY appreciated.
Many Thanks in Advance,
C R BaradwajYou can get it from the Java system property weblogic.Name, i.e. System.getProperty("weblogic.Name");
Cheers
Feargal -
Creating Connection Pools/ Connection Pool does not exist error
Hi everyone -
I have a question about when/how weblogic creates connections pools.
Here is the scenario. Sometimes when our weblogic server starts, our
oracle database is not available. Therefor, weblogic can't create the
connection pool. However, after oracle comes weblogic up, weblogic
could create the connection pool, but it doesn't appear to be smart
enough to do this. Is there a way to ask weblogic to attempt to
recreate a connection pool?
We've noticed this behavior on weblogic 6.0 sp2.
Thanks,
ScottIf you define the pool with an initial size of zero, you should be OK. The
server is currently a little severe with a pool when the server cannot
create the pool with it's initial capacity, the pool isn't created. The server
could create it later, if told to via the console or via the admin command line,
or via the dynamic pool API, but init=0 is easiest.
Joe
Scott Gilpin wrote:
Hi everyone -
I have a question about when/how weblogic creates connections pools.
Here is the scenario. Sometimes when our weblogic server starts, our
oracle database is not available. Therefor, weblogic can't create the
connection pool. However, after oracle comes weblogic up, weblogic
could create the connection pool, but it doesn't appear to be smart
enough to do this. Is there a way to ask weblogic to attempt to
recreate a connection pool?
We've noticed this behavior on weblogic 6.0 sp2.
Thanks,
Scott
Maybe you are looking for
-
Compile Error: missing return statement
anyone knows why the following program yields compile error "missing return statement??" class LengthTest public int stringLength(String s) { int len = s.length(); if (len <= 5) return 5; else if (len <= 10) return 1
-
Posting Webpage created in iPhoto to .mac site
I have "exported" an album using the file/export/webpage commands. In the new folder I created on the desktop, It created folders with all the images, thumbnails and pages in them, along with "Pages.html" documents for the main page, and the thirteen
-
Blackberry not connected to internet service
Hello there! I have a Blackberry Bold 9700 and I am on the network Orange UK. I currently pay 5 pound a month for it. Its currently active but i'm not able to surf the browser, use Blackberry Messenger and Facebook etc. I have GPRS in capital letters
-
Hi all , I'm trying to attach CSS in order to adjust the icon tab bar header color. I've assigned ID & Class to the tab bar and tried to attach both to the CSS but there is no affection on the tab bar. any suggestions ? Regards, Arie.
-
Odi waitforlogdata CDC problem
Hi, I m trying to create a package including the tool of odiwaitforlogdata. The package is working fine unless the name of the table doesnt include an underscore '_'. EX: If the table name is 'SUBSECTORS', it is working fine but if it is 'SUB_SECTORS