Get Current session number in J2ee

Hi
we developed a new application using J2EE with JDeveloper 10.1.3 , the
application deployed to Oracle Application server 10.1.3 , How can i get the
current number of JDBC connection and the number of session in my
application , i want to make a check in the application ( login page ) to the
number of the connection so that i can display a message to the client (
like come back later , ) which is better to check the http session number or
the database connection (JDBC) , any suggestion????????????
Thank's in advance

Hi,
the session is instance specific and wont give you any information about the number of parallel sessions. Same for the connection. What you can do is to write a bean that you put in application scope and that you use as a counter. All application instances will have access to it. So each new launched application will add +1 to the counter. However, you will need to sort out how to detect when a client disconnects to clean up the counter with a -1
Frank

Similar Messages

  • How to get current session language ?

    Hi,
    I want to get the current session's language.
    I'm using pageContext.getOANLSServices().toString() but its output is oracle.apps.fnd.framework.OANLSServices@f55137
    Any ideas ?
    Thanks

    Hi,
    Use the below code in CO for getting the Language.
    pageContext.getCurrentLanguage();Regards,
    Gyan

  • IS-U print workbench - User exit - to get current page number

    Hi,
    I have a doubt in IS-U print workbench where in I need to get the current page number which is being processed inside the user exit of the application form.
    I have a user exit called Z_EXIT_150 and here I have a subroutine which is inside the LOOP DOC_ITEM …ENDLOOP.
    Inside the subroutine, I need to get the current script page number.
    There is an option of getting the current page as &PAGE& inside the Script but I need to know the page number inside the exit.
    Do you have any idea of getting the current page number?
    Thanks and Regards,
    Sakthi.

    Hi Sakthi,
    I have also had this problem while working in IS-U Print Workbench but was also unable to solve.  I tried looking into the output_text that is called when reaching an object that references SAPSCRIPT-FORMPAGES but I too could not find a way to save PAGE to a variable for later use.
    The only idea I can think of, although I have not tried, would be to place some sort of counter variable in the BUILD_DOCUMENTS and increment the counter each time there is a successful printout of a header logo or some other object that you expect to see printed on each new page - that way maybe you can determine later in the exit processing what page # you are currently in. 
    I hope this has helped some.  I would be really interested to hear if someone else has a solution of how to access items in the SAPSCRIPT structure from outside of the SAPscript code.
    Regards,
    Geoff

  • Get current step number and handling max steps exceptions

    We are using IPCC Express Premium 4.0.4 and would like to know:
    1. Is it possible to determine the execution number for the current step? For example, x number of steps have been executed up until a certain point in the script. Possibly via a Set step using Java or a DB Read step?
    2. When the system parameter "Max Number of Executed Steps" limit has been reached the exception "com.cisco.wfframework.obj.WFMaxExecutedStepsExceededException" exists within the CRS Engine MIVR log. This exception does not exist within the available exceptions list in the "On Exception Goto" step. Is there a way that we can intercept this specific exception or will we have to use the "com.cisco.app.ApplicationTaskInactiveException" exception instead?
    We have been experiencing stuck Reserved agents and periodic callers stuck in queues, which has been occurring due to the maximum number of executed steps being exceeded. We have increased our "Max Number of Executed Steps" parameter from 1,000 to 2,500 for the time being and we may need that higher still.
    Our script has a lot going on after every 30secs of hold music....to determine if notification pages/emails need to be sent out to Help Desk staff due to long wait times, or to play updated status prompts only when appropriate....to name a couple. To our knowledge we have made things as efficient as possible (using Sessions) and we will be making a few more tweaks, but nowhere near enough to stay under the default 1,000 limit.
    I asked question # 1 to help us better assess what our step execution counts are for different logic scenarios, rather than manually trying to count the steps within our script. I asked question # 2 so that we can send pages/emails to ourselves if a WFMaxExecutedStepsExceededException exception does occur and include the phone number of the caller who would have ended up not getting through so we can call them back not long after.
    Thank you for any info you can provide!
    Tom

    I'll try and answer the issues in this thread in turn:
    "1. Is it possible to determine the execution number for the current step? For example, x number of steps have been executed up until a certain point in the script. Possibly via a Set step using Java or a DB Read step?
    2. When the system parameter "Max Number of Executed Steps" limit has been reached the exception "com.cisco.wfframework.obj.WFMaxExecutedStepsExceededException" exists within the CRS Engine MIVR log. This exception does not exist within the available exceptions list in the "On Exception Goto" step. Is there a way that we can intercept this specific exception or will we have to use the "com.cisco.app.ApplicationTaskInactiveException" exception instead? "
    ----->Sadly this is not in the On Exception Goto step. Several people have commented on this to Cisco and I would recommend you join the crowd. Talk to your Cisco Account Manager. If you are a partner, submit a well thought out request to [email protected].
    "Our script has a lot going on after every 30secs of hold music....to determine if notification pages/emails need to be sent out to Help Desk staff due to long wait times, or to play updated status prompts only when appropriate....to name a couple. To our knowledge we have made things as efficient as possible (using Sessions) and we will be making a few more tweaks, but nowhere near enough to stay under the default 1,000 limit. "
    ----->You should be using sub flows for this type of work. Sub flows are a separate script and as such, have their own maximum step count each time you call them. Put all of this extra logic into a separate script and call it each iteration through the queued loop.
    "In most of the cases,you should not hit the 1000 step limit unless there's a loop in the script."
    ----->Exceeding this is not recommended by Cisco as it increases the amount of memory being used by each script instance. I would proceed with a great deal of caution.
    "I want to check to see if the caller pressed 1 (to leave a message type functionality) anytime during the queue loop. Not just when a delay expires and a prompt is played. This easily exceeds the default max steps. "
    ----->The common way of doing this is uploading a WAV of your music on hold to the prompt repository and then using a Get Digit String step with the MoH WAV file as the prompt for it. This allows the caller to press it at the IVR is essentially always waiting for a DTMF digit. You can use Match or If statements within the Success branch to determine if they pressed the correct digit.
    "Where I can make the max steps very large ?
    I am using CRA3.5.
    Please help ASAP,
    Thanks"
    ----->Again, not recommended! You can almost certainly break your script into appropriate functional components and use subflows to drastically reduce the likelihood of hitting the maximum.

  • Get Current page number of PDF file

    Hi,,
    I am using acrobat plugin(SDK) in VB.Net while am nevigating in the
    PDF file i want get the current viewing page number of that
    PDF file and Display in Lable/Text....
    In abouve screenshot am marked the SDK display page number that i want read by VB.NET and display in my application..

    ..... perhabs in connection with this;
    http://forums.adobe.com/message/4587057#4587057
    However, full Adobe Acrobat is needed for both (not Reader only).
    HTH, Reinhard

  • How do I get current session language  in the jsp page ?

    I have a simple jsp page which I called from the iProcuremnt. I need to display the session language, which user select from preference/login page .
    Here is my code snippet.
    <%
    WebAppsContext _ctx = null;
    _ctx = WebRequestUtil.validateContext(request, response);
    WebRequestUtil.setClientEncoding(response, _ctx);
    Connection conn = ctx.getJDBCConnection();
    String sql = "select fnd_global.org_id , 'FRC/US' from dual”
    //fnd_profile.value('ICX_LANGUAGE') always get AMERICAN
    _ps = _conn.prepareStatement(sql);
    _rs = _ps.executeQuery();
    out.println("The Org id is : " + corg + " , "Langage is : " + cLang);
    %>
    Thank you in advance.

    destination URI should have one more parametre, say lang IS ENG
    MyTestPage.jsp?MODE=U&RLI={$RequisitionLineId}&LANG=ENGLISH
    and get this param from url in jsp.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Beginner Question: Get current Week Number with Token API

    Is it possible to get the current week (1-52) with the token API?
    I searched the gwtokens.pdf for a suitable method, but haven't found
    something that fit my needs.
    Any idea/suggestion?
    Thank's in advance for your help.

    test wrote:
    > current week
    Use the windows api, or build in functions of the language you code in
    Tommy Mikkelsen
    IT Quality A/S, Denmark
    Novell Support Forums SYSOP / NKP
    Sorry, but no support through email
    Please join http://www.open-horizons.net

  • To get Current BP number

    HI All,
    I need find last bp Number that is created.Is there any function module or table available to get this.

    Hi,
    Use the following to get the last partner created.
    data: partner type but000-partner.
    get PARAMETER ID 'BPA' FIELD partner .
    But this will only give the one's created by UI.
    Thanks and warm regards,
    Smita.

  • Is there a way go get the item number of the current item?

    In an item with multiple instances: Is there a way to get the item number of the current item? If for instance, I am on the 3rd item, is there some kind of “GET CURRENT RECORD NUMBER” built-in that would return a ‘3' to the program?
    Thanks
    Edited by: WayneFMcKinstry on Apr 9, 2010 10:50 AM

    If i am getting you correctly that in tabular item you want to know the current record or current item you can try this...
    For current record
    :SYSTEM.CURSOR_RECORD;
    or
    :SYSTEM.CURRENT_RECORD;for current item
    :SYSTEM.CURSOR_ITEM;-Ammad

  • Statusbar displaying current line number?

    Hi,
    I am building a swing application where I have one text editor and one status bar. I want to display current line no in status bar. I tried with getCaretPosition() but it does not returns line number, is there any other way to get current line number to display it on status bar? Thanks.

    is there any other way to get current line number Did you search the forum?
    How about the keywords "current line number", taken directly from your question. So you can see its really not that hard to think of keywords to use in a search.

  • Possible to get SID of current session when not logged on as SYS

    I would like to get teh SID of my current session, but access to V$MYSTAT is restricted:
    conn user/******@DB
    SQL> desc v$mystat
    ERROR:
    ORA-04043: object "SYS"."V_$MYSTAT" does not exist
    SQL> conn sys/******@DB  as sysdba
    Connected.
    SQL> desc v$mystat
    Name                                      Null?    Type
    SID                                                NUMBER
    STATISTIC#                                         NUMBER
    VALUE                                              NUMBERThanks

    Can you use [url http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/functions165.htm#i1038176]SYS_CONTEXT for getting DB_NAME, INSTANCE_NAME, SID etc?

  • How to get the current month number

    Hi everyone,
    Does anybody know how to get the current month number in Oracle Discoverer Worksheet calculation?
    I try to use EUL_DATE_TRUNC(CURRENT_DATE, 'MM'), but instead I got 01-AUG-00.
    If I change the data display format to MM, it will give me "08" but if I use TO_NUMBER function to convert it to number I get error "invalid number"
    Is there anyway to get the current month value in number? Thanks

    Scott,
    Thank you so much! It works perfectly! :)
    Hope you have a great day ahead!
    Cheers,
    Angeline

  • Getting an error in KPI Modeler as "{"customMessage":"failed to detect the sap language of the current session language","status":500}"

    Hi Experts,
    We have installed UISKPI01 in SAP NetWeaver Gateway System for Fiori Analytical Apps (KPI modeler is necessary to model the KPI) but while trying to create and Save the Group, we are Getting an error in KPI Modeler as "{"customMessage":"failed to detect the sap language of the current session language","status":500}". Similarly, when we are trying to edit the existing KPI template and assigning the Variants and Evaluations, we are facing the same error as failed to detect the sap language of the current session language","status":500.
    Any idea on above error?
    Thanking you,
    ~ Mahendra

    Hello Mahendra,
    Check if you have entries in the T002 table of SAP_SSB schema.
    If not follow the steps mentioned in the admin guide of SAP Smart business to populate data.
    This should resolve this issue.
    Note: My assumption is that, you are accessing the KPI modeler in English Language.
    Thanks,
    Debasish

  • How to get the user of current session in EBS

    Hi everyone,
    I create a new form in EBS 11. I want to get user ID (or userName) of user who log in the current session of application for inserting into CREATE_BY field of table in database.
    How have i to get it
    thanks you and best regards

    Hi,
    It seems like your application variables have not been initialized. Has your form been registered in a menu under a valid responsibility? Give us more details of the form and where it is has been registered.
    Make sure you look at P29-3 of the Application Developer's Guide for WHO column maitenance as you should be populating other columns besides the USER_ID. (http://download.oracle.com/docs/cd/B40089_10/current/acrobat/120devg.pdf)
    Cheers
    Dale

  • How can I get a list of active savepoints for the current session?

    Hi,
    In Oracle Applications, we are getting the following error while performing ROLLBACK to a Savepoint.
    "Unexpected Error: ORA-01086: savepoint 'PTNR_BULK_CALC_TAX_PVT' never establishe d ORA-06510: PL/SQL: unhandled user-defined exception"
    So how can I get a list of active savepoints for the current session?
    Could you please also let me know if there is any better way to debug this issue.
    Appreciate any quick response as the issue is very critical.
    Thanks,
    Soma

    user776523 wrote:
    Hi,
    In Oracle Applications, we are getting the following error while performing ROLLBACK to a Savepoint.
    "Unexpected Error: ORA-01086: savepoint 'PTNR_BULK_CALC_TAX_PVT' never establishe d ORA-06510: PL/SQL: unhandled user-defined exception"It sounds like there's an execution path in the code where the SAVEPOINT is never issued.
    There is no way to get a list of active savepoints. Is this your code or a "canned" procedure? If it is your code you can go through the code looking for answers, possibly tracing execution using DBMS_OUTPUT.PUT_LINE or writing messages to a log table. If its a "canned" procedure you may need to open an SR with Oracle

Maybe you are looking for

  • Windows Server 2012 VSS error "The system writer is missing"

    Hello All, I have a HP server that I have just installed Server 2012 standard, SQL Server 2012 and Sharepoint 2013. When I try to take bare metal backup I get the error: "The system writer is missing", I have tried the backup as the local admin and d

  • The Cyberlink program that came with my hp2000-2b20CA computer does not seem to have any volume.

    I have tried everything I could think of but the only thing that works when trying to play a DVD is plug into my tv and use that volume. I really don't want to do that as it should work using the computer. I believe the volume works fine on the compu

  • Quick time will not open

    I purchased Quick time Pro in July, used it successfully to view and edit .mov files. Now all of a sudden it won't open, the error message reads: Your copy of Quick time 7.02a63 & quick time player 7.0.2a63has expired. Go to apple.com......to downloa

  • Publishing Dreamweaver page through iWeb?

    I have a website that I've designed through Dreamweaver. I actually have designed the basic look - is there an easy way to past the html into iWeb so that I can use the desgin/layout I have come up with? Thanks

  • How to email Documents from SAPB1 under WinXP using Outlook

    Hi Experts, In order to demo on a WinXP machine, I would like to send out documents such as Quotations, Sales Orders Etc. Is there any prerequisite such as SMTP server etc that I need to install. Please outline a few steps if you know. Thank you.