Form Server Connection pooling - Urgent
how does form server maintains connection pooling. I have defined a single db user through which form server establishes connections with the db, and created application users at application level. The information I like to know if form server maintains certain connection pooling and allow users to get connected if user limit exceeds but responed to them with delay. if it does maintains connection pooling then please elaborate how.???
Forms doesn't do connection pooling -- each user requires a separate database connection.
> Allowing remote Internet user connect directly to the
database appears to pose a serious security/denial-of-
service risk.
So this is one of the good reasons to move the web Forms architecture.
> It doesn't seem appropriate to ask unaffiliated remote
users to know about, let alone remember database
credentials for an external database, just to enable
them to use a simple web-enabled form. Embedding the
database credentials into the form appears to pose a
more obvious security risk.
With Forms on the web, you can hide the username/password/database details from the user. That information can be stored centrally -- either with Forms itself, or with an LDAP server. The end user doesn't have to know any of the details.
We have customers running their Forms applications on the internet, and the users have no idea of the connection details to the database.
For extra security, you can use SSL. Forms on the web, though, by default uses 40 bit encryption.
Why then does Oracle Forms use this client-server
architecture? Are there any plans to migrate away from,
or provide an alternative to, this architecture in
the near future?
We do have an architecture to resolve these issues. It's called the Forms Listener Servlet Architecture and it's been available for over 2 years.
If you go to the Forms area on OTN, you can read all about it:
http://otn.oracle.com/products/forms/content.html
Regards,
Robin Zimmermann
Forms Product Management
Similar Messages
-
Difference between using app server connection pooling and using the driver
Hi all,
How to get connection pooling with out application server and tomcat also?
What is the difference between using app server connection pooling and using the driver supported connection pooling?
Regards,
Muralimaybe the performance of App server pool is better than the JDBC pool,
for you don't know wether the implementation of the JDBC interface is good or bad. -
Oracle Application server connection pool and database links
I am using Oracle application server 10g with connection pools, the db used by the application connects to another oracle db using a database link. My question is when the application starts it creates 10 connections, does it also create x amount of database links as well?
Hi,
Is there any way to use the connection pool or Datasource while connecting to database?If I am using a stateless sesssion bean and using a Data Access layer which just creates a database session to write the persistence toplink objects how I can make use of application server connection pool?Hi Vinod,
Yes, TopLink allows you to use the app server's connection pooling and transaction services. Chapter 2 of the Oracle9iAS TopLink Foundation Library Guide provides details as do the TopLink examples. The easiest way to set this up is by using the sessions.xml file. The sample XML below is from the file <toplink903>\examples\ias\examples\ejb\sessionbean\sessions.xml. Here we are adding the datasource defined in OC4J and specifying that we are using the OC4J transaction controller also.
<login>
<user-name>sa</user-name>
<password></password>
<datasource>java:comp/env/jdbc/ejbJTSDataSource</datasource>
<uses-external-transaction-controller>true</uses-external-transaction-controller>
<uses-external-connection-pool>true</uses-external-connection-pool>
</login>
<external-transaction-controller-class>oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController</external-transaction-controller-class>
When using this approach you need to change your TopLink code slightly in the EJB methods:
a. Acquire the ACTIVE unit of work from the server
session (again, see the EmployeeSessionEJB code
example) with something like:
UnitOfWork uow = clientSession.getActiveUnitOfWork();
b. Calls to uow.commit() can be ommitted or commented out
because the EJB will handle this. Note that of course
the methods you create in the EJB that are using this
approach must have TX Required (default).
Hope this helps.
Pete -
Best way to use Sun Web Server connection pooling with Web Application?
I have a number of applications that run Oracle and MySQL queries via Sun Web Server 6.1. I use the Web Server's built-in connection pooling, which works fairly well.
As an interface with the connections I receive from the Web Server, I use a class, which (1) accepts the SQL and database name from a tool, (2) Opens the connection, runs the SQL, closes the connection, (3) puts the content of the result set into a Vector of Hashtables, (4) returns that Vector to the tool.
Why do I use this Vector? That way, in my applications, I don't have to deal with opening connections (or getting them from the pool) and I don't have to worry about closing connections, because that's done automatically by the interface class.
Is this a dumb approach to use? I'm a bit paranoid about open DB connections, because we have had a number of problems where connections would not be closed, go stale in oracle, and clog up the database resources.
Can you suggest a better way to (1) smartly control opening and closing connections, and (2) enabling fast database access?
Sorry, but given this Java/Sun Web Server double topic, I'm going to post the same message on the Web Server board.
Any tips?
dailysun
P.S. For instance, in my tool, I call the interface class in this manner:
Vector results_v = Database.getSelect("SELECT * FROM TEST","database1");
getSelect uses the first string as the SQL and the second string as the jndi name of the Web server's database resource. getSelect does all the context stuff to get a connection from the pool, runs the SQL, puts the resultset into a Vector of Hastables (where each row is one Hashtable), and returns the Vector.I have a number of applications that run Oracle and MySQL queries via Sun Web Server 6.1. I use the Web Server's built-in connection pooling, which works fairly well.
As an interface with the connections I receive from the Web Server, I use a class, which (1) accepts the SQL and database name from a tool, (2) Opens the connection, runs the SQL, closes the connection, (3) puts the content of the result set into a Vector of Hashtables, (4) returns that Vector to the tool.
Why do I use this Vector? That way, in my applications, I don't have to deal with opening connections (or getting them from the pool) and I don't have to worry about closing connections, because that's done automatically by the interface class.
Is this a dumb approach to use? I'm a bit paranoid about open DB connections, because we have had a number of problems where connections would not be closed, go stale in oracle, and clog up the database resources.
Can you suggest a better way to (1) smartly control opening and closing connections, and (2) enabling fast database access?
Sorry, but given this Java/Sun Web Server double topic, I'm going to post the same message on the Web Server board.
Any tips?
dailysun
P.S. For instance, in my tool, I call the interface class in this manner:
Vector results_v = Database.getSelect("SELECT * FROM TEST","database1");
getSelect uses the first string as the SQL and the second string as the jndi name of the Web server's database resource. getSelect does all the context stuff to get a connection from the pool, runs the SQL, puts the resultset into a Vector of Hastables (where each row is one Hashtable), and returns the Vector. -
Pointbase Server, Connection Pool Issue
Hi All,
I have set up a cluster containing two nodes - one local and other
remote machine.
I have extended my domain to include the Integration and Workshop
extensions, as my application needs them. I have also configured the
Node Manager to start the remote server and also setup the workshop
database on my machine.
I have set the classpath in the Node Manager to contain the jars -
E:\bea_sp5\weblogic81\server\lib\weblogic.jar;E:\bea_sp5\weblogic81\common\eval\pointbase\lib\pbserver44.jar;
E:\bea_sp5\weblogic81\common\eval\pointbase\lib\pbtools44.jar;
E:\bea_sp5\weblogic81\server\lib\wli.jar;E:\bea_sp5\weblogic81\server\lib\knex.jar;
<Jun 15, 2006 2:52:59 PM GMT+05:30> <Info>
<[email protected]:5557> <Starting Server
VSDClusterDomain2::MngdServer2 ...>
<Jun 15, 2006 2:53:00 PM GMT+05:30> <Info>
<[email protected]:5557> <Server VSDClusterDomain2::MngdServer2
started, process id = 2,364>
<Jun 15, 2006 2:53:02 PM GMT+05:30> <Info> <WebLogicServer>
<BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM
Version 1.4.2_08-b03 from Sun Microsystems Inc.>
<Jun 15, 2006 2:53:02 PM GMT+05:30> <Info> <Management> <BEA-141140>
<The managed server is going to contact the admin server at
http://15.76.223.63:7001 to check if there exists a running admin
server at this URL.>
<Jun 15, 2006 2:53:04 PM GMT+05:30> <Info> <Configuration Management>
<BEA-150017> <This server is being started as a dependent managed
server.>
<Jun 15, 2006 2:53:04 PM GMT+05:30> <Info> <Management> <BEA-141107>
<Version: WebLogic Server 8.1 SP5 Mon Sep 19 23:06:54 PDT 2005 641358
WebLogic XMLX Module 8.1 SP5 Mon Sep 19 23:06:54 PDT 2005 641358
WebLogic Integration 8.1 SP5 Wed Sep 21 21:56:54 PDT 2005 643163>
<Jun 15, 2006 2:53:04 PM GMT+05:30> <Info> <Configuration Management>
<BEA-150015> <Connecting to the administration server
http://15.76.223.63:7001 to retrieve the initial configuration.>
<Jun 15, 2006 2:53:13 PM GMT+05:30> <Notice> <Log Management>
<BEA-170019> <The server log file
E:\bea_sp5\weblogic81\common\nodemanager\MngdServer2\MngdServer2.log is
opened. All server side log events will be written to this file.>
<Jun 15, 2006 2:53:16 PM GMT+05:30> <Notice> <Security> <BEA-090082>
<Security initializing using security realm myrealm.>
<Jun 15, 2006 2:53:16 PM GMT+05:30> <Notice> <Security> <BEA-090170>
<Loading the private key stored under the alias DemoIdentity from the
jks keystore file E:\bea_sp5\weblogic81\server\lib\DemoIdentity.jks.>
<Jun 15, 2006 2:53:16 PM GMT+05:30> <Notice> <Security> <BEA-090171>
<Loading the identity certificate stored under the alias DemoIdentity
from the jks keystore file
E:\bea_sp5\weblogic81\server\lib\DemoIdentity.jks.>
<Jun 15, 2006 2:53:16 PM GMT+05:30> <Notice> <Security> <BEA-090169>
<Loading trusted certificates from the jks keystore file
E:\bea_sp5\weblogic81\server\lib\DemoTrust.jks.>
<Jun 15, 2006 2:53:16 PM GMT+05:30> <Notice> <Security> <BEA-090169>
<Loading trusted certificates from the jks keystore file
E:\bea_sp5\jdk142_08\jre\lib\security\cacerts.>
<Jun 15, 2006 2:53:17 PM GMT+05:30> <Notice> <WebLogicServer>
<BEA-000328> <Starting WebLogic Managed Server "MngdServer2" for domain
"VSDClusterDomain2">
<Jun 15, 2006 2:53:21 PM GMT+05:30> <Warning> <HTTP> <BEA-101296>
<Unable to load the default compiler class "com.sun.tools.javac.Main".
Using the default javac compiler to compile JSPs.>
<Jun 15, 2006 2:53:22 PM GMT+05:30> <Notice> <Cluster> <BEA-000138>
<Listening for announcements from cluster Cluster1 on 237.0.0.1:7001.>
<Jun 15, 2006 2:53:22 PM GMT+05:30> <Notice> <Cluster> <BEA-000133>
<Waiting to synchronize with other running members of Cluster1.>
<Jun 15, 2006 2:53:53 PM GMT+05:30> <Error> <JDBC> <BEA-001150>
<Connection Pool "cgJMSPool-nonXA" deployment failed with the following
error: No registered driver accepts URL:
jdbc:pointbase:server://15.76.223.63:9093/workshop.>
<Jun 15, 2006 2:53:54 PM GMT+05:30> <Error> <JDBC> <BEA-001150>
<Connection Pool "bpmArchPool" deployment failed with the following
error: No registered driver accepts URL:
jdbc:pointbase:server://15.76.223.63:9093/workshop.>
<Jun 15, 2006 2:53:54 PM GMT+05:30> <Error> <JDBC> <BEA-001150>
<Connection Pool "cgPool" deployment failed with the following error:
No registered driver accepts URL:
jdbc:pointbase:server://15.76.223.63:9093/workshop.>
<Jun 15, 2006 2:53:54 PM GMT+05:30> <Error> <JDBC> <BEA-001151> <Data
Source "cgDataSource-nonXA" deployment failed with the following error:
DataSource(cgDataSource-nonXA;weblogic.jdbc.jts.ebusinessPool) can't be
created with non-existent Pool (connection or multi)
(cgJMSPool-nonXA).>
<Jun 15, 2006 2:53:54 PM GMT+05:30> <Error> <JDBC> <BEA-001151> <Data
Source "cgDataSource" deployment failed with the following error:
DataSource(cgDataSource;cgSampleDataSource) can't be created with
non-existent Pool (connection or multi) (cgPool).>
<Jun 15, 2006 2:53:54 PM GMT+05:30> <Error> <JDBC> <BEA-001151> <Data
Source "bpmArchDataSource" deployment failed with the following error:
DataSource(bpmArchDataSource) can't be created with non-existent Pool
(connection or multi) (bpmArchPool).>
<Jun 15, 2006 2:54:07 PM GMT+05:30> <Alert> <JMS> <BEA-040052>
<JMSServer "cgJMSServer_auto_2" store failed to open
java.io.IOException: JMS JDBC store, connection pool =
<cgJMSPool-nonXA>, prefix = <VSD_2>: connection pool does not exist.
java.io.IOException: JMS JDBC store, connection pool =
<cgJMSPool-nonXA>, prefix = <VSD_2>: connection pool does not exist
at
weblogic.jms.store.JDBCIOStream.throwIOException(JDBCIOStream.java:488)
at weblogic.jms.store.JDBCIOStream.checkPool(JDBCIOStream.java:1599)
at weblogic.jms.store.JDBCIOStream.open(JDBCIOStream.java:548)
at weblogic.jms.store.JMSStore.open(JMSStore.java:224)
at weblogic.jms.backend.BEStore.open(BEStore.java:262)
at weblogic.jms.backend.BEStore.start(BEStore.java:151)
at weblogic.jms.backend.BackEnd.openStores(BackEnd.java:1171)
at weblogic.jms.backend.BackEnd.resume(BackEnd.java:1290)
at weblogic.jms.backend.BackEnd.migratableActivate(BackEnd.java:2939)
at
weblogic.cluster.migration.MigratableGroup.add(MigratableGroup.java:107)
at
weblogic.cluster.migration.MigrationManager.privateRegister(MigrationManager.java:180)
at
weblogic.cluster.migration.MigrationManager.register(MigrationManager.java:127)
at weblogic.jms.JMSService.addJMSServer(JMSService.java:2226)
at weblogic.jms.JMSService.addDeployment(JMSService.java:2031)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:337)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:597)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:575)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:241)
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
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:755)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:734)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:516)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at
weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:990)
at
weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:948)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:948)
at
weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:475)
at
weblogic.management.configuration.ServerMBean_Stub.updateDeployments(ServerMBean_Stub.java:7731)
at
weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.java:1321)
at
weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:339)
at
weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:136)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:965)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:360)
at weblogic.Server.main(Server.java:32)
<Jun 15, 2006 2:54:07 PM GMT+05:30> <Error> <JMS> <BEA-040368> <The
following exception has occurred:
weblogic.jms.common.JMSException: JMS can not open store
cgJMSStore_auto_2
at weblogic.jms.backend.BEStore.start(BEStore.java:163)
at weblogic.jms.backend.BackEnd.openStores(BackEnd.java:1171)
at weblogic.jms.backend.BackEnd.resume(BackEnd.java:1290)
at weblogic.jms.backend.BackEnd.migratableActivate(BackEnd.java:2939)
at
weblogic.cluster.migration.MigratableGroup.add(MigratableGroup.java:107)
at
weblogic.cluster.migration.MigrationManager.privateRegister(MigrationManager.java:180)
at
weblogic.cluster.migration.MigrationManager.register(MigrationManager.java:127)
at weblogic.jms.JMSService.addJMSServer(JMSService.java:2226)
at weblogic.jms.JMSService.addDeployment(JMSService.java:2031)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:337)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:597)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:575)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:241)
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
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:755)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:734)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:516)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at
weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:990)
at
weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:948)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:948)
at
weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:475)
at
weblogic.management.configuration.ServerMBean_Stub.updateDeployments(ServerMBean_Stub.java:7731)
at
weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.java:1321)
at
weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:339)
at
weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:136)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:965)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:360)
at weblogic.Server.main(Server.java:32)
Caused by: java.io.IOException: JMS JDBC store, connection pool =
<cgJMSPool-nonXA>, prefix = <VSD_2>: connection pool does not exist
at
weblogic.jms.store.JDBCIOStream.throwIOException(JDBCIOStream.java:488)
at weblogic.jms.store.JDBCIOStream.checkPool(JDBCIOStream.java:1599)
at weblogic.jms.store.JDBCIOStream.open(JDBCIOStream.java:548)
at weblogic.jms.store.JMSStore.open(JMSStore.java:224)
at weblogic.jms.backend.BEStore.open(BEStore.java:262)
at weblogic.jms.backend.BEStore.start(BEStore.java:151)
... 33 more
weblogic.jms.common.JMSException: JMS can not open store
cgJMSStore_auto_2
at weblogic.jms.backend.BEStore.start(BEStore.java:163)
at weblogic.jms.backend.BackEnd.openStores(BackEnd.java:1171)
at weblogic.jms.backend.BackEnd.resume(BackEnd.java:1290)
at weblogic.jms.backend.BackEnd.migratableActivate(BackEnd.java:2939)
at
weblogic.cluster.migration.MigratableGroup.add(MigratableGroup.java:107)
at
weblogic.cluster.migration.MigrationManager.privateRegister(MigrationManager.java:180)
at
weblogic.cluster.migration.MigrationManager.register(MigrationManager.java:127)
at weblogic.jms.JMSService.addJMSServer(JMSService.java:2226)
at weblogic.jms.JMSService.addDeployment(JMSService.java:2031)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:337)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:597)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:575)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:241)
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
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:755)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:734)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:516)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at
weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:990)
at
weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:948)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:948)
at
weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:475)
at
weblogic.management.configuration.ServerMBean_Stub.updateDeployments(ServerMBean_Stub.java:7731)
at
weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.java:1321)
at
weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:339)
at
weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:136)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:965)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:360)
at weblogic.Server.main(Server.java:32)
Caused by: java.io.IOException: JMS JDBC store, connection pool =
<cgJMSPool-nonXA>, prefix = <VSD_2>: connection pool does not exist
at
weblogic.jms.store.JDBCIOStream.throwIOException(JDBCIOStream.java:488)
at weblogic.jms.store.JDBCIOStream.checkPool(JDBCIOStream.java:1599)
at weblogic.jms.store.JDBCIOStream.open(JDBCIOStream.java:548)
at weblogic.jms.store.JMSStore.open(JMSStore.java:224)
at weblogic.jms.backend.BEStore.open(BEStore.java:262)
at weblogic.jms.backend.BEStore.start(BEStore.java:151)
... 33 more
--------------- nested within: ------------------
weblogic.cluster.migration.MigrationException: Failed to activate
JMSServer cgJMSServer_auto_2 - with nested exception:
[weblogic.jms.common.JMSException: JMS can not open store
cgJMSStore_auto_2]
at weblogic.jms.backend.BackEnd.migratableActivate(BackEnd.java:2946)
at
weblogic.cluster.migration.MigratableGroup.add(MigratableGroup.java:107)
at
weblogic.cluster.migration.MigrationManager.privateRegister(MigrationManager.java:180)
at
weblogic.cluster.migration.MigrationManager.register(MigrationManager.java:127)
at weblogic.jms.JMSService.addJMSServer(JMSService.java:2226)
at weblogic.jms.JMSService.addDeployment(JMSService.java:2031)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:337)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:597)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:575)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:241)
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
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:755)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:734)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:516)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at
weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:990)
at
weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:948)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:948)
at
weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:475)
at
weblogic.management.configuration.ServerMBean_Stub.updateDeployments(ServerMBean_Stub.java:7731)
at
weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.java:1321)
at
weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:339)
at
weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:136)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:965)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:360)
at weblogic.Server.main(Server.java:32)
Why do you think this error is occuring? Any other setting needs to be
done to overcome this problem ?
Thanks in advance,
SandeepPlease verify following
1) have you defined jndi name for database correctly ??
2) Have you added sqljdbc jar file in soa suite server?
3) How much time it takes when you execute same query in JDev ?
4) If you think configuration is issue, please verify the Jdev conn details @ http://soasphere.blogspot.com/2008/11/connecting-sql-server-from-jdeveloper.html and soa suite server side required settings @ Deploy error because of sql server database adapter -
Sun One Web Server connection pool goes stale after some time
Hi all,
I have a few web applications running on Sun One Web Server 6.1 (SP4). I configured a connection pool via the web admin of the web server. I do not know why the connections in the connection pool are never released after some time (this happened for 3 times with a couple of months in between). I need to reboot the web server to solve this problem everytime the connection pool goes stale. I have verified that the resources are released (stream and connection are closed) with proper programming logic. Even so, I think that the connections will be timed out (the setting is 5 minutes) by the web server as a bulletproof even if the resource is not released properly as implemented in the code logic. Can anybody help on this? I have been troubled by this problem by weeks.
Thank you in advance.Hi all,
I have a few web applications running on Sun One Web Server 6.1 (SP4). I configured a connection pool via the web admin of the web server. I do not know why the connections in the connection pool are never released after some time (this happened for 3 times with a couple of months in between). I need to reboot the web server to solve this problem everytime the connection pool goes stale. I have verified that the resources are released (stream and connection are closed) with proper programming logic. Even so, I think that the connections will be timed out (the setting is 5 minutes) by the web server as a bulletproof even if the resource is not released properly as implemented in the code logic. Can anybody help on this? I have been troubled by this problem by weeks.
Thank you in advance. -
hi all,
I am new to jndi concet.I am trying to do connection pooling in tomcat 5.0.28.
I have searched google a lot but not been able to succeed in this.
I have created the datasource (ccmtest) from tomcat Administration.So it will automatically writes<resource></resourceparams> info in server.xml.
I manually written <resource-ref> in web.xml
I am trying to access the pool from java class.and i have written the following code
Properties p=new roperties(); p.put(Context.INITIAL_CONTEXT_FACTORY,"org.apache.commons.dbcp.BasicDataSourceFactory");
p.put(Context.PROVIDER_URL,"http://localhost:8080");
Context context = new InitialContext(p);
DataSource ds=(DataSource)context.lookup("java:/comp/env/jdbc/ccmtest");
Connection conn = ds.getConnection();
but i am getting the following error:
javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.com mons.dbcp.BasicDataSourceFactory [Root exception is java.lang.ClassCastException]
First i didn't placed the code like p.put(Context.INITIAL_CONTEXT_FACTORY,.........but when i didn't place the code i got the error:
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
I have placed the commonsdbcp.jar,commonspool.jar,commonscollections.jar in classpath.
Plz help me
Advance thanks.hi aniseed
First of all thanks for the solution.
i have read that documentation several times.and done the same thing what ever documented in that page u have given but still get the error:
javax.naming.NoInitialContextException: Cannot instantiate class: com.mysql.jdbc.jdbc2.optional.MysqlDataSourceFactory [Root exception is java.lang.ClassCastException] -
SecureWay Directory Server Connection Pool
Hi!
I'm trying to limit the number of connections to SecureWay Directory Server. I'm
developing an application that uses JNDI technology and LDAP protocol to access
to the SecureWay Directory Server. JNDI is an high-level API that hides the concept
of connection to the programmers and there's not a relation 1 to 1 between Context
(JNDI API) and connection. Is there one way to control the number of connections?
Does SecureWay Directory Server implement a Connection Pool that allows to limit
the number of connections? If so, how can I change the pool parameters?
Many thanks.Hi,
the problem exists only in the integration directory. In "Integration Builder: Design (Integration repository)" there are no problems with viewing and changing objects. Also my user login is not locked due to invalid login attempts. -
Form Server Connection to Oracle 8i Lite
Hi
I developed a web based application using form server and oracle 8i. In disconnected mode, I want to run same app on my laptop using form server and oracle 8i lite. But i m unable to connect to oracle 8i lite through form server. In normal mode, i m using microsoft odbc for connection with oracle lite, but it doesn't work with form server.
Can any one help me, what should I do to make connection to 8i Lite from Form server ?
thanks in advance
nullWhen using Oracle 8i Lite (4.0.x.x.x) with JDeveloper,
you have to:
1) If under JDK 1.1,
1a) make sure that your %ORACLE_HOME%\bin directory is in your
path.
1b) Add OLITE40.JAR and OLJDK11.JAR to the IDEClassPath in
JDEVELOPER.INI (remember, ya gotta have
the stuff in your classpath for it to work!)
2) If under JDK 1.2
2a) Add your %ORACLE_HOME%\BIN directory to the JLP and SLP
sections under [Ferrari]
2b) Add OLITE40.JAR to the IDEClasspath.
The reason for 2a is that under JDK 1.2, the call
"System.loadlibrary(xxx)" does not use the path to look for the
DLL. Only the system property "java.library.path" and
"sun.boot.library.path" Each of these two settings must
be set for it to work.
-JDeveloper Team
Joydip Homchowdhury (guest) wrote:
: I have installed Oracle 8i Lite and JDeveloper 3.0 in my NT
: machine. When I try to create a new connection using Oracle
Lite
: JDBC 4.0 driver and try testing the connection I get the
: following message :
: Unable to find driver oracle.lite.poljdbc.POLJDBCDriver
: Do I need to install any other components or set any other
: environment variables.
: Thanks in advance for your answers
: Joy
null -
I have installed BPEL Process Manager with Weblogic 8.1SP4.
I am using Oracle Database 9.2.0.5.0 for Oracle BPEL Process
Manager installation.
Also i have made following changes for JDBC thin driver accordingly.
<JDBCConnectionPool CapacityIncrement="2"
DriverName="oracle.jdbc.OracleDriver"
MaxCapacity="15" LoginDelaySeconds="1"
Name="BPELServerPool"
ShrinkPeriodMinutes="15"
ShrinkingEnabled="true" SupportsLocalTransaction="true"
Targets="orabpelServer"
URL="jdbc:oracle:thin:orabpel/orabpel_password@hostname:port:database_servoce_
name"/>
I m getting following error while starting the server :-
Connection Pool "BPELServerPool" deployment failed with the following error: 0:Could not create pool connection. The DBMS driver exception was: invalid arguments in call.
Also I m getting following error during startup
ORABPEL-04076
Cannot lookup jdbc datasource.
The process domain was unable to lookup the TX datasource "BPELServerDataSourceWorkflow".
Please check that the machine hosting the datasource is physically connected to the network. Additionally check that the connection pool properties as defined in the application server startup properties are valid.
at com.collaxa.cube.engine.data.ConnectionFactory$ConnectionFactoryImpl.init(ConnectionFactory.java:268)
at com.collaxa.cube.engine.data.ConnectionFactory.update(ConnectionFactory.java:54)
at com.collaxa.cube.engine.data.ConnectionFactory.init(ConnectionFactory.java:42)
at com.collaxa.cube.admin.data.ServerConnectionFactory.init(ServerConnectionFactory.java:34)
at com.collaxa.cube.admin.adaptors.ServerAdaptorManager.init(ServerAdaptorManager.java:66)
at com.collaxa.cube.admin.ServerManager.__init(ServerManager.java:211)
at com.collaxa.cube.admin.ServerManager.init(ServerManager.java:99)
at com.collaxa.cube.ejb.impl.ServerBean.init(ServerBean.java:200)
at com.collaxa.cube.ejb.impl.ServerBean_g9inc6_EOImpl.init(ServerBean_g9inc6_EOImpl.java:856)
at com.collaxa.cube.admin.CXLoaderServlet.init(CXLoaderServlet.java:62)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1028)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:904)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:883)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:822)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3333)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3278)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3259)
at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:5949)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:862)
at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2127)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2168)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2115)
at weblogic.management.deploy.slave.SlaveDeployer$Application.setActivation(SlaveDeployer.java:3082)
at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForAllApplications(SlaveDeployer.java:1751)
at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:359)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
at weblogic.Server.main(Server.java:32)
<Error> <HTTP> <BEA-101216> <Servlet: "cxloader" failed to preload on startup in Web application: "startup".
javax.servlet.ServletException:
ORABPEL START-UP ERROR!!!!!!!!
Can Anyone kindly suggest what is the problem ?I have installed BPEL Process Manager with Weblogic 8.1SP4.
I am using Oracle Database 9.2.0.5.0 for Oracle BPEL Process
Manager installation.
Also i have made following changes for JDBC thin driver accordingly.
<JDBCConnectionPool CapacityIncrement="2"
DriverName="oracle.jdbc.OracleDriver"
MaxCapacity="15" LoginDelaySeconds="1"
Name="BPELServerPool"
ShrinkPeriodMinutes="15"
ShrinkingEnabled="true" SupportsLocalTransaction="true"
Targets="orabpelServer"
URL="jdbc:oracle:thin:orabpel/orabpel_password@hostname:port:database_servoce_
name"/>
I m getting following error while starting the server :-
Connection Pool "BPELServerPool" deployment failed with the following error: 0:Could not create pool connection. The DBMS driver exception was: invalid arguments in call.
Also I m getting following error during startup
ORABPEL-04076
Cannot lookup jdbc datasource.
The process domain was unable to lookup the TX datasource "BPELServerDataSourceWorkflow".
Please check that the machine hosting the datasource is physically connected to the network. Additionally check that the connection pool properties as defined in the application server startup properties are valid.
at com.collaxa.cube.engine.data.ConnectionFactory$ConnectionFactoryImpl.init(ConnectionFactory.java:268)
at com.collaxa.cube.engine.data.ConnectionFactory.update(ConnectionFactory.java:54)
at com.collaxa.cube.engine.data.ConnectionFactory.init(ConnectionFactory.java:42)
at com.collaxa.cube.admin.data.ServerConnectionFactory.init(ServerConnectionFactory.java:34)
at com.collaxa.cube.admin.adaptors.ServerAdaptorManager.init(ServerAdaptorManager.java:66)
at com.collaxa.cube.admin.ServerManager.__init(ServerManager.java:211)
at com.collaxa.cube.admin.ServerManager.init(ServerManager.java:99)
at com.collaxa.cube.ejb.impl.ServerBean.init(ServerBean.java:200)
at com.collaxa.cube.ejb.impl.ServerBean_g9inc6_EOImpl.init(ServerBean_g9inc6_EOImpl.java:856)
at com.collaxa.cube.admin.CXLoaderServlet.init(CXLoaderServlet.java:62)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1028)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:904)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:883)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:822)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3333)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3278)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3259)
at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:5949)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:862)
at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2127)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2168)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2115)
at weblogic.management.deploy.slave.SlaveDeployer$Application.setActivation(SlaveDeployer.java:3082)
at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForAllApplications(SlaveDeployer.java:1751)
at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:359)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
at weblogic.Server.main(Server.java:32)
<Error> <HTTP> <BEA-101216> <Servlet: "cxloader" failed to preload on startup in Web application: "startup".
javax.servlet.ServletException:
ORABPEL START-UP ERROR!!!!!!!!
Can Anyone kindly suggest what is the problem ? -
Connection Pool and Database Sessions
Hi,
Is there any way to use the connection pool or Datasource while connecting to database?If I am using a stateless sesssion bean and using a Data Access layer which just creates a database session to write the persistence toplink objects how I can make use of application server connection pool?
Thanks,
VinodHi,
Is there any way to use the connection pool or Datasource while connecting to database?If I am using a stateless sesssion bean and using a Data Access layer which just creates a database session to write the persistence toplink objects how I can make use of application server connection pool?Hi Vinod,
Yes, TopLink allows you to use the app server's connection pooling and transaction services. Chapter 2 of the Oracle9iAS TopLink Foundation Library Guide provides details as do the TopLink examples. The easiest way to set this up is by using the sessions.xml file. The sample XML below is from the file <toplink903>\examples\ias\examples\ejb\sessionbean\sessions.xml. Here we are adding the datasource defined in OC4J and specifying that we are using the OC4J transaction controller also.
<login>
<user-name>sa</user-name>
<password></password>
<datasource>java:comp/env/jdbc/ejbJTSDataSource</datasource>
<uses-external-transaction-controller>true</uses-external-transaction-controller>
<uses-external-connection-pool>true</uses-external-connection-pool>
</login>
<external-transaction-controller-class>oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController</external-transaction-controller-class>
When using this approach you need to change your TopLink code slightly in the EJB methods:
a. Acquire the ACTIVE unit of work from the server
session (again, see the EmployeeSessionEJB code
example) with something like:
UnitOfWork uow = clientSession.getActiveUnitOfWork();
b. Calls to uow.commit() can be ommitted or commented out
because the EJB will handle this. Note that of course
the methods you create in the EJB that are using this
approach must have TX Required (default).
Hope this helps.
Pete -
Listener EA2: database connection pool and connection revalidation
Hi all,
As one can expect from early adopter release there could be some bugs but I can't find any references in forum to my situation:
* My 11g XE database and listener are starting as windows services when server boots operating system (Windows Server 2003 R2).
* I configured my web server (unsupported Jetty 9.0.0.M1) to start as windows service when operating system starts.
* Apex Listener 2.0.0.268.17.05 configured to connect with XE using JDBC thin driver with default settings (initial pool size 3, max statements 10, min connections 1, max connections 10, inactivity timeout 1800, abandoned connection timeout 900)
* Because web server starts a bit faster than Oracle database when apex connects first time it gets "ORA-12528, TNS:listener: all appropriate instances are blocking new connections" (could be that database still starting but already registered service with listener)
* From listener.log file I can see that all further connections made from Apex listener succeeds
* When I try to open any apex page with browser I am getting 404 error and apex listener logs error (*time is 2 days after system startup*):
2012-11-30 3:56:02 PM oracle.dbtools.common.config.db.DatabaseConfig badConfiguration
SEVERE: The pool named: apex is not correctly configured, error: Listener refused the connection with the following error:
ORA-12528, TNS:listener: all appropriate instances are blocking new connections
ConnectionPoolException [error=BAD_CONFIGURATION]
at oracle.dbtools.common.jdbc.ConnectionPoolException.badConfiguration(ConnectionPoolException.java:62)
at oracle.dbtools.common.config.db.DatabaseConfig.badConfiguration(DatabaseConfig.java:146)
at oracle.dbtools.common.config.db.DatabaseConfig.createPool(DatabaseConfig.java:168)
at oracle.dbtools.common.config.db.DatabaseConfig.getConnection(DatabaseConfig.java:68)
at oracle.dbtools.common.jdbc.ora.OraPrincipal.connection(OraPrincipal.java:25)
at oracle.dbtools.apex.ModApexContext.getConnection(ModApexContext.java:320)
at oracle.dbtools.apex.Procedure.getProcedure(Procedure.java:166)
at oracle.dbtools.apex.OWA.validateProcedure(OWA.java:384)
at oracle.dbtools.apex.security.Security.isValidRequest(Security.java:171)
at oracle.dbtools.apex.ModApex.validateRequest(ModApex.java:233)
at oracle.dbtools.apex.ModApex.doGet(ModApex.java:79)
at oracle.dbtools.apex.ModApex.service(ModApex.java:263)
at oracle.dbtools.rt.web.HttpEndpointBase.modApex(HttpEndpointBase.java:288)
at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:127)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:665)
<... Jetty web server stack ...>
at java.lang.Thread.run(Unknown Source)
2012-11-30 3:56:02 PM oracle.dbtools.rt.web.HttpEndpointBase modApex
* Oracle listener log for same time (no errors here):
30-NOV-2012 15:56:01 * (CONNECT_DATA=(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=SYSTEM))(SERVICE_NAME=xe)(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1078)) * establish * xe * 0
30-NOV-2012 15:56:01 * (CONNECT_DATA=(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=SYSTEM))(SERVICE_NAME=xe)(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1079)) * establish * xe * 0
30-NOV-2012 15:56:01 * (CONNECT_DATA=(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=SYSTEM))(SERVICE_NAME=xe)(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1080)) * establish * xe * 0
30-NOV-2012 15:56:01 * (CONNECT_DATA=(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=SYSTEM))(SERVICE_NAME=xe)(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1081)) * establish * xe * 0
* For some reason apex listener keeps first connection status and won't try to establish new connection if first attempt finished with ORA-12528
* The same scenario is valid when at time of web server start oracle database/listener is not available - even if database and listener starts and apex successfully establishes further connections all apex pages gets 404 error
* If I restart web server windows service (while oracle db and listener still running) browser opens apex pages without errors and apex listener does not log any errors
* I know that I can avoid this error delaying start of web server windows service but it would be nice to have production release 2.x without such bugsHi,
Is there any way to use the connection pool or Datasource while connecting to database?If I am using a stateless sesssion bean and using a Data Access layer which just creates a database session to write the persistence toplink objects how I can make use of application server connection pool?Hi Vinod,
Yes, TopLink allows you to use the app server's connection pooling and transaction services. Chapter 2 of the Oracle9iAS TopLink Foundation Library Guide provides details as do the TopLink examples. The easiest way to set this up is by using the sessions.xml file. The sample XML below is from the file <toplink903>\examples\ias\examples\ejb\sessionbean\sessions.xml. Here we are adding the datasource defined in OC4J and specifying that we are using the OC4J transaction controller also.
<login>
<user-name>sa</user-name>
<password></password>
<datasource>java:comp/env/jdbc/ejbJTSDataSource</datasource>
<uses-external-transaction-controller>true</uses-external-transaction-controller>
<uses-external-connection-pool>true</uses-external-connection-pool>
</login>
<external-transaction-controller-class>oracle.toplink.jts.oracle9i.Oracle9iJTSExternalTransactionController</external-transaction-controller-class>
When using this approach you need to change your TopLink code slightly in the EJB methods:
a. Acquire the ACTIVE unit of work from the server
session (again, see the EmployeeSessionEJB code
example) with something like:
UnitOfWork uow = clientSession.getActiveUnitOfWork();
b. Calls to uow.commit() can be ommitted or commented out
because the EJB will handle this. Note that of course
the methods you create in the EJB that are using this
approach must have TX Required (default).
Hope this helps.
Pete -
Connection Pool to DB2 Database
I get this exception when I try to establish a connection to DB2 database through Sun One Web Server Connection Pool.
I am using db2java.zip and com.ibm.db2.jdbc.DB2SimpleDataSource
data source. Please help.Sorry forgot to add the exception, this is the exception,
java.sql.SQLException: RSR0029: Missing Password for Application Authorization
Any idea as when we get this exception? -
VARRAY mapping issues using WLS spk2 connection pools
We have an ongoing issue with VARRAY's and WLS Connection pools. The connection
pool of WebLogic does not support certain data structures of Oracle such as VARRAY.
To create array/struct object in java application, we have to register these
objects through array/struct descriptor methods. These methods require Oracle.sql.Connection
as a parameter. There is no way to get Oracle.sql.Connection from Weblogic Server
Connection Pool because the Oracle.sql.Connection is not serializable.
So, what is the recommended solution for a situation in which the application
tends to need to use VARRAYs and can we instead pass tables?
Any recommendations?More information on this issue.
I'm using the method DriverManager.getConnection(URL) to get a connection to
the database, passing in the name of the connection pool. This method is
throwing the following SecurityException:
java.lang.SecurityException: User "john" does not have Permission
"reserve"
based on ACL "weblogic.jdbc.connectionPool.ICOM_DEV2_A".
When running under the LDAP realm:
-calls to getConnection() from within a jsp fail
-calls to getConnection() from within a Session Bean or Entity Bean work
-calls to getConnection() from a non-EJB class fail if it is called directly
from the jsp
-calls to getConnection() from a non-EJB class work if it is called from a
Session Bean
When running under the RDBMS realm, all calls to getConnection() work,
whether they are a jsp, non-EJB class or a Session Bean.
Is there some security context that is only present inside the EJB
container? -
Sun WebServer 6.1 SP4 Connection Pool Please Help
Hi All,
I really need your help, we are using Sun One Web server 6.1 SP4 with oracle 8i, recently we implemented server�s connection pool, but now after 2-3 hrs our web server is hanging and not responding to any request. Earlier I had max pool size 32 and I have increased it to 128 but still the same problem.
Before Implementing server connection pool we were using custom connection pool and the problem we had with that, we did not had any of validating the connection before giving to user and due to that it use to create problems.
I am lost and looking for some solutions please.
Thanks
RajeevThis is the code which we use for geting connection and closing connection.
import javax.sql.*;
import java.sql.*; //Connection class
import javax.naming.*; //InitialContext
public class ABCConnectionPool
//public static synchronized Connection getConnection()
public static Connection getConnection()
Connection connection = null;
try{
InitialContext ctx = new InitialContext();
String dsName = "java:comp/env/jdbc/jdbc-sss";
DataSource ds = (javax.sql.DataSource)ctx.lookup(dsName);
connection = ds.getConnection();
return connection;
catch(Exception e)
e.printStackTrace();
return connection;
//return null;
public static void releaseConnection(Connection usedConnection)
try
usedConnection.close();
catch(Exception e)
e.printStackTrace();
}//releaseConnection()
}//class
Where ever we need a coonection we call getConnection() method of above class and whenever we are done we call releaseConnection() method of this class. I really don't know in sun web server 6.1, what do I need to do to return the connection to pool?
Another question I have is do we need to make getConnection() method synchronized?
Thanks again for your help.
Message was edited by:
bplboy..
Maybe you are looking for
-
I would really appreciate any help on this! I have my itunes library on an external hard drive. The power adapter to that drive failed. I replaced it, but now when I open itunes it doesn't recognize where any of my files are. A friend told me to try
-
DVC80 Dazzle zoran/nogatech driver
Observe that a download is available for USBVISION-0.9.8-1 which supports the subject USB device. The indications in the README are that the ..zoran/nogatech usbvision..video must be enabled in the kernel. Also ...I2c API is referenced. I find only a
-
Hi, I try to create module with Forms Generator is Designer 6.0 with patchset3 and can't control the layout of action item in module component. Can I change the layout (X,Y position) of action item of module component? Thanks!
-
I have installed MySQL and downloaded the JDBC driver. What is the proper way to install this driver on a weblogic application server 8.1? Placing it in the server\lib or portal\lib didn't work. I 've managed add it to the classpath in my domain's st
-
How to :Two Itunes locations sync without copying each album by itself
I travel frequently and long periods, and I take my Windows Vista Laptop with me with my Itunes Library. I often buy music that loads on my Laptop PC Itunes. When I get home, I would like to transfer the Library to my home Mac Mini Library, but some