Inactivity timeout of connection pool - Sun ONE 7 and Oracle 8i

Friends,
I have a JDBC connection configured, looked up by JNDI working fine with servlets.
The question is: I have a firewall between my appserver and the database server that closes all idle connections longer than 10 minutes.
The appserver assumes the connection is still alive, and when there is made an attempt, it keeps trying for a long time.
Is there any way I can keep that connection alive?
Or, any way to 'tell' the appserver to reestablish the connection?
Thanks in advance

Use Connection Validation

Similar Messages

  • Using OCI8 driver with Sun ONE AS7 and Oracle 9

    Hi
    I am writing a bean that needs to access an Oracle Database.
    I have defined in AS7 a connection pool, that looks like:
    <jdbc-connection-pool steady-pool-size="8" max-pool-size="32" max-wait-time-
    in-millis="60000" pool-resize-quantity="2" idle-timeout-in-seconds="300" is-isol
    ation-level-guaranteed="false" is-connection-validation-required="false" connect
    ion-validation-method="auto-commit" fail-all-connections="false" datasource-clas
    sname="oracle.jdbc.driver.OracleDriver" name="Oracle_EUNDEV">
    <property value="user" name="user"/>
    <property value="passwd" name="password"/>
    <property value="jdbc:oracle:oci8:@eundev:EUNDEV" name="URL"/>
    </jdbc-connection-pool>
    My code does a JNDI lookup DataSource, which succeeds.
    However, the getConnection always fails, and throws the following exception:
    [02/May/2003:16:28:06] WARNING ( 794): CORE3283: stderr: java.lang.NoSuchMethodException: setpassword
    [02/May/2003:16:28:06] WARNING ( 794): CORE3283: stderr: at com.sun.enterprise.util.Utility.invokeSetMethodCaseInsensitive(Utility.java:373)
    [02/May/2003:16:28:06] WARNING ( 794): CORE3283: stderr: at com.sun.enterprise.repository.JdbcConnectionPool.createDataSource(JdbcConnectionPool.java:238)
    [02/May/2003:16:28:06] WARNING ( 794): CORE3283: stderr: at com.sun.enterprise.resource.JdbcUrlAllocator.createResource(JdbcUrlAllocator.java:80)
    [02/May/2003:16:28:06] WARNING ( 794): CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyResources(IASNonSharedResourcePool.java:856)
    I used dbping tool from iplanet and could define a new connection and connect successfully,
    But trying to use the existing connection always fail with the same 'MissingMethod' exception.
    Can someone help?
    Thanks a lot
    Jean-Noel Colin

    Here is your problem:
    jdbc:oracle:oci8:@eundev:EUNDEV
    the last part is wrong. Driver will see the EUNDEV as password. After @ , just specify the tnsName that you have, no " : "
    you do have a property called "password" already.
    It should be something like this:
    jdbc:oracle:oci8@eundev

  • Query about multiple connection pools under one database

    Hi,
    I have s query about connection pool, now we have a requirement,
    we have two schemas in one db, some data store in one schema, some in another schema,
    all tables are the same, but data is different, we want to retrive all data under two schemas,
    so we need two connection pools under one database,
    I have set two system DSN, and each connection pool was mapping to one DSN,
    but after I importing tables into RPD, when I view data, there is a dialog let me select connection pool. so If this, when we drag columns in answer, it will definitely get wrong.
    so how to realize this function about multiple connection pools under one database and we can get data normally.

    Hi,
    Try this step
    1)Better to create two different DSN for the same database with different user id and password
    2)now create multiple connection pool in the same database in u r RPD physical layer .
    also refer this link : for imporving performance
    http://obiee101.blogspot.com/2009/01/obiee-multiple-connection-pools.html
    http://gerardnico.com/wiki/dat/obiee/connection_pool
    Thanks
    Deva

  • Is it possibel to create one connection [pool for one report only

    Hi is it possibe to create one connection pool for one report only. Others report are running from the another connection pool under same DB.
    Thanks,

    Hi,
    Why do u want seperate connectionpool for that single report?
    I dont think its possible.Direct database request will be good solution for this.Try importing those columns which are used to build that report into physical layer and create new subject area.Not sure weather its right way to do.
    Regards,
    Srikanth

  • Sun One Studio 5 - Oracle Pool trouble

    I've created a connection pool and loaded the oracle 8i drivers. All the drivers are correctly present in the classpath but I still get a server-side error when I execute in the IDE:
    java.lang.ClassNotFoundException: oracle.jdbc.pool.OracleDataSource
    It has to be a classpath problem..I've checked classes12.zip and classes111.zip are present in the classpath. Any clues?

    In the Sun One the is a ServerAdministrative menu by clicking on it u get a window to look that deployed application... check out the server cluster.. load balancing and stuffs like that in the same window there is a Database icon where u have to set the driver path and give the drive name.. with the max connection min connection that would solve your problem

  • Timeout warnings in the Sun ONE MQ log

    I am running Sun ONE MQ 3.0.1 Enterprise Edition
    with Windows 2000 Advanced Server. In the log excerpt below, there are warnings referring to 'Timeout' in reaching states. Does anyone know
    what causes this? These timeout warnings are throughout the log.
    [14/Sep/2003:05:56:33 EDT] [B1066]: Closing: [email protected]:-1->httpsjms:-1888930781. Count=11
    [14/Sep/2003:05:56:40 EDT] [B1066]: Closing: [email protected]:0->httpsjms:0. Count=12
    [14/Sep/2003:05:56:40 EDT] WARNING [B2051]: Removing IMQConn[AUTHENTICATION REQUESTED,[email protected]:-1,null]:state[AUTHENTICATION REQUESTED]. Timeout in reaching state AUTHENTICATION RESPONSED within 180 seconds.
    [14/Sep/2003:05:56:50 EDT] [B1065]: Accepting: [email protected]:-1->httpsjms:-1888930779. Count=11
    [14/Sep/2003:05:57:00 EDT] [B1065]: Accepting: [email protected]:-1->httpsjms:-1888930778. Count=10
    [14/Sep/2003:05:57:00 EDT] [B1066]: Closing: [email protected]:-1->httpsjms:-1888930778. Count=9
    [14/Sep/2003:05:57:02 EDT] [B1065]: Accepting: [email protected]:0->httpsjms:0. Count=11
    [14/Sep/2003:05:57:02 EDT] [B1066]: Closing: [email protected]:0->httpsjms:0. Count=11
    [14/Sep/2003:05:57:02 EDT] WARNING [B2051]: Removing IMQConn[CONNECTED,???@null:-1,null]:state[CONNECTED]. Timeout in reaching state INITIALIZED within 180 seconds.
    [14/Sep/2003:05:57:07 EDT] [B1066]: Closing: [email protected]:0->httpsjms:0. Count=12
    [14/Sep/2003:05:57:07 EDT] WARNING [B2051]: Removing IMQConn[CONNECTED,???@null:-1,null]:state[CONNECTED]. Timeout in reaching state INITIALIZED within 180 seconds.

    The broker generates these warning when it expects certain
    protocol from the client but does not receive it in the 180 second
    reply window. When this occurs the connection to the client is
    closed by the broker.
    For example when a client makes a connection to the broker
    the broker sends an AUTHENTICATE_REQUEST to the client.
    The client should reply with an AUTHENTICATE response.
    If the broker does not receive that response in 180 seconds
    it generates the warning you are seeing and closes the connection for the client.
    What can cause a client not to respond? If it is on a very heavly
    loaded system it may not repond in time - but 180 seonds is a
    long time. But given you are using the HTTPS service it is
    possible the https servlet is the slow point given it may be
    processing many clients. The broker could potentially be the
    problem if it is heavly loaded or the host it is running on is
    heavily loaded. You should rule all these out first.
    To debug this you might try increasing the timeout to see
    if that helps the situation:
    # timeout in seconds in waiting for client hello and response to
    # authentication request on a connection
    imq.authentication.client.response.timeout=180
    Chris
    http://wwws.sun.com/software/products/message_queue/

  • Difference in use of connection pools from one server to another

    Hi all
    we are running wl5.1 with sp9 against SQLServer 2000
    On our performance test server (2 CPU) which has weblogic & sqlserver runnig
    on it we run out out of connection pools when running a specific method,
    having looked at it we noticed that it contained nested sql, so that each
    client would actually hang onto multiple connections until finished. The
    total number of connections used seemed approximately the same as the number
    of SQL statements.
    However we then ran the weblogic server on a different machine against the
    same database, so it was now running over a network and everything worked ok
    and the total number of client connections was just 1.
    Can anyone shed any light onto this, I have a few ideas but nothing to back
    them up as follows:
    Multi CPU versus single CPU
    Local connection rather than network connection between WLServer and
    DBServer
    WL Configuration
    DBServer configuration
    Is nested SQL valid ?
    Any help much appreciated Paul Taylor
    (An example of what I mean by nested sql is shown below, method1() creates
    instances of class2 and calls c2.method which contains sql before releasing
    its connection.)
    class c1
    public void method1()
    try
    rs=executesql(sqlString)
    while rs.next()
    new c2();
    c2.method2()
    finally
    closeConnection()
    class c2
    public void method2()
    try
    rs=executesql(sqlString)
    finally
    closeConnection()

    because when you are dealing with a remote server, your calls will be
    serialized over one socket. and the connection is assigned to that socket
    probably...or something like that...or not...shouldn't be important :)
    Filip
    ~
    Namaste - I bow to the divine in you
    ~
    Filip Hanik
    Software Architect
    [email protected]
    www.filip.net
    "Paul taylor" <[email protected]> wrote in message
    news:[email protected]...
    The code has now been changed, but the real point was why are two server
    dealing with the same code in a different way
    "Filip Hanik" <[email protected]> wrote in message
    news:[email protected]...
    Any help much appreciated Paul Taylor
    (An example of what I mean by nested sql is shown below, method1()creates
    instances of class2 and calls c2.method which contains sql beforereleasing
    its connection.)well this is obviously not a good way of doing it. you know that you are
    obtaining multiple connections so why not code your software in a
    smarter
    way.
    pass the connection object into c1 and c2 that way they both use thesame
    connection. Or release in between.
    Filip
    ~
    Namaste - I bow to the divine in you
    ~
    Filip Hanik
    Software Architect
    [email protected]
    www.filip.net
    <l> wrote in message news:[email protected]...
    Hi all
    we are running wl5.1 with sp9 against SQLServer 2000
    On our performance test server (2 CPU) which has weblogic & sqlserverrunnig
    on it we run out out of connection pools when running a specific
    method,
    having looked at it we noticed that it contained nested sql, so thateach
    client would actually hang onto multiple connections until finished.
    The
    total number of connections used seemed approximately the same as thenumber
    of SQL statements.
    However we then ran the weblogic server on a different machine against
    the
    same database, so it was now running over a network and everythingworked
    ok
    and the total number of client connections was just 1.
    Can anyone shed any light onto this, I have a few ideas but nothing
    to
    back
    them up as follows:
    Multi CPU versus single CPU
    Local connection rather than network connection between WLServer and
    DBServer
    WL Configuration
    DBServer configuration
    Is nested SQL valid ?
    Any help much appreciated Paul Taylor
    (An example of what I mean by nested sql is shown below, method1()
    creates
    instances of class2 and calls c2.method which contains sql beforereleasing
    its connection.)
    class c1
    public void method1()
    try
    rs=executesql(sqlString)
    while rs.next()
    new c2();
    c2.method2()
    finally
    closeConnection()
    class c2
    public void method2()
    try
    rs=executesql(sqlString)
    finally
    closeConnection()

  • Two Connection Pools In One Database With Two Phisical Schema

    I have a database with 2 physical schemas. Each physical schema has a different username and password. So i must create a second connection pool. But i have the problem that physical schemas don't understand which connection pool to use. How can i coincide each physical schema to its connection pool automatically.
    Regards

    You need two Physical databases each with its own Connection Pool, within that database will be a single Physical Schema.
    Or you could have a single Database/Connection Pool if it has read access to both schemas.

  • Sun One App Server - Oracle Database 10g

    Hi to all:
    I�m developing a web application that uses an Oracle 10g database and a I want to use Sun One Application Server 7, the problem that I have is when I have been deployed the war file into the server and acces to my application, specifically when I try to acces a JSP that extracts data from database, I don't see anything of the information that I need, that's not the problem, the problem is that in the server console appear a message indicating that an SQLException occour and the message is "No suitable driver".
    I test my methods before deploy the war file and the connection and data extraction are correct, I don't know if the version of the JDBC driver for the connection to Oracle Database 10g is incompatible or if it's impossible to use Sun One App Server 7 with a connection with Oracle 10g.
    I tried with other web servers like Tomcat 5.0 and Sun Application Server 9 and the connection it's perfect.
    Could somebody give some ideas or orientation please?????, im student, all help will be appreciated, thanks!!!

    Rahul,
    Yes there is an Enterprise Edition in the works. It will address the load balancing and fail over needs for deployments. More details are available here: http://wwws.sun.com/software/products/appsrvr_ee/home_appsrvr_ee.html
    We will also be releasing more information in the October and November.
    Cheers,
    Stefan Bolka
    Product Line Manager
    Sun ONE Application Server Enterprise Edition

  • Trouble with Sun One 7 and JAAS

    Guys,
    I've been having a trouble with JAAS and Sun One 7:
    - An user1 logins at application and then, open an authorized page;
    - After x minutes (expressed in session-config web.xml tag), login page is automatically loaded;
    - At this time, an user2 (with another profile) logins in the same app, after expired session from user1.
    So, what's happening? User2 can access the same page User1 had accessed, but User2 is more restrictive than User1, so, he couldn't access the resource.
    Please, help me, I don't know what to do.
    Thank u,
    Evandro.

    Hi
    If you want to send messages around an application using the embedded S1MQ message broker, the trick is that -- in general -- you must create the message destinations on the broker as a separate step from configuring the appserver. Then you tell the appserver how to bind a JNDI name to the destination on the broker. To create the destination on the broker, you can use the imqadmin tool (which is part of the message broker, and not the appserver). You can create both queues and topics this way. Let's suppose you created a queue called `fred'. Then you need to bind a JNDI name to this queue on the appserver.:
    asadmin create-jms-resource user admin password somepassword resourcetype javax.jms.Queue property imqDestinationName=fred jms/fred
    Then in the application server code you can get to the message queue by looking up `jms/fred' (strictly speaking, you should look up a java:comp/env name which you bind to jms/fred in your deployment descriptor, but that's another matter).
    You'll need to do the same thing for the queue connection factory: create it using imqadmin, then bind it using asadmin.
    You can do the asadmin stuff instead using the web-based admin console, but you can't (so far as I know) create the actual destinations on the broker this way.
    I hope this helps. If it doesn't, copies of the relevant error message -- in full -- would help me.
    Best wishes
    Kevin

  • I am beginner to sun one studio and sun one application server

    How can i access a cmp from a jsp page.
    in sun one application server.
    thanx in advance

    where do you get the weblogic plugin from ?
    i am intrested in doing the same thing
    thanx
    prem
    "Ivan" <[email protected]> wrote in message
    news:[email protected]..
    >
    Dear all,
    My boss require me to use Sun One Studio 4 update 1 to do the development,but
    I find it's a nightmare to deploy the EJB/ application to the WebLogic6.1.
    >
    I've already installed the weblogic plug-in in the Sun One Studio.
    During deploying I could not find any setting that ask me for theweblogic-ejb-jar.xml.
    So I think the deployment will fail.
    Is there any others tutorial or e-book that can help me to familiar withthe deployment
    process?
    Many Thanks for all of you.
    Ivan

  • Build a EJB/ Application with Sun One Studio and deploy to Weblogic

    Dear all,
    My boss require me to use Sun One Studio 4 update 1 to do the development, but
    I find it's a nightmare to deploy the EJB/ application to the WebLogic 6.1.
    I've already installed the weblogic plug-in in the Sun One Studio.
    During deploying I could not find any setting that ask me for the weblogic-ejb-jar.xml.
    So I think the deployment will fail.
    Is there any others tutorial or e-book that can help me to familiar with the deployment
    process?
    Many Thanks for all of you.
    Ivan

    where do you get the weblogic plugin from ?
    i am intrested in doing the same thing
    thanx
    prem
    "Ivan" <[email protected]> wrote in message
    news:[email protected]..
    >
    Dear all,
    My boss require me to use Sun One Studio 4 update 1 to do the development,but
    I find it's a nightmare to deploy the EJB/ application to the WebLogic6.1.
    >
    I've already installed the weblogic plug-in in the Sun One Studio.
    During deploying I could not find any setting that ask me for theweblogic-ejb-jar.xml.
    So I think the deployment will fail.
    Is there any others tutorial or e-book that can help me to familiar withthe deployment
    process?
    Many Thanks for all of you.
    Ivan

  • Sun One Webserver and JSP 2.0

    I have a customer running Sun One Webserver v 6.1 (newest) and I have no experience using that server. We are writing some JSP pages, and I am hoping to use JSP 2.0. It appears from what I have read that only JSP 1.2 is supported. Is that correct, or is there any way to use JSP 2 with the Sun One server.
    Any help greatly appreciated, I'm a total newbie to this server.
    Cheers

    Well, I don't have any problem running jsp pages on this server, just wanted to know if the server supports jsp 2.0 or if there is a way to add that support.
    What problems are you having getting your jsp files to run. I just moved some over from a tomcat install and they work fine. Had to modify the classpath in server.xml, etc, to pick up some jars for jdbc, but basically no problem with jsp.
    I'm kind of surprised that if this is the newest version of the Sun Web Server that it does not support jsp 2.0 out of the box. It's not exactly a new spec.

  • Integrate Sun ONE Messaging and Sun ONE Calendar server with Portal 6.0

    We need to integrate (implement a Single Sign On solution) Sun ONE/iPlanet Messaging and Calendar servers with Portal 6.0. The Msg and Cal. servers do not use Portal Profile server as their DS and have a different DS.This directory server is the external DS for Portal. After users login to Portal, they should be able to access Msg and Cal. servers without login to them again.
    1. How do we do this without writing a java code/servlet ?
    2. Is there any way that we could configure DSAME to create the URL,add userID and password to it and forward that URL to above servers ?

    Hi,
    The SunOne communication providers for version 6.0 will be released soon.
    (you can get beta versions from early access program)
    Like in the portal version 3.0 these channels
    are enabling SSO for messaging and calendar servers.
    (I tested them with iMSG5.2 and Calendar5.1.1)
    Cheers,
    Alex :-)

  • Sun One AS7 and Norton Internet Security (Personal Firewall)

    Hello,
    I have installed:
    - XP Home Edition Version 2002 SP1
    - Norton Internet Security Version 6.0.4.34 (Personal Firewall)
    - Sun One Application Server 7, Platform Edition
    When Personal Firewall is running I get:
    Could not start the instance: domain1:admin-server
    server failed to start: abnormal subprocess termination
    Could not start the instance: domain1:server1
    server failed to start: abnormal subprocess termination
    Could not start one or more instances in the domain : domain1
    Could not start one or more domains
    Press any key to continue . . .
    I've read the release notes:
    - changed port numbers
    - modified the firewall policy
    and still experience the same problem.
    When Personal Firewall is not running it works.
    I guess I can just turn off my firewall when I evaluate this product.
    I was wondering if anyone who has experienced and solved this problem
    could lend a hand.
    Thank you!

    Sorry! Does it work if you disable the Smart Firewall in Norton Internet Security? Did you check uninstalling Norton?
    Thanks!
    Harry

Maybe you are looking for

  • How do I set iCal default alterts

    Is it possible to set alerts so they default to none in iCal?

  • Running from a flash drive.

    Some of my programs run from a flash drive.  The drive has Java on it in case the user does not have Java on their machine.  In order to run java 7 one must have OS X 10.7.3 or greater.  If a user has 10.7.2 on it his machine and the flash drive has

  • How to track web request made to sharepoint site from remote computer

    I am trying to connect IBM datastage application to a sharepoint list using soap web services. I am using GetList and Getlistitems to get the data from sharepoint list. While doing this i can sucessfully connect using Getlist function , but getlistit

  • ORACLE error 1031 while importing java classes

    Hello Guys, We are seeing following errors while importing SYS/SYSTEM objects. IMP-00017: following statement failed with ORACLE error 1031: IMP-00003: ORACLE error 1031 encountered IMP-00090: Unexpected DbmsJava error -1031 at step 6666 while creati

  • Module pool : Radio Buttons

    Hi experts, Need Small help on radio buttons in module pool.. my requirement is i have r1 and r2 radiobuttons. If i select r1. field1 and field2 has display and field3 and field 4 has to be not to display. and viceversa .. how to do pls send some cod