How does inactive connection timeout attribute in weblogic works ?

Lets say If there is a connection leakage in my application running on weblogic server 10.3.4 and I want to regain the unclosed connection.
After going through some documentation I found out that setting inactive connection timeout to a positive value can fix this issue.
With setting the above attribute will the weblogic server close any connection object which is inactive for specified number of seconds or it acts on only
those connection objects which has lost all the references to it ?
demonstrating the query by an example ,
Lets say I have two connection objects con1 & con2 taken from a defined datasource in the weblogic.
the inactive timeout has been set to 10 seconds.
In a given thread lets say con1 does some db operation and then after being done, con2 is used for another db operation for greater than 10 seconds.
Will the object con1 be still available for db operation or we need to take a fresh connection from the pool ?
Thanks,
Tarique
Edited by: user779368 on 30-May-2011 06:29

Any connection that has been reserved by an application, and not used for longer than
the inactive timeout limit, will be taken back by the pool. All it's sub-objects will be closed etc.
In your case, you would lose con1 while con2 was being used. Ideally, you would get
any/either of those connections at the instant you really need it. Then, ideally use it
till you can close it. But if you are doing transactions or a job that need connections,
but can't avoid having them idle for X seconds, then set your inactive timeout larger than X.

Similar Messages

  • Sorry if tis is naive.  I have just bought my first iPad Retina Display.  I have WiFi at home but it has taken ages for me to connect as I needed all sorts of codes, passwords, detauils etc.   How does one connect to the web (Google) when one is out and a

    Sorry if this is a bit naive.  I have just bought my first iPad (Retina Display).  I have WiFi at home but it has taken me ages to get on-line as I needed all sorts of codes, passwords, numbers etc.
    How does one connect to the web (Google) when one is out and about?
    Thanks

    haha, You're welcome
    Maybe these links will be useful
    ipad manual/user guide
    http://manuals.info.apple.com/en_US/ipad_user_guide.pdf
    ipad support page
    http://www.apple.com/support/ipad/
    ipad assistant
    http://www.apple.com/support/ipad/assistant/

  • How does client connect to RAC

    I'm confused how client connect to RAC,
    1) According to this:
    http://www.datadirect.com/developer/odbc/odbc_oracle_rac/connecting/index.ssp
    "a ServiceName exists for the entire Oracle RAC system. When an application uses the Oracle RAC system's ServiceName, the Oracle RAC system appears to be a single Oracle instance to the application"
    so, seems client just make sure using service name instead of SID, it will be connect to RAC. the URL format is same as single non-RAC enviroment
    2) however,according to this:
    http://forums.sun.com/thread.jspa?threadID=5274308
    The URL need to be:
    jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)
    (ADDRESS=(PROTOCOL=TCP)(HOST=host1) (PORT=1521))
    (ADDRESS=(PROTOCOL=TCP)(HOST=host2) (PORT=1521))
    (CONNECT_DATA=(SERVICE_NAME=service)))
    this make RAC connect URL differenct from single non-RAC enviroment
    if so, with this format, how does SQL developer connection set up? since you can only specify one host in connection properties configuration?
    if so, adding a node will require all of client modify connect url?
    3) my understanding is client only need to specify VIP to any one of node, and speicify global service name (all node should share same service name), this will make RAC connection setup (similar to above (1)), but I'm not sure if my understanding correct or not in the following senario:
    -- a) what if client using public ip (not VIP) to one of node, but using global service name?
    -- b) what if client using VIP to one of node, but using it's SID instead of global service name?
    -- c) what if client using public ip (not VIP) to one of node, and using it's SID?
    please clarify how does client connect to RAC?
    Thank you!

    Very good question.
    You have asked in a certain way which tells me you have done lot of research.
    Any how:-
    Remember no matter how convoluting it looks it is the same.
    1 Tns Entry
    If you add a node then yes you have to publish it.
    There are other alternatives such as Oracle Names [old]
    internect directory , ldap and so on, beyond the scope of this discussion.
    1)
    TNSNAME Entry
    RAC.WORLD=
    DESCRIPTION=DESCRIPTION=(LOAD_BALANCE=on)
    (ADDRESS=(PROTOCOL=TCP)(HOST=host1) (PORT=1521))
    (ADDRESS=(PROTOCOL=TCP)(HOST=host2) (PORT=1521))
    (CONNECT_DATA=(SERVICE_NAME=service))
    Now see The same string from DESCRIPTION onwards goes to jdb thin client, it
    is the same thing...
    Also the host1 host2 are all VIPS'
    Also you need failover , load balance thingies in there
    -- a) what if client using public ip (not VIP) to one of node, but using global service name?
    non vip, Test it out, tns should hop over it .
    but TAF /FAN won't work.
    -- b) what if client using VIP to one of node, but using it's SID instead of global service name?
    You have to use SERVICENAME, if you are using SID then you are pretty
    much connecting to 1 node.
    -- c) what if client using public ip (not VIP) to one of node, and using it's SID?
    Then you are using 1 node rac.

  • How does BPEL connect to JMS??

    Hi All,
    I have a BPEL process which basically logs a message into a JMS Q..This process runs forever and when ever a new message is to be logged we return the same instance instead of a new instace..
    Now a couple of questions I have on this is -
    How does the connection to JMS work,is it like there is 1 conncetion for the entire BPEL process which is used every time I wanna add a new message,or is it like a new connection is created and destroyed with every invioke to the JMS..
    I need to make sure a instance of this process already exist so that I can return the same,is there any way my parent process can chek if there is an instance of the child process and if yes it will call that instance ,if No then it will create a new instance..
    Is there any way I can initiate a BPEL process through ant?
    It would be grt if any 1 can throw some light on these.. thnx..
    Regards,
    Akshatha

    Each JMS queue/topic has a single persistent image. Any reference to that queue through the relevant connection factory returns the reference to the same instance.
    There may be many different queues, but each is uniquely identified by its jndi name.
    Name each of your JMS queues differently for each separate endpoint you wish to consume messages from.
    You could use ant to initiate a process by invoking the web-service sending a soap message to the url for the processes web-service. I use soap-ui or the BPEL Console to manually do the initiation, and to determine what makes up the soap packet that is forwarded to the web service. I am not aware of any task that does this for you so you would have to construct a http type target yourself.

  • How does JavaFX connect to Web Servers?

    Recently,I was learing about JavaFX and confused with the way that
    1.how does JavaFX connection to Web Servers?
    2.Is there anything related to SOAP protocol?
    Please help me.Thanks.

    I don't understand very well...
    in the Web service style, is this Java code ? or JavaFX code
    How can I use JavaFX to call a web service (not REST, just pure web service)
    I did it by this article
    http://netbeans.dzone.com/news/javafx-client-invoking-metro-e
    But i have two problem.
    1. when deploy as applet, there is security issue, how can i resolve ?
    2. my application invoke easy web service is ok, but when invoke some complex type web service, there is error like this...
    Exception in thread "AWT-EventQueue-0" java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
    at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:653)
    at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:460)
    at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:286)
    at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:222)
    at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69)
    at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52)
    at java.lang.Class.initAnnotationsIfNecessary(Class.java:3072)
    at java.lang.Class.getAnnotation(Class.java:3029)
    at com.sun.xml.ws.model.RuntimeModeler$1.run(RuntimeModeler.java:183)
    at com.sun.xml.ws.model.RuntimeModeler$1.run(RuntimeModeler.java:182)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.xml.ws.model.RuntimeModeler.getPrivClassAnnotation(RuntimeModeler.java:181)
    at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:217)
    at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:683)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:340)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:323)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:305)
    at javax.xml.ws.Service.getPort(Service.java:92)
    at allan.EasyWSService.getEasyWSSoapPort(EasyWSService.java:56)
    at javacode.Test.go(Test.java:11)
    at conferenceclient.Main$1.lambda(Main.fx:36)
    at conferenceclient.Main$1.lambda(Main.fx:36)
    at conferenceclient.Main$1.invoke(Main.fx:31)
    at conferenceclient.Main$1.invoke(Main.fx:31)
    at conferenceclient.Main$1.invoke(Main.fx:31)
    at conferenceclient.Main$1.invoke(Main.fx:31)
    at javafx.ext.swing.SwingAbstractButton$1ActionListener$anon13.actionPerformed(SwingAbstractButton.fx:150)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.Component.processMouseEvent(Component.java:6134)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
    at java.awt.Component.processEvent(Component.java:5899)
    at java.awt.Container.processEvent(Container.java:2023)
    at java.awt.Component.dispatchEventImpl(Component.java:4501)
    at java.awt.Container.dispatchEventImpl(Container.java:2081)
    at java.awt.Component.dispatchEvent(Component.java:4331)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)
    at java.awt.Container.dispatchEventImpl(Container.java:2067)
    at java.awt.Window.dispatchEventImpl(Window.java:2458)
    at java.awt.Component.dispatchEvent(Component.java:4331)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

  • How does Imac connect to the internet?

    How does Imac connects to the internet?

    Through your ISP (internet service provider); once you set up an account with them, you can decide to connect via ethernet cable to their modem, or, if you have a router (which is connected to their modem, you can connect wirelessly.
    Is that what you were wondering about or did I misunderstand your question?

  • How does iPad Mini with Cellular Sprint Captel work in hard of hearing person for captioned calls and music?, How does iPad Mini with Cellular Sprint Captel work in hard of hearing person for captioned calls and music?

    How does iPad Mini with Cellular Sprint Captel work in hard of hearing person for captioned calls and music?, How does iPad Mini with Cellular Sprint Captel work in hard of hearing person for captioned calls and music?

    How does iPad Mini with Cellular Sprint Captel work in hard of hearing person for captioned calls and music?, How does iPad Mini with Cellular Sprint Captel work in hard of hearing person for captioned calls and music?

  • How does the generate ddl of the ODI works ?

    how does the generate ddl of the ODI works and is it used to generate ddl of any technology ?
    what is the use of interface in and interface out ?

    The best way to solve this is to look at the module functions that clears the buffers and use it.
    Closed.

  • How does the ituns app on my ipad2 work?

    How does the itunes app on my 1pad2 work?

    The iTunes app on your iPad is just a portal to the iTunes Store.  To play music or videos, use the Music App and the Videos App.
    Here's a link to iPad iOS5 User Guide

  • CSS: How does DNS Scripted Keepalive (ap-kal-dns) work?

    Hello everyone,
    I have a question about how does DNS Scripted Keepalive (ap-kal-dns) work on CSS 11503.
    According to the "Using the CSS Scripting Language",
    http://www.cisco.com/en/US/partner/docs/app_ntwk_services/data_center_app_services/css11500series/v7.50/configuration/administration/guide/Scripts.html
    it says
    Since we just want to see if the DNS server is alive we will send a simple DNS Query.  This query is hard coded in hexadecimal and sent raw to the DNS server.
    and
    Receive some unexplained response. We don't care what it is because an unstable DNS server or a non-existent one would probably not send ! us any data back at all.
    but it also says
    Failure Upon: 1. Not resolving the host's IP from the domain name
    And according to the "How to Configure the CSS to Load Balance DNS Servers and Use the DNS Scripted Keepalives",
    http://www.cisco.com/en/US/partner/products/hw/contnetw/ps789/products_configuration_example09186a00801d015a.shtml
    it says
    The script is hard-coded to resolve www.cisco.com.  It does not matter if the DNS server can resolve this address or not, as long as a DNS response comes back that the service is alive. This keepalive is only testing if a DNS server can respond to a query, not if it can resolve a specific name. The script queries from the CSS to DNS internal servers keep track of the availability of the DNS servers.
    but it also says
    Access to Internet Domain Name System Root Servers is required for successful implementation of DNS scripted keepalives.
    So I am confused whether DNS server has to resolve the host's IP address correctly for DNS query received from CSS or just needs to reply any response but not need to resolve it.
    I would like to recap about my question.
    Q1: Does DNS Scripted Keepalive (ap-kal-dns) send DNS query with cisco.com as DNS name by default?
    Q2: Does DNS server has to resolve IP address of  cisco.com or just need to respond for DNS query with any response but not need to resolve IP address of cisco.com?
    I understand I should get capture data and see how DNS scripted keepalive works, but I can not prepare lab environment to do it at the present.
    Your information would be appreciated.
    Best regards,
    Shinichi

    yes the query is for www.cisco.com and the script expect a reponse that contains the word cisco.
    Gilles.

  • How does the fade in or fade out works on a apple loop

    how does the fade in or fade out works on a apple loop

    What does the manual say about it?
    http://help.apple.com/logicpro/mac/10/#lgcpf7c0ee6c

  • How does WebMail connect to the Mail Store

    Some WebMail products have HTTP connect directly to the Mail Store Database. Other products have HTTP connect to IMAP and let IMAP connect to the Mail Store database.
    How does iMS5 do it?

    Hi,
    iMS use separated daemon(mshttpd).
    It is composited httpd daemon + message access daemon.
    It is not normal http daemon.(mshttpd can use only
    iPlanet Messaging Server)
    When user connect the server using iMS 5 Webmail
    (It is named Messenger Express), the mshttpd recevied
    that requst and communicate with stord(mail box daemon)
    and fetch the mail, and make new html page.
    user -> mshttpd -> stored -> server mailbox
    Other Webmail use IMAP or POP Protocal(standard protocal) for communicate
    with messaging server, but mshttpd use itself protocal.
    (It is not standard)
    But, you can use imap of pop protocal for making new
    webmail server.
    Regards

  • How does application connect/commincate to Message Broker + JMS

    With reference to JMS,
    I am wondering how does my application (consumer or producer) communicate to Message Broker(in my case it is ActiveMQ).
    if the consumer is at HostA, producer is at HostB and ActiveMQ=message broker is at HostC
    ???

    Each JMS queue/topic has a single persistent image. Any reference to that queue through the relevant connection factory returns the reference to the same instance.
    There may be many different queues, but each is uniquely identified by its jndi name.
    Name each of your JMS queues differently for each separate endpoint you wish to consume messages from.
    You could use ant to initiate a process by invoking the web-service sending a soap message to the url for the processes web-service. I use soap-ui or the BPEL Console to manually do the initiation, and to determine what makes up the soap packet that is forwarded to the web service. I am not aware of any task that does this for you so you would have to construct a http type target yourself.

  • Doing a connection timeout versus "Allow use of network?" warning

    I'm using threading in a J2ME app to allow a timeout on an attempt to connect to server. However, I'm having an issue with the usual confirmation the user gets on first connection attempt: you know, the message that say something like "This application would like to send HTTP traffic. Allow this?" The problem is that obviously I have no idea of how long the user takes to read thsi message before hitting "ok", so my connection timeout could timeout before the user has even hit ok and any connection attempt has been made!
    Is there any callback available so that I know when the user has actually hit 'ok'?
    My current workaround is to make a dummy first connection to a bad address, e.g. "http://x", just to get the user to hit 'ok' and get that out of the way before making my proper connection attempt.
    Is there a better way though? This technique makes an attempted DNS lookup, which takes a little time....
    thanks.

    I'm using threading in a J2ME app to allow a timeout
    on an attempt to connect to server. However, I'm
    having an issue with the usual confirmation the user
    gets on first connection attempt: you know, the
    message that say something like "This application
    would like to send HTTP traffic. Allow this?" The
    problem is that obviously I have no idea of how long
    the user takes to read thsi message before hitting
    "ok", so my connection timeout could timeout before
    the user has even hit ok and any connection attempt
    has been made!
    Is there any callback available so that I know when
    the user has actually hit 'ok'?
    My current workaround is to make a dummy first
    connection to a bad address, e.g. "http://x", just to
    get the user to hit 'ok' and get that out of the way
    before making my proper connection attempt.
    Is there a better way though? This technique makes an
    attempted DNS lookup, which takes a little time....
    thanks.Hi,
    Are you sure that the connection actually times out if you dont do any thing with that confirmation screen. Also there is already a connection timed out type of implementation in the io package, please check the api for details.
    Well I certainly don't know if there is any such callback is possible (I fear it is impossible), but I hope I can suggest you an workaround if you do want to proceed further with your customized timeout. The connection to the server actually starts after the user presses Yes, until that the calling thread waits for the user action. If you can somehow trap that your request is being sent and after that you start your counter or whatever it is for your timeout, it might work.
    However whta I have suggested you above is just an idea, I don't know it might work or not.
    Regds,
    SD

  • How does sharepoint designer create item in list work ?.

    I'm using sharepoint 365, and the free sharepoint designer.
    I'm trying to make something so that if List A gets an update other lists get new records to.
    There is a sharepoint-designer action that lets one create a an item in another list.
    And i have tested it a lot but haven't got any of my tests to work, been trying for a week now.
    I'm not sure as how it is exactly named in English, since our sharepoint is al dutch  :(
    I think in English  it looks like:
    Create item in Yourlistname  (save result in variable
    Succes)
    When clicking on yourlistname, you need the all valeus of all required items in the list.
    Now asume such worklow rule is made to start after an Entry is made in List A, And we want to update List B
    Here i start i think my problems
    So you select List B as your listname, but then...
    How does one refer, to a required link title from List A?.  use current list item ?
    How to link to a 4th table entry of List C as value to make in List B
    If List A has a value that is clickable-link how to link that to Value B
    If someone knows of problems with this, permissions things, or knows a youtube explaining it, or can explain it himself. It would be of great help to me.
    Upon futher investigation, i got into problems where the workflow has to fill in an item
    Into a column type that is a lookup table (another list), if work with string columns it works, but I need the current "name" as a lookup link connected into List B

    Hi PGT,
    I have seen a similar thread from you. The solution is that you need to work with Item ID's when you define the workflow to work with Lookup columns links. only at creation time you need to enter what field you like to include in your list. Based upon ID
    it will then show the values. The thread is:
    https://social.msdn.microsoft.com/Forums/office/en-US/e342e18a-3f68-4b49-9d80-41f11b76cb4e/how-does-sharepoint-designer-create-list-item-work-?forum=sharepointcustomization
    I will mark this reply as answer to close this case. If you have any question about this issue, please feel free to reply.
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

Maybe you are looking for

  • Very high memory usage..possible memory leak?  Solaris 10 8/07 x64

    Hi, I noticed yesterday that my machine was becoming increasingly slow, where once it was pretty snappy. It's a Compaq SR5250NX with 1GB of RAM. Upon checking vmstat, I noticed that the "Free" column was ~191MB. Now, the only applications I had open

  • Video purchased from iTunes Music Store not compatible with my video iPod?

    I purchased the White Stripes music video for "The Hardest Button to Button" from iTunes, but when I plug in my video iPod, it says it can't copy it over because it "can't be played" on my iPod. I don't understand what to do! All the other videos I'v

  • Hypothetical Document construction using JS & XML

    I work for an ad agency that produces large technical brochures for automotive clients and we're looking for ways to automate a lot of the more data-intensive areas of content population and build. What I have is a basic idea that the client could bu

  • File size mystery

    I have a video I want to put into an iPad app. The footage and sequence are 1920 x 1080 pixels (was shot on a Canon Vixia if that matters). File size is a big issue because the Digital Publishing Suite cannot handle big files. I have tried making the

  • Where does iCloud look for photos on my android phone?

    I can't seem to find a good or direct answer to this question.  Every time I plug in my android phone with USB storage enabled, iCloud for Preview opens with an additional Import window.  It can't seem to find my pictures on my phone.  So what folder