How to figure out whether context is still connected

hi all,
i wrote a little java ldap util which is using jndi.
this util overs the possibility to keep the connection to the ldapServer once it has been established. this feature is using the jndi feature overing the keep connection setting.
now, when the time has come to reuse the context i want to figure out whether it is still connected to the ldapServer or not. e.g. if the server has reset the connection due to a timeout, i want to be able to get to know that.
unfortunatelly i wasn't able to figure out how to do this yet.
i implemented a workAround which does a simple ctx.lookup("") at the context which is expected to still be connected.
but i don't like this solution cause it causes additional network traffic which is in fact not needed.
so my question is how do i figure out whether the connection opend by the context is still open before im going to use that context again?
thx a lot
dialsc

Why do you want to know? Just use the context. If the context is still connected you save a handshake; if it isn't, it forms a new connection. What other possibility is there?

Similar Messages

  • How to figure out ORA_12203:TNS unable to connect to destination?

    OS: WSK
    I have installed oracle817 and form6i in different directory in a machine
    and defined two oracle home for them. I can access sqlplus through
    OEM of oracle817, but I can not do the same thing through form6i,
    the error showed me: ORA_12203:TNS unable to connect to destination.
    But after installation, I have copied tnsname.ora of oracle817(oracle_home/network/admin) to tnsname.ora of form6i
    (oracle_home_net80/admin). The same error slao showed me when I open
    From Builder, droped the menu FILE --> Connect: system/manager/oradb,
    TNS unable to connect to destination.
    How to figure out this promble? I think maybe listener configuration
    have some promble, but I am not sure how to do that?
    COuld some give me some ideas? Thanks

    Hi shay,
    I have not fixed my problem. I defined two homes respectively:
    Oracle817: Home_name: oraHome81
    Path: D:\oracle
    Form6i: home_name: orahome6i
    path: d:\Form6i
    But I'm wondering when I opened the ORACLE folder under
    HKEY_LOCAL_MACHINE, All_Homes just show one home name:
    oraHome81 or orahome6i, deponding on which I imported later.
    So I like to ask do I need make the export/import
    registery of ORACLE floder under HKEY_LOCAL_MACHINE
    when you install oralce and form6i together?
    By the way, let me attached the TNSNAMES.ora file which
    configured by Oracle during installation:
    # TNSNAMES.ORA Network Configuration File: D:\oracle817\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORADB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = name3)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ORADB)
    INST1_HTTP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = name3)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = ORADB)
    (PRESENTATION = http://admin)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)

  • How to find out whether a particular changed by some user

    Hi gurus,
                I am just trying to figure it out how to find out whether a particular user has changed a particular table or not. In other words table changes history. If any of you know about it please let me know.
    Thankyou
    Jason

    Jason,
      Ajay mentioned changes to Table not for Data. If you are looking for Changes to Table Data... you need to check System Log SM21. check for that perticular period.
    Nagesh Ganisetti.
    Assign points if it helps.

  • How to figure out the properties of field/object ??

    Hello
    I have field (say, its name is field_1) in my_form and  i am coloring yellow by using below code of initialization event:
    this.ui.oneOfChild.border.fill.color.value = "255,255,191"; (Actually, just for differentiating / tracing back purpose here  am assigning this yellow color to this field, you can suggest me any thing else that marks / tags this field (i can not populate a value, bcz its visible to user), so that in the  CHANGE event of this field, again i want to check/get/know that whether this field is tagged/marked or not)
    fine. But, because of some/below reason, i need to find out its color by using JavaScript, pls. let me know how to figure out its color is as yellow by using JavaScrit?
    Reason: If field_1's color is YELLOW (or you suggested any tag/mark as said in the above in red text), then i have to make HIDE the field_2
    Field_0's position is extreme left, Field_1's  position is middle and the Field_2's position is exterme right of the page.
    I guess, i hv only one option of finding out color, hence am looking forward for JavaScript to find out the color of a field in question
    (OR)
    Also, pls. let me know the JavaScript that How can i make HIDE a check box for that COMLETE session (i mean, starting from launching the form in the browser until he closes the window/browser/tab/form), i guess, this idea also workes for my requirement, ( i want to put this code in the docReady event) .....no matter/what ever code is existing there in any event of that field level
    Thank you

    Hi,
    If you want to give a visual indicator to the user, then colouring the field yellow is probably a good approach.
    However if you just want to keep track on the field, then you could test the field's value (.rawValue) and take appropriate action. In addition you can also attach a variable to an object using the <desc> element. It is a bit involved but you can find an example here: http://assure.ly/x1QObn.
    Hope that helps,
    Niall

  • How to find out whether the system user is a vendor or a purchaser

    Hi,
    I am working in SRM 5.0. I have a requirement that some fields of Bid invitation can be visible by purchaser but not to bidder.
    How to find out whether the system user (user id though which system logged in) is a vendor or a purchaser. Kindly help me to resolve this issue.
    Sushmita Singh

    check his role.
    is surrogate bidding available for that bidder.
    via surrogate bid , purchaser can submit bid on behalf of the bidder.
    masa is correct
    pposa_bbp - search via user . so he might be  a purchaser.
    maintain business partner -supply your bidder bp number -edit
    go to bidder data .Under bidder data you must flag "PERMIT PROXY BIDDING"
    regards
    Muthu
    br
    muthu

  • How to figure out server has capacity to install OEM 10 Grid control

    How to figure out server has capacity to install OEM 10 Grid control
    Hi Experts
    I have HP_UX 11.11 server which has 1 instance on it with version 10.2.0.1.0.
    Now I would like to install Grid control with a separate instance for repository.
    I was told I would need 2 GB Ram for OMS and 2 GB Ram for instance.
    Now how do I figure out if my server has enough resources from Ram perspective
    Following is output from top and vmstat
    1. for top it says 3045556K free , now is this free memory virtual(real +swap) or real?
    2. as per top I only have free 3GB(3045556K) , so does that mean I can not have OMS & repository on
    this server ?
    3. In vmstat I see free memory as 762335
    in man it says free - Size of the free list
    what does this mean, how much is my free meemory ?
    4. For OMS I read - It is a J2EE application that is installed and deployed using Oracle
    Application Server
    Now when I look at top I see these processes
    0 ? 26521 oasadm 152 20 1517M 1141M run 3:49 2.53 2.52 java
    0 ? 3377 oasadm 152 20 1657M 1276M run 54:49 1.88 1.88 java
    Does oasadm user means Oracle application server ? If yes does it mean I will not
    need 2GB for OMS ?
    cov6817:plmbomdv $ vmstat 2 5
    procs memory page faults cpu
    r b w avm free re at pi po fr de sr in sy cs us sy id
    1 0 0 3348627 762335 69 11 0 0 0 0 0 1014 4916 671 12 1 87
    1 0 0 3348627 762284 17 0 0 0 0 0 0 1040 10514 886 1 0 99
    1 0 0 3330668 762284 10 0 0 0 0 0 0 1031 7820 872 0 0 100
    1 0 0 3330668 762284 9 0 0 0 0 0 0 1033 6173 873 0 0 100
    1 0 0 3330668 762284 5 0 0 0 0 0 0 1029 5468 891 1 0 98
    cov6817:plmbomdv $ top
    System: cov6817 Wed Jul 18 08:48:43 2007
    Load averages: 0.02, 0.04, 0.03
    267 processes: 215 sleeping, 51 running, 1 zombie
    Cpu states:
    CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
    0 0.03 0.0% 0.0% 0.2% 99.8% 0.0% 0.0% 0.0% 0.0%
    1 0.03 0.6% 0.0% 0.4% 99.0% 0.0% 0.0% 0.0% 0.0%
    2 0.02 0.6% 0.0% 0.2% 99.2% 0.0% 0.0% 0.0% 0.0%
    3 0.01 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
    avg 0.02 0.4% 0.0% 0.2% 99.4% 0.0% 0.0% 0.0% 0.0%
    Memory: 8733312K (7157492K) real, 15353696K (13382776K) virtual, 3045556K free Page# 1/10
    CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
    0 ? 26521 oasadm 152 20 1517M 1141M run 3:49 2.53 2.52 java
    0 ? 3377 oasadm 152 20 1657M 1276M run 54:49 1.88 1.88 java
    Thanks a lot
    New DBA

    how much is my free meemory ?Do you have kmeminfo command installed?
    4. For OMS I read - It is a J2EE application that is
    installed and deployed using Oracle Application Server
    s oasadm user means Oracle application server ? If
    yes does it mean I will not need 2GB for OMS ?Even if that java vm is an instance of Oracle AS (OC4J), the Grid Control installs a separate instance of AS. The choice to install OMS app to any existing AS home does not exist in any version I know.
    Find out what more is running on the box and how much resources (i.e. RAM) those apps are configured with.

  • How to Find Out whether Standard IDOC is Availabl for  Transaction ?

    Hi,
        We are having SAP implementation 4.7E IS-OIL. We would like to know how to find out whether is there any Standard IDOC is Available for the SAP Transaction.
    Particularly for IS-Oil related transaction. e.g Load Confiramtion. T-code - O4G1.
        From a Given Transaction code is there any link which can tell whether IDOC is Present or not.
         Kindly help me.
    Regards,
    Umesh

    check for transaction....we41 and we42..
    check for proper process code...then check in we57,we81 and we82..
    also u can search in google..
    UMESH note that u need some fucntional exp for working in IDOC...try to crack yr head ..give time..n u ll get to know the things soon..as there is no defined standards to work in idocs..
    for more info u can ask me for [email protected]
    best regards
    Message was edited by:
            Madan Gopal Sharma

  • How to find out, whether an input document of a process is IRM-protected?

    Having an LiveCycle process with an input variable of type document.
    How to find out, whether the document is a standard PDF or an IRM-protected PDF?
    Thanks,
    Dilettanto

    Really no way to tell from a given PDF-file, whether it is IRM-protected?

  • How to find out, whether any invoice is having header text or not.

    HI all,
    How to find out, whether any invoice is having header text or not. wheich table we have to refer.
    Thanks
    mahaboob

    Hi,
    You need to use FM READ_TEXT.
    First you have to determine what text Object/ID/Language you want to read (you can have N text objects for an invoice header).
    The easiest way to do this is to have an example document with the text you want to read.
    For example in VF03.
    1-Goto->Header->Header Texts.
    2-Click on the text you want to read
    3-Double click on the text (Right side box) This will take you
    4-Goto->Header
    This will give you the data you need to use in the READ_TEXT F.M.

  • How to find out whether the transaction logs are being truncated or not

    Hi,
    We are using Veritas Backup tool for Backups and restores on our MS SQL 2000.
    One of our Veritas Tech has disabled the Truncation of Transaction Log Backup using the Job setup in Veritas. We want to confirm whether the Truncation is happening or not. I don't see any difference in the Transaction Log file size.
    How to find out whether truncation is active or not?
    Thanks
    Vijay

    Hello Vijay,
    On MSSQL truncation of transaction log does not shrink the size of the transaction log. It simply removes the content within the transaction log and writes it to the backup.
    Meaning the free percentage within the transaction log will increase.
    If you want to Resize the transaction log size, you need to do something else.
    The shrinking procedure is given here:
    http://support.microsoft.com/kb/907511
    Regards,
    Siddhesh

  • CVP call server logs - Hi All, I am trying to figure out whether caller party(End User) hangup the call first or UCCE Agent

    CVP call server logs
     Hi All,
    I am trying to figure out whether caller party(End User) hangup the call first or UCCE Agent.
    Attaching CVP call server Logs& UCCE TCD& Route Call Details for your reference.

    From the CVP logs, it can be determined which side disconnected the call first. For each call, CVP keeps track each call leg. From Inbound Gateway to CVP is INBOUND leg, rest are OUTBOUND leg. You can then look at which leg the SIP BYE message is received first.
    Since you have very basic log enabled, you will not see the exact SIP message. But it can be determined by the outcome of the message. Here is the snippet of the log during the disconnect:
    Line 3766: 3083689: 10.180.245.43: Sep 12 2014 12:21:11.293 -0700: %CVP_8_5_SIP-7-CALL:  {Thrd=DIALOG_CALLBACK.6} CALLGUID = CBCCDD8539E811E4A3E2CCEF48565980 LEGID = CC65CE04-39E811E4-87DFD7D1-64B198F2 - [INBOUND] DURATION (msecs) = 25610 - DIALOG TERMINATED. Reason: Q.850;cause=16
    Line 3768: 3083690: 10.180.245.43: Sep 12 2014 12:21:11.293 -0700: %CVP_8_5_SIP-7-CALL:  {Thrd=DIALOG_CALLBACK.6} Sending BUS MSG:>>HEADERS: (JMSType)=MsgBus:CALL_STATE_EVENT (JMSDestination)=Topic(CVP.SIP.CC.EVENT) (JMSTimestamp)=1410549671293 >>BODY: callguid=CBCCDD8539E811E4A3E2CCEF48565980 RouterCallKey=6472 RouterCallKeySent=true causecode=1 timezone=America/Los_Angeles RouterCallKeySequenceNumber=0 version=CVP_8_5 labeltype=1 RouterCallKeyDay=151099 calldate=Fri Sep 12 12:21:11 PDT 2014 label=190376 localOffset=-420 eventid=6 calllegid=CC65CE04-39E811E4-87DFD7D1-64B198F2  >>STATE: isTabular=false isWriteable=true cursor=-1  
    The first Termination message came on the INBOUND leg which is the PSTN. That means, PSTN side disconnected the call first.
    Hope this helps.
    Abu

  • How to find out whether my Iphone 3Gs is officlially unlocked ( factory unlocked ) or "made" unlocked ? Can I upgrade its OS to OS 5 even if my phone is "made" unlocked ? how to up gared its OS ? are there any better ways to do it ?

    How to find out whether my Iphone 3Gs (OS version 3.1.3) is officlially unlocked ( factory unlocked ) or "made" unlocked ? Can I upgrade its current OS 3.1.3 to OS 5 even if my phone is not officlially unlocked ? how to up grade its OS ? what are there any better ways to do it ?
    Thanks,
    PRANAJ

    Depends wher you obtained the iPhone from and it's original supplier
    If the iPhone is an authorised unlock ( approved by the carrier) or was
    purchased from Apple as an unlocked iPhone  updating the iOS
    will have no effect on the iPhone and it's lock status
    HOWEVER if the software has been tampered with to remove the lock,
    updating the iOs will lock the iPhone back to the original carrier who holds the lock
    To find out the status of your iPhone  you could call Apple support
    and they may tell you if the iPhone is locked or not and if it is which carrier

  • How to find out whether it is shared Appl_top?

    How to find out whether it is shared Appl_top?

    Hi,
    In a Shared APPL_TOP installation, the APPL_TOP and the COMMON_TOP file systems are installed on a shared disk resource mounted to each node in the system. These nodes can be used to provide standard application tier services, such as Forms, Web, and Concurrent processing. Any changes made in the shared APPL_TOP file system are immediately visible on all nodes.
    Note that each node continues to have a separate Applications techstack installation.
    I have given the concept of shared Appl_TOP , so that you can understand "How to find out whether it is shared Apll_TOP".
    Hope, this will help you.

  • How to figure out class of method parameter given a VariableElement?

    Background:
    I have a class that extends AbstractElementVisitor6<String, VisitorContext>
    In visitExecutable() I do something like this...
    try {
        // processingMethod is a member variable of the visitor
        processingMethod = true; 
        MyAnnotation foo = e.getAnnotation(MyAnnotation.class);
        if (foo != null) {
            List<? extends VariableElement> parameters = e.getParameters();
            for (Element enclosee : parameters) {
                enclosee.accept(this, context);
            // do other stuff
            return null;
        return null;
    } finally {
        processingMethod = false;
    }I then end up in visitVariable(VariableElement ve, P). Which is good.
    However, I have been running in circles for at least a day now in the javadoc, trying to figure out how to get from a VariableElement to knowing what the class of the parameter is. I have figured out a way (correct or not) of knowing if it's a primitive type...
    ve.asType() instanceof PrimitiveType But I'm stuck on figuring out what the class of the thing is. The closest thing I can see is if I can somehow turn the VariableElement into a TypeElement, I can use getQualifiedName(), but I'm haven't found that, and I'm not sure if that's the right answer either.
    Here's the pseudocode of visitVariable...
    public String visitVariable(VariableElement e, VisitorContext context) {
        if(processingMethod) {
            // if it's a primitive type - OK
            //  do the right thing
            // else
            //   figure out what the class of e is   HELP!
            //   do the right thing  
            return null;
    }In summary...
    How do I get the class of a method parameter from a VariableElement?
    Thanks

    When would this not be possible? Intersections types. See [JLS 3rd 4.9|http://java.sun.com/docs/books/jls/third_edition/html/typesValues.html#4.9] Specifically
    "It is not possible to write an intersection type directly as part of a program; no syntax supports this."
    Also, I'm curious about the string representation in the first place. I assume there's not direct handout of class objects because we're in the compiler and can't assume that a type is a valid "thing" yet? e.g. it may not have been compiled yetCorrect.
    I was just thinking about how to represent the information, when it occurred to me that I probably ought to just reuse type mirrors and/or elements. Would you recommend this strategy? This is an interesting area of writing annotation processors. In order to apply any (what we call) extra-lingustic constraints and generate error messages when someone breaks the rules, you normally need the elements and types in order to make assertions about types being correct etc. I normally do this in the data collection phase, and don't collect any data for uses that are erroneous. I haven't tried doing the error checking after the collection phase.
    When you are generating the source code, (after all the data is collected) all you need is CharSequences (normally Strings). In fact extracting those from elements and types at the point that is writing the source file can make the code more complex than it needs to be, so I prefer to just have everything in Strings at this point. It makes the code that is generating code a little easier to understand. I often build an inner class to hold all the strings (in fields or in collections as appropriate) which I have collected from each annotated element, so there is some structure there.
    Are there any examples or other advice out there for doing this that you can point to?There are a few examples. Check out the [hickory project on java.net|https://hickory.dev.java.net/] You might find some useful tools there to assist writing your processor (such as prisms ) and [writing you unit tests|https://hickory.dev.java.net/nonav/apidocs/index.html?net/java/dev/hickory/testing/Compilation.html] . Hickory's unit tests include several examples of annotation processors, [this one|https://hickory.dev.java.net/source/browse/hickory/trunk/code/test/net/java/dev/hickory/incremental/ServiceProviderProcessor.java?rev=22&view=markup] illustrates the points I am making, and there are also some in code samples in the javadoc, for example [the same thing again |https://hickory.dev.java.net/nonav/apidocs/index.html?net/java/dev/hickory/incremental/StateSaver.html].
    Bruce

  • How to figure out list of users registered to POOL?

    Hello ,
    We have a remote site and user registers to that remote site SBA/LYNC FE directly. Now i wanted to figure out if there is any way through which i can check how many users are registered to that remote FE ??
    Is there any command for the same?
    Thanks

    Hi,
    You can also run: Get-CsUser | Get-CsUserPoolInfo to receive user pool information.
    Best Regards,                               
    Eason Huang
    Eason Huang
    TechNet Community Support

Maybe you are looking for

  • Webdynpro application can't display a URL iView in a new External window

    Fellow developer: In my WD4A application, I called the method 'navigate_absolute' to display a URL iView in a new External window. The code is as follows: data lo_portal_manager type ref to if_wd_portal_integration. call method lo_portal_manager->nav

  • Publishing bw workbooks to the portal

    I am trying to find out what portal role a bw designer would need in order to publish workbooks\queries to KM in the portal and also to publish reports as an iview.  We have a few bw folks who are trying to accomplish this.  In the portal I had assig

  • Datetime problem in forms-9i

    Hi all, In designer-9i generated forms, the DATE or DATATIME data types are interpreted in forms without the time part being not displayed. Is there any other setting in designer required to achieve this (i.e. to display the time portion in a date ty

  • Parsing Query string using Client Object model [ECMA]

    hello i want to access querystring using client object model using ECMA script. for eg http://localhost:80/demopage.aspx?test=123 can we read value of test using ECMA script regards Manish

  • Blank size between Sun and Microsoft

    i use JTextPane to input and display data in gui,after save its data into database,i will output data into rtf file which will be opened by word. my problem is: i found Java's blank size is not equal to Microsoft's blank size,so cause the data which