Running out of pooled connections

i have web application developed with jsp/servlets and mysql. i use JNDI datasource connection pooling. i have the following element defined in my server.xml file:
<Resource name="jdbc/JSNDB" auth="Container" type="javax.sql.DataSource"
          maxActive="100" maxIdle="30" maxWait="10000"
               removeAbandoned="true" removeAbandonedTimeout="60"
logAbandoned="false"
          username="root" password="pn2072"
driverClassName="com.mysql.jdbc.Driver"
     url="jdbc:mysql://localhost:3306/globe?autoReconnect=true"/>
my site is highly dependent on the databse for content and makes extensive use of db conections. only after a few clicks, my application cannot get any more connections from the pool. when i check the mysql server, i see that after 100 connections are created, they are never released even though i close every resultset, statement and connection immediately after i use them.
can any one please help.
many thanks
akz

hi
this is the method from which I get connections from the pool:
public static Connection getConnection() {
     DataSource ds=null;
     try {
     Context ctx = new InitialContext();
     if(ctx == null ) throw new Exception("Boom - No Context");
     ds = (DataSource)ctx.lookup("java:comp/env/jdbc/JSNDB");
               return ds.getConnection();
     } catch(Exception e) {
     e.printStackTrace();
     return null;
and this is how i close my connections (in every method that gets a connection):
finally
               try{
rst.xlose();
                    stmt.close();
                    conn.close();
               catch(SQLException e){}
          }

Similar Messages

  • Running out of data connections

    Problem Statement:
    Running out of data connections after some time and
    the following SQLException is thrown:
    "failed to create a data connection with any of the
    specified drivers"
    Problem Description:
    I have an application that is running under iPlanet
    6.0 on solaris using Oracle 8 and type 2 Oracle
    driver.
    The application is using a number of stateless
    session beans.
    Normally, my servlets instantiate the remote beans in
    order to make access to their interfaces. For
    example, I have a servlet that fetches all of
    the accounts for a given customer. First, The servlet
    does the fetch by calling JNDI to lookup the "home"
    interface, then does a "create" call on the home
    interface to get the "remote" interface
    (see snippets of code below, the ejbCreate()).
    Second, the servlet calls up a specific method that
    extracts the customer's accounts (see snippets of
    code below, the method getAccountList()).
    At first all seem to work well, however after some
    random time my beans start to throw the SQLException
    "failed to create a data connection with any of the
    specified drivers"
    At first I thought that I am not closing the
    connections, but all of of my connections,
    statements, and result sets, are closed
    and even set to null in a finally block as you can
    see in the snippets of code below.
    If I restart iAS, all of the connections get released
    and things look normal again till the problem
    re-occurs.
    Initially, we had this problem on SP2, so we upgraded
    to SP3 thinking that this may solve the problem,
    however the problem remained on SP3.
    Another thing, this same application works perfectly
    well on my laptop which has similar iPlanet
    configurations except that operating system is
    Windows 2000 Advanced Server, and Oracle 8.0.4.0.0.
    System Configuration:
    Following is my system configuration and related
    iPlanet 6.0 settings.
    -1- iPlanet 6.0 SP3
    -2- Type 2 Oracle driver
    -3- SunOs, sparc SUNW, Ultra-250, solaris 5.8
    -4- Oracle 8.1.6.0.0 64-bit Production
    -5- Following are the entry settings in the iPlanet
    registry under
    Software\iPlanet\Application Server\6.0\CCS0\DAE2\ORACLE_OCI
    - CacheCleanInterval = 120
    - CacheConnTimeOut = 120
    - CacheDebugMsgs = 0
    - CacheFreeSlots = 16
    - CacheInitSlots = 64
    - CacheMaxConn = 64
    - CachMaxGlobalConn = 128
    - ConnGiveUpTime = 60
    - RMThreadMax = 32
    - RMThreadMin = 0
    - RSBufferInitRows = 25
    - RSBufferMaxBufferSize = 6553600
    - RSBufferMaxRows = 100
    - RSBufferMaxSize = 32768
    - SQLDebugMsgs = 0
    Snippets of Code:
    The following snippets of code come from a stateless
    session bean and consist of a local data member, the
    ejbCreate() method, and a typical rmi method that
    does the database connection and extraction of
    related records.
    javax.sql.DataSource dataSourceObj = null;
    public void ejbCreate()
    throws java.rmi.RemoteException, javax.ejb.CreateException
    javax.naming.Context ctx = null;
    // Ensure first that the _props have been
    // successfully instantiated by the constructor.
    if (_props != null) {
    try{
    ctx = new javax.naming.InitialContext();
    }catch (Exception ex){           
         nbUtility.logError(ex,"Error while creating Initial Context !");
    try{
    // DEBUG:
    System.out.println("ejbCreate(): NB_DATASOURCE = " + props.getPropertyValue(props.NB_DATASOURCE));
    // DEBUG:
         dataSourceObj = (javax.sql.DataSource) ctx.lookup(_props.getPropertyValue(_props.NB_DATASOURCE));
    catch (Exception ex){
         ex.printStackTrace();
    if (dataSourceObj == null)
    throw new javax.ejb.CreateException("Couldn't get DataSource object from environment");
    } else {
    throw new javax.ejb.CreateException("Couldn't create the property manager: NB_CONFIG_FILE is null, empty, not set, or the file doesn't exist.");
    * Given a customer number, this method
    * returns the list of accounts that belongs to
    * this customers.
    public nbAccountList getAccountList(String CustomerNo)
    throws java.rmi.RemoteException {
    nbAccountList accountList = null;
    if ((CustomerNo != null) && (!CustomerNo.equals(""))) {
    java.sql.Connection conn = null;
    java.sql.Statement stmt = null;
    java.sql.ResultSet rset = null;
    try {
    accountList = new nbAccountList();
    String sql = "SELECT * FROM " +
    props.getPropertyValue(props.NB_DBTABLE_ACCOUNT) +
    " WHERE " +
    "(" + props.getPropertyValue(props.NB_DBFIELD_ACCOUNT_CUSTOMERNO) +
    "='" + CustomerNo + "')";
    // DEBUG:
    nbDebug.write("accounts list SQL= " + sql);
    // DEBUG:
    // Let's get the connection, the statement, and the record set.
    conn = dataSourceObj.getConnection();
    stmt = conn.createStatement();
    rset = stmt.executeQuery(sql);
    // Let's loop for each single account
    int index = 0;
    nbAccount account = null;
    while (rset.next()) {
         String AccountNo = rset.getString(_props.getPropertyValue(_props.NB_DBFIELD_ACCTPERMIS_ACCOUNTNO));
    // Instantiate an account object
    account = new nbAccount(AccountNo);
    index++;
    } catch (SQLException e) {
         nbUtility.logError(e, "SQLException while trying to get accounts data.");
    } finally {
    try {
    if (rset != null) { rset.close(); rset = null; }      
    if (stmt != null) { stmt.close(); stmt = null; }
    if (conn != null) { conn.close(); conn = null; }
    } catch (SQLException e) {
         nbUtility.logError(e, "SQLException while trying to close connection.");
    return (accountList);      
    }

    I've experienced similar problems. Unfortunately, all efforts by iPlanet
    technical support to resolve the issue have failed. (They do keep calling
    and asking if they can close the ticket for some reason)
    One thing that's totally anoying is the ksvradmin monitory crashes when I
    try to have it report any connection pool information. They verified it's a
    bug in SP3 but won't say if it's fixed in SP4 or provide an estimate.
    To date here's what I've tried (by tech support's recomendation):
    1) Configure for global transactions. (even thow I'm not using them)
    (Failed)
    2) Switch to using 3rd party driver (We were previously using native)
    (Failed)
    3) Ran report on oracle showing number of connections used during iplanet's
    failed attempt. Report from Oracle shows 2 connections open, but iPlanet is
    configured for 120.
    4) Increased the connection pool size. (I didn't know why based on the
    above info) (Increased to 300) (Failed)
    Well there's my history. We crash after about 3 days of heavy usage. I'm
    about to give up and just reset my servers each night. Will help me with
    logfile rotation of the kjs files as well.
    Rodger Ball
    Sr. Engineer
    Business Wire
    "Bilal Chouman" <[email protected]> wrote in message
    news:[email protected]...
    Problem Statement:
    Running out of data connections after some time and
    the following SQLException is thrown:
    "failed to create a data connection with any of the
    specified drivers"
    Problem Description:
    I have an application that is running under iPlanet
    6.0 on solaris using Oracle 8 and type 2 Oracle
    driver.
    The application is using a number of stateless
    session beans.
    Normally, my servlets instantiate the remote beans in
    order to make access to their interfaces. For
    example, I have a servlet that fetches all of
    the accounts for a given customer. First, The servlet
    does the fetch by calling JNDI to lookup the "home"
    interface, then does a "create" call on the home
    interface to get the "remote" interface
    (see snippets of code below, the ejbCreate()).
    Second, the servlet calls up a specific method that
    extracts the customer's accounts (see snippets of
    code below, the method getAccountList()).
    At first all seem to work well, however after some
    random time my beans start to throw the SQLException
    "failed to create a data connection with any of the
    specified drivers"
    At first I thought that I am not closing the
    connections, but all of of my connections,
    statements, and result sets, are closed
    and even set to null in a finally block as you can
    see in the snippets of code below.
    If I restart iAS, all of the connections get released
    and things look normal again till the problem
    re-occurs.
    Initially, we had this problem on SP2, so we upgraded
    to SP3 thinking that this may solve the problem,
    however the problem remained on SP3.
    Another thing, this same application works perfectly
    well on my laptop which has similar iPlanet
    configurations except that operating system is
    Windows 2000 Advanced Server, and Oracle 8.0.4.0.0.
    System Configuration:
    Following is my system configuration and related
    iPlanet 6.0 settings.
    -1- iPlanet 6.0 SP3
    -2- Type 2 Oracle driver
    -3- SunOs, sparc SUNW, Ultra-250, solaris 5.8
    -4- Oracle 8.1.6.0.0 64-bit Production
    -5- Following are the entry settings in the iPlanet
    registry under
    Software\iPlanet\Application Server\6.0\CCS0\DAE2\ORACLE_OCI
    - CacheCleanInterval = 120
    - CacheConnTimeOut = 120
    - CacheDebugMsgs = 0
    - CacheFreeSlots = 16
    - CacheInitSlots = 64
    - CacheMaxConn = 64
    - CachMaxGlobalConn = 128
    - ConnGiveUpTime = 60
    - RMThreadMax = 32
    - RMThreadMin = 0
    - RSBufferInitRows = 25
    - RSBufferMaxBufferSize = 6553600
    - RSBufferMaxRows = 100
    - RSBufferMaxSize = 32768
    - SQLDebugMsgs = 0
    Snippets of Code:
    The following snippets of code come from a stateless
    session bean and consist of a local data member, the
    ejbCreate() method, and a typical rmi method that
    does the database connection and extraction of
    related records.
    javax.sql.DataSource dataSourceObj = null;
    public void ejbCreate()
    throws java.rmi.RemoteException, javax.ejb.CreateException
    javax.naming.Context ctx = null;
    // Ensure first that the _props have been
    // successfully instantiated by the constructor.
    if (_props != null) {
    try{
    ctx = new javax.naming.InitialContext();
    }catch (Exception ex){
    nbUtility.logError(ex,"Error while creating Initial Context
    try{
    // DEBUG:
    System.out.println("ejbCreate(): NB_DATASOURCE = " +
    props.getPropertyValue(props.NB_DATASOURCE));
    // DEBUG:
    dataSourceObj = (javax.sql.DataSource)
    ctx.lookup(_props.getPropertyValue(_props.NB_DATASOURCE));
    catch (Exception ex){
    ex.printStackTrace();
    if (dataSourceObj == null)
    throw new javax.ejb.CreateException("Couldn't get DataSource
    object from environment");
    } else {
    throw new javax.ejb.CreateException("Couldn't create the
    property manager: NB_CONFIG_FILE is null, empty, not set, or thefile
    doesn't exist.");
    * Given a customer number, this method
    * returns the list of accounts that belongs to
    * this customers.
    public nbAccountList getAccountList(String CustomerNo)
    throws java.rmi.RemoteException {
    nbAccountList accountList = null;
    if ((CustomerNo != null) && (!CustomerNo.equals(""))) {
    java.sql.Connection conn = null;
    java.sql.Statement stmt = null;
    java.sql.ResultSet rset = null;
    try {
    accountList = new nbAccountList();
    String sql = "SELECT * FROM " +
    props.getPropertyValue(props.NB_DBTABLE_ACCOUNT)
    +
    " WHERE " +
    "(" +
    props.getPropertyValue(props.NB_DBFIELD_ACCOUNT_CUSTOMERNO) +
    "='" + CustomerNo + "')";
    // DEBUG:
    nbDebug.write("accounts list SQL= " + sql);
    // DEBUG:
    // Let's get the connection, the statement, and the record
    set.
    conn = dataSourceObj.getConnection();
    stmt = conn.createStatement();
    rset = stmt.executeQuery(sql);
    // Let's loop for each single account
    int index = 0;
    nbAccount account = null;
    while (rset.next()) {
    String AccountNo =
    rset.getString(_props.getPropertyValue(_props.NB_DBFIELD_ACCTPERMIS_ACCOUNTN
    O));
    >
    // Instantiate an account object
    account = new nbAccount(AccountNo);
    index++;
    } catch (SQLException e) {
    nbUtility.logError(e, "SQLException while trying to get
    accounts data.");
    } finally {
    try {
    if (rset != null) { rset.close(); rset = null; }
    if (stmt != null) { stmt.close(); stmt = null; }
    if (conn != null) { conn.close(); conn = null; }
    } catch (SQLException e) {
    nbUtility.logError(e, "SQLException while trying to close
    connection.");
    return (accountList);
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • IPOD POWER RUNS OUT QUICKLY WHEN CONNECTED TO PC

    Hi All,
    My fully charged IPod runs out of power in half an hour when I connect to PC, whereas when it is connected to my MAC it recharges the power.
    What can I do to prolong a battery time connected to PC?
    Thanks
    G

    Welcome to Apple Discussions.
    You have a 3G iPod. If you are using USB to connect, then I would say it is perfectly normal since 3G iPods cannot charge via USB and therefore your battery will be depleted when you sync. If indeed you are using USB, I suggest you get an USB2/Firewire iPod cable and connect the iPod in this way: How to connect the iPod Dock Connector to FireWire and USB 2.0 Cable (You need the Firewire iPod charger which should be included with your iPod.).

  • Running out of available connections

    Hi, we have been used OO4O for about 5 years in an ASP.NET application under Windows 2000, which appear to be fine.
    1.5 years ago we upgraded to Windows 2003 where we noticed that connections was not being returned back to the datapool. We had Microsoft help us identity that the OO40 COM object was the root cause (a threading issue for I can remember).
    I know that we have done everything in our code to close the connections, but to no still having the same problem(s). What we did was to try to obtain a connction from the datapool (50) which worked but for any reason this failed (99% of the time the connection pool was full) we would make a direct connection to the database (which we closed, destroyed etc).
    Over the last 6 months we have rewritten 60% of our Web application to improve performance using ODP.NET and still using OO40 for the remainder 40%. Becauase these new changes did not impact any existing functionality, we only done performance tests on the new framework (ASP.NET V2.0/V3.0, ODP.NET).
    We went live over yesturday (Monday 18/08/2008), with no problems until 1pm where we experienced errors on the old version (using OO4O).
    We then perform a load test (15 users for about 5-10 minutes) on the old version on one of these page(s) and noticed when the connections to the database hit 23 then these page(s) started to fail.
    As soon as these connection dropped, these page(s) started to work fine.
    We have 2 version of Oracle Client 9.2 and 10 (ODP.NET), could installing V10 along side 9 cause any problems?
    Any help would be great.
    Thank you

    Hello,
    Did you ckeck the TCP/IP port of the SQL Server service? Please verify you had configured the firewall on the computer to allow this instance of SQL Server to accept connections, for example Tcp port 1433, by default.
    The following thread is about same issue, you can try to the solution as Nitin post:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/27684811-1a59-4273-b7ed-3cc990b4f20a/sql-server-error-53-and-sql-server-error-17?forum=sqlgetstarted
    The following KB article may related to this issue:
    http://support.microsoft.com/kb/817179
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here.
    Fanny Liu
    TechNet Community Support

  • Connection pool running out of connections

    Hi all,
    I am using Oracle's connection pool implementation:
    OracleConnectionPoolDataSource dbConnection;
    OracleConnectionCacheImpl connectionPool;
    and tomcat 3 and 4. Sometimes on Tomcat 4 (Linux) I see that the connections are not being reutilized and therefore I run out of free connections. The same application runs fine on NT and Tomcat 3 and 4. I checked all my methods and all have a close(connection) in my finally{} and besides this the problem only happens once in a while and the program is using the same methods all the time. Anybody has a clue about what could the issue be?
    Thanks,
    A.

    have u tried setCacheScheme?

  • JCo Connections in WD Model running out

    Hello,
    we have WD application that uses RFC model.
    During a load test we have observed that the connection
    pools are running out of JCo connections. The result is a an error message in the trace file
    and Http 500 response code to the end user.
    Number of concurrent users: 20
    Max Pool Size: 20
    Max Connections: 20
    Exception:
    [code]aused by: com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Connection pool ME_LP_MODELDATA_TSTWEB1_PT_useSSO is exhausted. The current pool size limit is 20 connections.
         at com.sap.mw.jco.JCO$Pool.getClient(JCO.java:5150)
         at com.sap.mw.jco.JCO$PoolManager.getClient(JCO.java:5849)
         at com.sap.mw.jco.JCO$PoolManager.getClient(JCO.java:5799)
         at com.sap.mw.jco.JCO.getClient(JCO.java:8076)
         at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.getClient(AbstractJCOClientConnection.java:393)
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModel.getCurrentlyUsedJcoClient(AiiModel.java:191)[/code]
    Questions:
    Is it necessary to have equal number of Max Connections as
    number of potential concurrent users?
    Or is there a way to manually release not used connections?
    Best Regards, Maik

    Hi,
    It is not necessary to create as many connections as there are concurrent users.
    We have to handle the scope of the connection properly and also close the connections once we complete the task.
    Re: How to close a model object connection for Adaptive RFC?
    Regards
    Bharathwaj

  • The connection pool DIMT_DB is running out of connections

    I am facing an issue, the process instances created in activity are not getting routed to my work item. I found the following exception logged in engine DB at the time process instance was created,
    The connection pool DIMT_DB is running out of connections ( 100 % of the pool is in use).
    It is recommendable to expand the size through the Process Administrator.
    can anyone provide me a solution to this issue?
    the maximum pool size is 10. should it be increased?
    does this issue occur when database connection is not closed properly?

    Can anyone please share your ideas?
    Thanks,

  • Re:Running out of connection pools one server

    Hi,
    We are running out of connection pools on one weblogic server only everytime in a 2 node cluster.
    But the sessions are very less in the database when we faced the issue.
    But this doesn't happen all the time it happens once in a month.
    our configuration
    <jdbc-connection-pool-params>
    <initial-capacity>10</initial-capacity>
    <max-capacity>150</max-capacity>
    <capacity-increment>5</capacity-increment>
    <shrink-frequency-seconds>300</shrink-frequency-seconds>
    <connection-creation-retry-frequency-seconds>300</connection-creation-retry-frequency-seconds>
    <test-connections-on-reserve>true</test-connections-on-reserve>
    <Sep 27, 2010 4:14:11 PM EDT> <Info> <JDBC> <BEA-001128> <Connection for pool "kdbDS" closed.>
    <Sep 27, 2010 4:14:11 PM EDT> <Info> <Common> <BEA-000627> <Reached maximum capacity of pool "kdbDS", making "0" new resource instances instead of "5".>
    2010-09-27 16:14:11,0722, SEVERE: kdb - com.cvc.kdb.appcontext.AppContext(logSevere)DynamicContent: SearchDynamicContentManager.getDynamicContent() evaluating template id=2005
    java.net.SocketException: Broken pipe
    2010-09-27 16:14:11,0724, INFO: kdb - com.cvc.kdb.appcontext.AppContext(logInfo)User session established: nkpLMg7TKQTz3vllmYKKdXyf7lFcLZBvtjnppnJdGQT97TssnLz2!1568862676!1563294179!1285618451720
    <Sep 27, 2010 4:14:11 PM EDT> <Info> <Common> <BEA-000627> <Reached maximum capacity of pool "kdbDS", making "0" new resource instances instead of "5".>
    <Sep 27, 2010 4:14:11 PM EDT> <Info> <Common> <BEA-000627> <Reached maximum capacity of pool "kdbDS", making "0" new resource instances instead of "5".>
    2010-09-27 16:14:11,0725, SEVERE: kdb - com.cvc.kdb.appcontext.AppContext(logSevere) ConceptGuidedSearch.jsp: java.net.SocketException: Broken pipe
    java.net.SocketException: Broken pipe
         at java.net.SocketOutputStream.socketWrite0(Native Method)
         at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
         at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
         at weblogic.servlet.internal.ChunkOutput.writeChunkTransfer(ChunkOutput.java:525)
         at weblogic.servlet.internal.ChunkOutput.writeChunks(ChunkOutput.java:504)
         at weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java:382)
         at weblogic.servlet.internal.ChunkOutput.checkForFlush(ChunkOutput.java:469)
         at weblogic.servlet.internal.ChunkOutput.print(ChunkOutput.java:344)
         at weblogic.servlet.internal.ChunkOutputWrapper.print(ChunkOutputWrapper.java:146)
         at weblogic.servlet.jsp.JspWriterImpl.print(JspWriterImpl.java:151)
         at weblogic.servlet.jsp.JspWriterImpl.println(JspWriterImpl.java:205)
         at jsp_servlet._jsp._search._cda.__conceptguidedsearch._jspService(__conceptguidedsearch.java:411)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at com.cvc.kdb.filter.CookieFilter.doFilter(CookieFilter.java:73)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3242)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    <Sep 27, 2010 4:14:11 PM EDT> <Info> <Common> <BEA-000627> <Reached maximum capacity of pool "kdbDS", making "0" new resource instances instead of "5".>
    <Sep 27, 2010 4:14:11 PM EDT> <Info> <JDBC> <BEA-001128> <Connection for pool "kdbDS" closed.>
    <Sep 27, 2010 4:14:11 PM EDT> <Info> <Common> <BEA-000627> <Reached maximum capacity of pool "kdbDS", making "0" new resource instances instead of "5".>
    <Sep 27, 2010 4:14:11 PM EDT> <Notice> <Stdout> <000000> <7808-515177-2>
    <Sep 27, 2010 4:14:11 PM EDT> <Notice> <Stdout> <000000> <1>
    2010-09-27 16:14:11,0732, SEVERE: kdb - com.cvc.kdb.appcontext.AppContext(logSevere)no cookie:

    notoriousdbp wrote:
    You'd still be renting the line too, which is handy because it means BT still own it.
    Well if I have to still pay the line rental, I will take the free number that comes with it.. Thankyou.
    toekneem
    http://www.no2nuisancecalls.net
    (EASBF)

  • Connection leaks and application is running out of connection

    Hi All,
    We have configured the SQL Database external resource for OBPM specific connection pool. All the business processes are using the Fuego.Sql package for the data base transaction calls. I have no clue how this package is managing the database connections. If more than 25 users perform concurrent testing, the application is running out of connections. Connection pool configuration details as below.
    Maximum Pool Size : 500
    Maximum connections per user : 50
    Minimun Pool Size : 0
    Connection Idle Time (mins). : 5
    Maximum Opened Cursors : 1000
    Please share your thoughts on how I can track and fix this issue. Also please let me know the answers below.
    1. Is there any way to find out the stats about the connection pool
    2. If I configure the remote JDBC that points to J2EE datasource, would that fix this issue.
    I appreciate your help.
    Thanks,

    Can anyone please share your ideas?
    Thanks,

  • Running out of connections...

     

    Hello,
    I think I'm having the same problem ..
    Did you solve it ? How ?
    Thanks a lot.
    Franco
    Francesco Costa
    BEA Systems Italia
    [email protected]
    Phone +39 02 3327 3000
    Mobile + 39 335 1246931
    Fax +39 02 3327 3001
    "Gerhard Henning" <[email protected]> ha scritto nel messaggio
    news:[email protected]...
    >
    Hi,
    we seem to have a similar problem. Can you please tell me,
    which service pack solves the problem.
    We are using SP8 but the problem seems to be still there!
    Thanks
    Gerhard
    Joseph Weinstein <[email protected]> wrote:
    Gene Chuang wrote:
    Hi Joe,
    Good news; bug ISOLATED and FIXED! First off, I was able to determinethis bug only manifests if
    we are running clustered apps. under a single app server, this bugdoes not appear, and under
    clustered app this bug always appears.
    Furthermore, I appologize if I may have lead you on a wild goosechasewith all the subsequent
    patches you sent me. As it turns out, when I received each patch Ihanded it off to our tester, who
    applied the patch and probably only bounced a node in our server
    cluster
    before testing, hence
    getting negative results. Today I applied your latest patch,
    clean-bounced
    all the nodes, and the
    bug disappeared! Thanks Joe!
    Now the 2 questions of the day:
    1) Is your latest patch production worthy? Can I apply it on ourlive site?
    Yes.
    2) If not, when's the next service pack coming out with this fix?It will be in future service packs.
    Joe
    Gene
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    >>>>
    >>>>
    Gene Chuang wrote:
    Hi Joe,
    We tried it and found the same exception raised, except for this
    time it took a lot longer to
    bug
    out; the server hung for almost 2 minutes before dumping the
    following.
    However I was just
    informed by another developer that we may have a recursive bugon our side, and that we are
    doing a
    non-terminating db search. Perhaps this is causing this
    out-of-resource
    allocation bug, i.e.
    our
    bug exposed your bug! I'm sure once we fix our recursion bug we
    won't see this again, but maybe
    something should also be done on your side that'll handle thismore gracefully...
    I'll let you know what happens once we fix our bug; thanks forthe help!
    DO let me know. In fact, please use the attached jar (in place ofall the others:-)
    because the line ResourceAllocator.java:561 is not executable code.There may be a
    JVM problem... I'm fairly sure there's no way our code can causean NPE in this
    area...
    Joe
    javax.ejb.FinderException: Couldn't build CallableStatement from
    JDBCCommandImpl:
    java.sql.SQLException: Exception raised by connection pool
    :java.lang.NullPointerException
    atweblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.java:56
    1)
    atweblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.java:55
    5)
    atweblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.java:50
    2)
    atweblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.java:172
    atweblogic.jdbc.common.internal.ConnectionPool.reserveWaitSecs(ConnectionPool.
    java:145)
    atweblogic.jdbcbase.jts.Connection.openConnectionIfNecessary(Connection.java:5
    87)
    atweblogic.jdbcbase.jts.Connection.prepareCall(Connection.java:159)
    atweblogic.jdbc20.rmi.internal.ConnectionImpl.prepareCall(ConnectionImpl.java:
    89)
    atweblogic.jdbc20.rmi.SerialConnection.prepareCall(SerialConnection.java:71)
    atcom.kiko.db.JDBCConnection.getCallableStatement(JDBCConnection.java:158)
    >>>>>
    Gene Chuang
    Join Kiko.com!
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    >>>>>>
    >>>>>>
    Gene Chuang wrote:
    Hi Joe,
    We were finally able to consistently replicate the
    ResourceAllocator.reserve()
    stacktrace,
    although
    from a slightly different route. I tried your jar, and now
    have a slightly different
    exception:
    Hi Gene. Thank you for your patience. Here's one last jar file.
    Ditch the previous one. I appreciate your energy and willingness
    to help. Let me know,
    Joe
    javax.ejb.EJBException: Failed to select row 0: Exception
    raised
    by connection pool
    :java.lang.NullPointerException
    at
    weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.java:56
    1)
    atweblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.java:55
    5)
    atweblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.java:50
    2)
    atweblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.java:172
    atweblogic.jdbc.common.internal.ConnectionPool.reserveWaitSecs(ConnectionPool.
    java:145)
    atweblogic.jdbcbase.jts.Connection.openConnectionIfNecessary(Connection.java:5
    87)
    atweblogic.jdbcbase.jts.Connection.prepareStatement(Connection.java:135)
    atweblogic.jdbc20.rmi.internal.ConnectionImpl.prepareStatement(ConnectionImpl.
    java:80)
    atweblogic.jdbc20.rmi.SerialConnection.prepareStatement(SerialConnection.java:
    55)
    atcom.kiko.db.JDBCConnection.getPreparedStatement(JDBCConnection.java:141)
    >>>>>>>
    Gene Chuang
    Join Kiko.com!
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    Hi Gene.
    Would you put the attached jar to the head of your
    weblogic.classpath,
    and let me know if this fixes the problem? thanks,
    Joe
    Gene Chuang wrote:
    WL 5.1 sp 6, running on Solaris 2.7 over Oracle 8i
    Gene Chuang
    Join Kiko.com!
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    Gene Chuang wrote:
    Hi Joe,
    Now I'm getting this slightly different stack trace...
    do u think it's the same
    "out of
    connection"
    error, or something else?It's something else. What version of the product is this?
    Joe
    Couldn't build PreparedStatement from JDBCCommandImpl:
    java.sql.SQLException:
    Exception
    raised
    by
    connection pool :java.lang.NullPointerException
    at
    weblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.java:56
    1)
    atweblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.java:55
    5)
    atweblogic.common.internal.ResourceAllocator.reserve(ResourceAllocator.java:50
    2)
    atweblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.java:172
    atweblogic.jdbc.common.internal.ConnectionPool.reserveWaitSecs(ConnectionPool.
    java:145)
    atweblogic.jdbcbase.jts.Connection.openConnectionIfNecessary(Connection.java:5
    87)
    atweblogic.jdbcbase.jts.Connection.prepareStatement(Connection.java:135)
    atweblogic.jdbc20.rmi.internal.ConnectionImpl.prepareStatement(ConnectionImpl.
    java:80)
    atweblogic.jdbc20.rmi.SerialConnection.prepareStatement(SerialConnection.java:
    55)
    >>>>>>>>>>>
    Gene Chuang
    Join Kiko.com!
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    Hi.
    The server won't let an EJB wait indefinitely for
    a connection to become
    available in a pool. All the while it waits, it iscommandeering one
    of the fixed number of execute-threads, doing nothingwhile the thread
    could possibly run another task which already hasit's pool connection,
    and could release it if it ran. The default waitallowed is 5 seconds
    the server decides to devote it's resources to thework it can do, and
    not let overflow requests cause an unintentionalor malicious denial-
    of-service attack. The fundamental solution is tosupply enough DBMS
    connections to serve the load you have.
    Joe
    Gene Chuang wrote:
    Hi,
    Here's our pool init info:
    weblogic.jdbc.connectionPool.oraclePool=\
    driver=oracle.jdbc.driver.OracleDriver,\
    url=jdbc:oracle:oci8:@xxx,\
    loginDelaySecs=0,\
    initialCapacity=4,\
    maxCapacity=10,\
    capacityIncrement=2,\
    allowShrinking=true,\
    shrinkPeriodMins=15,\
    refreshMinutes=10,\
    testTable=dual,\
    props=user=xxx;password=xxxx;server=xxx
    I run a db-intensive data migration program on
    my ejbs (hence JDBC connection
    requests
    are
    made
    on
    the serverside). After a while, I run out of
    connections,
    and the exception
    pasted
    below is
    thrown.
    Why is this exception thrown? If the pool is at
    maxCapacity and all connections
    are
    taken,
    shouldn't weblogic place the connection-requestor
    on wait until a connection is
    available?
    And
    I'm
    pretty sure I return the connections because I
    wrap connection.close() on a
    finally
    block...
    JDBCPoolConnection.connect: Problem connecting
    Exception:
    java.sql.SQLException: Pool connect failed: Noneavailable
    java.sql.SQLException: Pool connect failed: Noneavailable
    at
    weblogic.jdbcbase.pool.Driver.connect(Driver.java:184)
    atweblogic.jdbcbase.jts.Driver.connect(Driver.java:233)
    at
    weblogic.jdbc20.common.internal.RmiDataSource.getConnection(RmiDataSourc
    e.java:55)
    at
    weblogic.jdbc20.common.internal.RmiDataSource_ServiceStub.getConnection(
    RmiDataSource_ServiceStub.java:179)
    at
    com.kiko.db.JDBCPoolConnection.connect(JDBCPoolConnection.java:24)ABMEB.
    ejbActivate: Getting bean out of pooled state.
    Gene Chuang
    Join Kiko.com!--
    PS: Folks: BEA WebLogic is in S.F. with both entryand advanced positions for
    people who want to work with Java and E-Commerceinfrastructure products. Send
    resumes to [email protected]
    The Weblogic Application Serverfrom BEA
    JavaWorld Editor's Choice Award: Best WebApplication Server
    Java Developer's Journal Editor's Choice Award:Best Web Application Server
    Crossroads A-List Award: Rapid Application
    Development
    Tools for Java
    Intelligent Enterprise RealWare: Best ApplicationUsing a Component Architecture
    >
    http://www.bea.com/press/awards_weblogic.html
    >>>>>>>>>>
    PS: Folks: BEA WebLogic is in S.F. with both entry andadvanced positions for
    people who want to work with Java and E-Commerce
    infrastructure
    products. Send
    resumes to [email protected]
    The Weblogic Application Server fromBEA
    JavaWorld Editor's Choice Award: Best Web
    Application
    Server
    Java Developer's Journal Editor's Choice Award: BestWeb Application Server
    Crossroads A-List Award: Rapid Application
    Development
    Tools for Java
    Intelligent Enterprise RealWare: Best Application Usinga Component Architecture
    >
    http://www.bea.com/press/awards_weblogic.html
    >>>>>>>>
    PS: Folks: BEA WebLogic is in S.F. with both entry andadvanced
    positions for
    people who want to work with Java and E-Commerce
    infrastructure
    products. Send
    resumes to [email protected]
    The Weblogic Application Server fromBEA
    JavaWorld Editor's Choice Award: Best Web
    Application
    Server
    Java Developer's Journal Editor's Choice Award: Best WebApplication Server
    Crossroads A-List Award: Rapid Application DevelopmentTools for Java
    Intelligent Enterprise RealWare: Best Application Using aComponent Architecture
    >
    http://www.bea.com/press/awards_weblogic.html
    >>>>>>
    PS: Folks: BEA WebLogic is in S.F. with both entry and advancedpositions for
    people who want to work with Java, XML, SOAP and E-Commerce
    infrastructure
    products. Send resumes to [email protected]
    The Weblogic Application Server from BEA
    JavaWorld Editor's Choice Award: Best Web ApplicationServer
    Java Developer's Journal Editor's Choice Award: Best Web
    Application
    Server
    Crossroads A-List Award: Rapid Application Development Toolsfor Java
    Intelligent Enterprise RealWare: Best Application Using a
    Component
    Architecture
    http://www.bea.com/press/awards_weblogic.html--
    PS: Folks: BEA WebLogic is in S.F. with both entry and advanced
    positions
    for
    people who want to work with Java, XML, SOAP and E-Commerce
    infrastructure
    products. Send resumes to [email protected]
    The Weblogic Application Server from BEA
    JavaWorld Editor's Choice Award: Best Web Application Server
    Java Developer's Journal Editor's Choice Award: Best WebApplication
    Server
    Crossroads A-List Award: Rapid Application Development Toolsfor Java
    Intelligent Enterprise RealWare: Best Application Using a ComponentArchitecture
    http://www.bea.com/press/awards_weblogic.html--
    PS: Folks: BEA WebLogic is in S.F. with both entry and advanced positions
    for
    people who want to work with Java, XML, SOAP and E-Commerceinfrastructure
    products. Send resumes to [email protected]
    The Weblogic Application Server from BEA
    JavaWorld Editor's Choice Award: Best Web Application Server
    Java Developer's Journal Editor's Choice Award: Best Web Application
    Server
    Crossroads A-List Award: Rapid Application Development Tools for
    Java
    Intelligent Enterprise RealWare: Best Application Using a ComponentArchitecture
    http://www.bea.com/press/awards_weblogic.html

  • ConnectionPoolDataSource - running out of Connections..

    Hi
    I have a same problem as described in this thread
    http://forum.java.sun.com/thread.jsp?forum=136&thread=560645&tstart=0&trange=15
    I have Q42004 Beta J2EE SDK, and am using MS SQL 2000 databse server with jTDS 0.9 (jtds.sourceforge.net) JDBC driver...
    I have a very simple servlet that gets a DataSource from the JNDI, gets connection , does some stuff, closes connection....Pretty basic....After a while I get the following error
    [#|2004-10-08T19:19:08.053-0400|INFO|sun-appserver-pe8.1|javax.enterprise.system.stream.out|_ThreadID=28;|
    [2004-10-08 19:19:08,053] [ERROR] [org.nemours.webapps.coi.COIServlet]
    [MSG] java.sql.SQLException: Error in allocating a connection. Cause: In-use connections equal max-pool-size and expired  max-wait-time. Cannot allocate more connections.
            at com.sun.gjc.spi.DataSource.getConnection(DataSource.java:74)
            at org.nemours.webapps.coi.COIServlet.getDBConnection(Unknown Source)
            at org.nemours.webapps.coi.COIServlet.doProcess(Unknown Source)
            at org.nemours.webapps.coi.COIServlet.doPost(Unknown Source)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
            at sun.reflect.GeneratedMethodAccessor248.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
            at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:273)
            at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
            at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
            at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:262)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:618)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:500)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:375)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    Error in allocating a connection. Cause: In-use connections equal max-pool-size and expired max-wait-time. Cannot alloca
    te more connections.
    |#]the configuration of the pool in my domain.xml is as follwing...
    <jdbc-resource enabled="true" jndi-name="jdbc/coiDB" object-type="user" pool-name="coi_Pool"/>
        <jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="net.sourceforge.jtds.jdbcx.JtdsConnectionPoolDataSource" fail-all-connections="true" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="false" max-pool-size="32" max-wait-time-in-millis="60000" name="coi_Pool" pool-resize-quantity="2" res-type="javax.sql.ConnectionPoolDataSource" steady-pool-size="8">
          <description>jTDS 0.9 Type 4 JDBC Driver</description>
          <property name="DatabaseName" value="coi"/>
          <property name="Password" value="******"/>
          <property name="User" value="*******"/>
          <property name="ServerName" value="localhost"/>
        </jdbc-connection-pool>
    ...After few WAR redeployments I run out of connections....I have noticed also the following:
    1. On MS SQL Enterprise Manager - Management console there are no processes/locks associated with jTDS meaning there are no outstanding connection when I get an error...
    2. After a restart of MSSQL services i still get an error
    3. After an application redeployment I still get an error
    4. After a domain restart the error goes away untill i redeploy the app several times....
    Can someone PLEASE let me know if this is a bug in Q42004 or am I doing something bad...
    I spent hours debugging the code trying to figure this one out....
    Thanks
    Z

    Hi
    jTDS 0.9 does not have XADataSource implementation but it has DataSource implementation.
    If I use the DataSource imlementation I still get the "out of connections" problem....
    This same application did not exibit any problems on Updte 1.
    The code of my servlet is pretty big but here are the relevant snippets:
         private Connection getDBConnection() {
              DataSource ds = null;
              Connection conn = null;
              try {
                   Log.info(this.getClass(), "Attempting to use ServiceLocator to get DS from JNDI...");
                   ds = ServiceLocator.getInstance().getDataSource("jdbc/coiDB");
                   Log.info(this.getClass(), "Attempting to get connection...");
                  conn = ds.getConnection();
              } catch (Exception e) {
                   Log.error(this.getClass(),"failure...!");
                   Log.exception(this.getClass(), e);
              return conn;
         private Employee getEmployee(int empID) {
              Employee existingEmp = null;
              PreparedStatement pstmt = null;
              ResultSet rset = null;
              Connection conn = getDBConnection();
              try {               
                   pstmt = conn.prepareStatement("SELECT * FROM EMPLOYEE WHERE ID = ?");
                   pstmt.setInt(1, empID);
                   rset = pstmt.executeQuery();               
                   if (rset.next()) {
                        existingEmp = new Employee(rset.getInt("id"), rset.getString("fname"), rset.getString("lname"), rset.getString("location"), rset.getString("department"), rset.getString("phone"));
                        existingEmp.setCreateTS(rset.getTimestamp("create_ts"));
              } catch (SQLException e) {
                   Log.error(this.getClass(), "Failed DB operation while checking for existing employee");
                   Log.exception(this.getClass(), e);
              } finally {
                   DBUtils.closeResultSet(rset);
                   DBUtils.closeStatement(pstmt);
                   DBUtils.closeConnection(conn);
              return existingEmp;     
         }The DBUtils I use is just convenience static class that wraps regular JDBC calls into try catch block and ServiceLocator is a BluePrints pattern straight from AdventureBUilder 1.0.1. Employee is a my model/subject class.....
    Thanks
    Z...

  • How do I add to my data plan on the iPad once I have run out of time and no longer have an internet connection?

    How do I add to my data plan on the iPad once I have run out  and no longer have an internet connection? I am working out of the country and got a message that I was running low,followed immediatly by a you're out message.

    Should you not be asking your carrier? They are the people supplying your data plan.

  • How to use pool connection run oracle procedure?

    Hi, All:
              I am facing a difficulty I can not find the solution. Maybe you can help
              me.
              I want to call an oracle stored procedure whenever I talk to datebase to
              make the application more efficient. I was able to run the procedure using
              oracle thin driver but not the connection pool using Weblogic jDriver for
              JDBC2.0.
              Please check the following code and see what I did wrong:
              The code in JSP file in Weblogic:
              <%-- JSP page directive --%>
              <%@ page
              import="java.io.*,java.util.*,java.sql.*,weblogic.common.*,weblogic.jdbc20.c
              ommon.*" %>
              <%-- JSP Declaration --%>
              <%!
              protected Connection con = null;
              ResultSet rset = null;
              %>
              <%-- JSP Scriptlet --%>
              <% try {
              Properties props = new Properties();
              props.setProperty("user", "james");
              props.setProperty("password", "aimjames");
              Driver myDriver =
              (Driver) Class.forName
              ("weblogic.jdbc.pool.Driver").newInstance();
              con = myDriver.connect("jdbc:weblogic:pool:hdj2Pool", props);
              String userid = (String)session.getAttribute("user.id");
              int subid =
              Integer.parseInt((String)session.getAttribute("sub.id"));
              String query = "begin pkg_select.sel_req_in_001(" + userid +
              ", " + subid + ", ?); end;";
              weblogic.jdbc.common.OracleCallableStatement cstmt =
              (weblogic.jdbc.common.OracleCallableStatement)con.prepareCall(query);
              cstmt.registerOutParameter(1,java.sql.Types.OTHER);
              cstmt.execute();
              rset = cstmt.getResultSet(1);
              When I run this JSP file, the compilation is fine but the result shows
              nothing. That's means I can not get the ResultSet for some reason.
              The working file when I use oracle thin driver (NOT use a connection pool):
              String userid = (String)session.getAttribute("user.id");
              int subid = Integer.parseInt((String)session.getAttribute("sub.id"));
              String query = "begin pkg_select.sel_req_in_001(" + userid +", " +subid
              +", ?); end ";
              CallableStatement cstmt = con.prepareCall(query);
              cstmt.registerOutParameter(1,OracleTypes.CURSOR);
              cstmt.execute();
              ResultSet rset = (ResultSet)cstmt.getObject(1);
              You may notice that I am trying to bind a parameter to an Oracle cursor. Is
              there anything I did wrong in using weblogic API? I just want to let you
              that in the weblogic JSP file, I also tried to use
              weblogic.jdbc.oci.CallableStatement and
              weblogic.jdbc20.oci.CallableStatement instead of
              weblogic.jdbc.common.OracleCallableStatement, but none of them seems work.
              I did check the bea site at
              http://www.weblogic.com/docs51/classdocs/API_joci.html#1080420 for the
              example to use:
              cstmt.registerOutParameter(1,java.sql.Types.OTHER);
              and I think I followed the exact procedure the example did.
              Please help!
              James Lee
              Artificial Intelligence in Medicine, Inc.
              2 Berkeley Street, Suite 403
              Toronto, Ontario M5A 2W3
              Tel: 416-594-9393 ext. 223
              Fax: 416-594-2420
              Email: [email protected]
              

    Joseph
    Thanks for the suggestion about latest version of Weblogic Server.
    "coding best-practices" is not mentioned in the post.
    In order to make servlet application run significantly faster, my servet how to use connection poo is much moreresonable?
    It is reasonable to expect servlet to run significantly faster with connection pooling.
    Is it true that geting and close a connection whenever
    one time database access finished?
    Already answered. Applications use a connection from the pool then return it when finished using the connection.
    Will the solution affect the servlet performance?
    Yes. Already answered. Connection pooling enhances performance by eliminating the costly task of creating database connections for the application.
    Is there any official document to introduce connection pool program?
    For the latest version
    http://download.oracle.com/docs/cd/E17904_01/web.1111/e13726/toc.htm
    http://download.oracle.com/docs/cd/E17904_01/web.1111/e13737/jdbc_datasources.htm#insertedID0

  • Hey my iPod is not showing up on iTunes and my computer doesn't recognize it. It runs out of battery very fast and only shows the 'Connect to iTunes" screen. What do I do?

    Hey my iPod is not showing up on iTunes and my computer doesn't recognize it. It runs out of battery very fast and only shows the 'Connect to iTunes" screen. What do I do?

    http://support.apple.com/kb/ht1808
    http://support.apple.com/kb/ts1567
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • I am trying to download photos off my IPhone as the "Cloud" tells me I have run out of storage space. I have connected my phone to IPhoto on my Mac but when I clik on Import nothing happens. What am I doing wrong?

    I am trying to download photos off my IPhone as the "Cloud" tells me I have run out of storage space. I have connected my phone to IPhoto on my Mac but when I clik on Import nothing happens. What am I doing wrong?

    Help for iCloud storage space >>   Managing your iCloud storage

Maybe you are looking for

  • Oracle 11g XE - Installation Error

    I am trying to install oracle xe 11g on my Win XP. The installation goes thru well. But when we start the database it starts too. However If I want to login it wont allow. I tried to use connect using sys account as sysdba I get the following message

  • PDF Version History Chart Listing Features Of Each Revision?

    Hello, Would anyone be aware of a chart style format for the history of the Portable Document Format which would list each PDF version along a timeline from its inception to the current version, with the newly added features of each revision outlined

  • Import from 11g database to 9i database

    how to import the dumpfile on oracle9i database from 11g database? how to export dumpfile on oracle9i database on windows from oracle10g database on linux?

  • Add Site System Roles (Management Point)

    To resolve an issue I was having with the management point role I have removed it. I left it for an hour and then restarted the server and the role had been removed. When I tried to re-add the role the option is greyed out. I believe this is due to t

  • My name in front of email address

    I set the primary email address in my wife's name. When she sends emails recipients see my name appearing in front of her email address i.e. FRED SMITH [email protected] I have asked for this to be removed but BT although stating they would; have not