Session/application info programatically

Hello,
I'm using OC4J (Oracle9iAS (1.0.2.2.1))
I'd like to receive useful information about number of active sessions per application,
or whether the server is up and running / or down __programmatically__
this would be an app for administrator, notifying him of some events through email.
(orion-console shows some of this stuff but it does not have triggering on events)
How can I implement this? There is some API documented to OC4J server but it is rather concerning
user managment or so.
Could you please direct my searches or give me an advice.
Thanks
Konstantin

Hi Konstantin,
I could be wrong here, but as far as I know, there is an "administration"
API for OC4J (otherwise, how could they have developed the "console"
app), but it is not publicly available to us plebs.
Of-course you could always try to hack the OC4J code -- starting with
reverse engineering the "orionconsole.jar" file I guess -- and try to
figure it out yourself!
Good Luck,
Avi.

Similar Messages

  • How to use Session ID info to send sequent requests to Https Server ?

    Hey , Gurus!
    Another problem for your talents :
    By using InputStream , I gain all info sent back from the Https server . And Session ID info is included , such as
    Session ID: {130, 17, 0, 0, 130, 170, 25, 235, 97, 13, 66, 95, 24, 241, 214, 8, 121, 216, 121, 64, 168, 15, 69, 65, 191, 192, 216, 68, 247, 130, 9, 164}
    How do I use this info in my Java Application to send next request to the Https Server ?
    Should I change the above Session ID info into another format ?
    Should I include the converted info in the Request Header or the Body ?
    Would you please give me an example ?
    Thanks a lot ...
    Have a nice day !

    Hi,
    You have to catpture the "set-cookie" header from the response which you got in the first request. The same "set-cookie" value has to be set in the subsequent requests' header. Please see the below code snippet to collect the "set-cookie" and set the cookie in the subsequest requests.
    //how to Collect the "set-cookie" from the response
    if (urlConnection != null)
    for (int i = 1;(key = urlConnection.getHeaderFieldKey(i)) != null; i++)
    System.out.println(urlConnection1.getHeaderFieldKey(i) + ": " + urlConnection.getHeaderField(key));
    if (key.equalsIgnoreCase("set-cookie"))
    String cookiValue = urlConnection1.getHeaderField(key);
    //How to set the cookie value in the subsequent requests
    urlConnection2.setRequestProperty("Cookie", cookiValue);
    Good luck.

  • Applications Info Is Not Showing Up in the System Profiler

    My applications info is not showing up in the new system profiler. I get the message "no information found". Any help would be appreciated.

    I'd get them to send you another card.  If it works, great!  If not, then the connection on the computer is bad.  If that's the case, you can get a wireless PCI card or a wireless USB adapter, but the PCI card would be better.  Test it with another Airport card first though.

  • Cache session application

    I am using JDeveloper 10.1.3.1 with ADF BC & JSF
    Problem description: I have an application launched by several links of some other application all in the same session. I need each link to open a new instance of the application. My problem is that the second time I launch the application it is using cached resources instead of taking the new set of parameters. How can I deal with that? - Is there a way to launch the application a second time without using cached resources? - Is there a way to clean this cache (programatically)?
    Thanks for any help.
    JuanFer HP

    Is not the best thing, but it works:
    1. Create a filter, i.e:
    public class TestFilter implements Filter{
    public TestFilter () {
    public void init(FilterConfig filterConfig) {
    public void doFilter(ServletRequest servletRequest,
    ServletResponse servletResponse,
    FilterChain filterChain) throws IOException, ServletException {
    HttpServletRequest req = (HttpServletRequest) servletRequest;
    //Invalidate session
    HttpSession oldSession = ((HttpServletRequest)servletRequest).getSession();
    oldSession .invalidate();
    //Create new session to set new parameters
    HttpSession mySes = req.getSession(true);
    // TODO: Set new parameters
    filterChain.doFilter(servletRequest, servletResponse);
    public void destroy() {
    2. Don't forget add the filter to the web.xml (filter and filter mapping):
    <filter>
    <filter-name>TestFilter</filter-name>
    <filter-class>com.test.userinterface.TestFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>TestFilter</filter-name>
    <url-pattern>/*.jspx</url-pattern>
    </filter-mapping>
    JuanFer HP

  • Getting all session and info about each session

    I want the functionality of HttpSessionContext, but unfortunately, it is deprecated. Specificially, I want to be able to get a Collection of all of the existing HttpSessions so I can loop through them and call the getAttribute(String) and getLastAccessedTime() methods on each HttpSession. The ultimate goal would be to print out a list of all existing sessions, when their were last accessed and print the value of any session attributes that I choose. Is there a way to do this?

    The session listener is available to you in j2ee containers 1.4 and above. It will tell you when a session is created or destroyed. As far as getting you hands on all the sessions there is no j2ee spec defined to give you this. However if you are lucky, the application server's vendor may provide the api to do exactly what you want.

  • Database sessions, Application Modules and Pools

    Hi,
    I have an ADF 10.1.3 application (ADF Faces on ADF BC) that uses JAAS to authenticate it's users. After the user has logged in I would like my session_user_info managed bean to query the database and retrieve all the user's details, for access throughout the user's session. Initially I wrote the following code to achieve this:
          ApplicationModule am = Configuration.createRootApplicationModule(applicationModuleName, applicationConfigName);
          ViewObject vo = am.findViewObject("CurrentUserView1") ;
          vo.setNamedWhereClauseParam("v_userName",userName);
          vo.executeQuery();
          if(vo.getRowCount() <= 0)
            user = null ;
          else
            user = (CurrentUserViewRowImpl) vo.first();
          Configuration.releaseRootApplicationModule(am, true); This works fine BUT because it's creating a new root ApplicationModule each time I end up with an excessive number of database connections after a very short space of time (the call to Configuration.releaseRootApplicationModule does not seem to be releasing the database connection, even though the application module is released). I also don't like this as it feels like I'm "breaking" the framework by making a direct call to the model layer.
    So the next thing I wanted to try was creating a DataControl (by dragging my CurrentUserView1 on to a jspx page, then deleting it to preserve the bindings) and make a call to that using something like this:
            /**** TODO GET BINDING TO CurrentUserView1 ******/
            OperationBinding operationBinding =
                bindings.getOperationBinding("ExecuteWithParams");
            JUCtrlAttrsBinding vUsername =
                (JUCtrlAttrsBinding)bindings.findNamedObject("v_userName");
            statusCode.setAttribute("v_userName", username);
            Object result = operationBinding.execute();
            if (operationBinding.getErrors().isEmpty()) {
               /***** TODO Cast this result object in to something useful *****/
                setUser(result)
            }But as you can see I still don't completely understand what I have to do here (and yes I have trawled the various guides and documentation - but I can't work out exactly what applies to me as this isn't a backing bean).
    If any of you Aces out there can give me some pointers it would be MUCH appreciated as I've beat my head against this for a week now!!
    Dave
    Edited by: Short Dave on Dec 1, 2008 2:52 PM

    John,
    It's been 2 months since I asked this question and in that time I have tried innumerable ways of getting my application and database pools to behave in such a way that doesn't end up filling my database with unclosed sessions. The situation I'd ideally like to achieve is this:
    Application Modules
    A pool of application modules minimum 5 maximum 150 with a "working set" of about 25 (the jbo.recyclethreshold setting)
    For application modules to timeout if they are inactive for > 120 seconds (so if somebody has left their browser open in the background I don't want them hogging my AMs)
    Database Connections +(I am using a JDBC data source to allow multiple applications to reuse my connection pool settings)+
    A pool of database connections minimum 5 maximum 150
    If a connection is inactive for > 300 seconds for that connection to be closed (i.e. if an AM has been returned to the pool, but is not re-used within 5 minutes then I'd like the connection closed)
    Obviously, for the purposes of testing, I don't want to try and manage 150 browser sessions to see if this setup works, so I have been trying to create a scaled-down version of my requirements:
    Application Modules
    A pool of application modules minimum 1 maximum 5 with a "working set" of 1 (the jbo.recyclethreshold setting)
    For application modules to timeout if they are inactive for > 30 seconds
    Database Connections
    A pool of database connections minimum 1 maximum 5
    If a connection is inactive for > 60 seconds for that connection to be closed
    My problem is that, despite all the API's, the ADF for 4GL guide, forum entries and Steve Muench's guide to AM Pooling I still can't get this relatively simple example to work.
    My bc4j.xcfg file looks like (assume all other settings are as default):
             <jbo.recyclethreshold>1</jbo.recyclethreshold>
             <jbo.ampool.maxavailablesize>5</jbo.ampool.maxavailablesize>
             <jbo.ampool.maxinactiveage>30000</jbo.ampool.maxinactiveage>
             <jbo.ampool.minavailablesize>1</jbo.ampool.minavailablesize>
             <ApplicationName>gpl.model.PreUserLoginModule</ApplicationName>
             <jbo.ampool.monitorsleepinterval>30000</jbo.ampool.monitorsleepinterval>My data-sources.xml file has the following entries for the connection used by that application module (assume all other settings are as default):
      <connection-pool name="jdev-connection-pool-gslportal_at_ppmsdb"
                       disable-server-connection-pooling="false"
                       validate-connection="false" inactivity-timeout="60"
                       max-connections="5" min-connections="1"
                       property-check-interval="30"
                       used-connection-wait-timeout="30">With this configuration I can open a maximum of 5 browsers and each one connects successfully. On opening the 6th I get an exception because no more connections are available (as expected). My problem is that if I wait for 5 minutes I'd expect that
    a) 4 of the inactive application modules should be released (with one left available as per the min setting)
    b) The database connections of the 4 inactive application modules should be released as per the "inactivity" and "used-connection-wait" timeouts on the data-source
    c) I'd now expect the 6th browser to be able to connect because of the "freed up" resources
    From what I can make out none of these things happens. Even if I close the original 5 browsers, the 6th still cannot connect.
    I have noticed that if I set the "time-to-live-timeout" for the datasource then this will close the connection after the given period of time, but regardless of whether or not the connection was in use and in doing so renders the application module held in the pool as useless. (So if any of my original 5 sessions attempt to re-use the application module with the closed database connection, a "Closed Connection" SQLException is raised).
    I do appreciate this topic has been given LOTS of forum discussion already - but I really have done my research and am still none the wiser. Any help or guidance will be much appreciated.
    Kind Regards
    Dave

  • Script playback session number - get programatically?

    OpenScript
    Oracle EBS/Forms Functional
    "script playback session number" - can I get value of this system variable programatically?

    hi,
    thanks of your letter,
    but I mean about specific variable - "script playback session number" - Oracle EBS/Forms Functional using during script playback session.
    for example:
    if I playbacked script 3 times, 3 subcatalogs containing playback results are created by OpenScript under catalog "\results":
    "Session1"
    "Session2"
    "Session3"
    and, when I will start script playback 4th time, subcatalog "Session4" will be created. Number "4" is the number I need now during my 4th playback.
    btw, I already found workaround of my problem by analysing "session results catalog list" during playback and cuting "max number" using standard java string manipulation functions..

  • Application info cleared out

    My 2 yr old has done something & I have lost all my info in my apps- I know it is still there- such as photos & itunes music because they are in folders, just not in the applications, I know I can reimport those but what what about my address book, bookmarks in safari etc {my destop & screensaver etc was also cleared-similar to a new user account but I am still in MY account}
    is there any way to get that info back? it seems that the path was somehow rearranged?

    Welcome to Apple Discussions!
    A good reason to set up your machine to log out upon turning on screen saver. Apple menu -> System Preferences -> Security has a function to do that.
    You may have had your Library or Home folder renamed or moved. This article discusses how to solve this problem:
    http://docs.info.apple.com/article.html?artnum=107854
    It is important to keep a backup in anycase, to avoid such problems from happening again, as my FAQ* explains:
    http://www.macmaps.com/backup.html
    * Links to my pages may give me compensation.

  • Warning about AppStore Update Application info

    Just a quick warning so other folks don't do what I did - when you do Update Application and it's in review, don't try to update the screenshots or text in that version 2.0 entry. It will be reflected into your current version, and you will get quite a bit of confused e-mail from new purchasers as they wonder "where the network list button is."
    Since it can take a few hours to a day to get that info pushed out, even reverting can take a while.

    I always run pacman -Syy after changing mirror. Haven't tried Syyu. Also changed mirror after consulting the mirrors most recently updated from the list in this forum.
    OOPS! My mistake. Haven't seen this "mirror used during installation....." in mirrorlist. After commenting it out it's OK.
    Last edited by jai134 (2009-12-25 14:39:03)

  • Finding session timeout period programatically

    Hi,
    I need to findout the session timeout period of portal (not the application.. I do not want to specify any ExpirationTime at the application level). Based on this value, I want to notify user a minute before the session expires using Timed Trigger UI. I searched a lot but couldnt find any API that can provide this information. We are on Netweaver 7.0 SP8.
    Appreciate if anyone could tell the API name or provide some hints.
    Thanks
    Kumar

    Hi Kumar,
    check this link to find out session time out for portal: {http://help.sap.com/saphelp_nw2004s/helpdata/en/a0/3b7f41009d020de10000000a1550b0/content.htm]
    U can set session time out message using portal development.
    create a par file for this n deploy this on server.
    chk this link: [https://www.sdn.sap.com/irj/sdn/wiki?path=/display/ep/ep%2bsnippet%2b-%2bportal%2buser%2bidle%2btimeout%2bfor%2blogoff%2b-%2bcustom%2bjavascript]
    hope it hlps u..
    Regards,
    Khushboo

  • Identify the application server programatically

    Hi,
    Can anyone help me how to detect that how to programatically identify which application server is being used by my web application?
    Thank you in advance.

    I want to identify which application server my application is using.I want to do this programatically.so it the server is weblogic, weblogic specific actions can be performed.If the server is websphere, websphere server specific actions i will perform.

  • Session by session application permissions??

    Can ARD be used to control which applications can be opened on clicnt computers?
    This would be very helful to the education environment. Especially in situations where many different teachers use different apps to teacha variety of classes.
    -Tim

    " Can ARD be used to control which applications can be opened on clicnt computers?"
    No. Those options are set locally on each computer for each user.

  • Help me it says cannot cannot to iTunes Store when I look at an applications info help

    Help me. I keep getting a cannot connect to iTunes Store error message when I try to look at the application information but I already tried to do the dAte and time thing I also tried to reset the settings and I really need help please help

    Try logging out of your account on the iPad by tapping on your id in Settings > Store and then log back in and see if it then works.
    If that doesn't solve it then what has worked for some people is going into Settings > General > Date & Time and change the date to a few months in the future and then re-trying

  • How to Manage Oracle Applications - Info Available

    Check this site :
    http://www.oracle.com/appsnet/technology/managing/content.html
    Contains White Papers, Presentations, Technical Overviews, FAQs for managing and maintaining Oracle Applications.
    The Presentations are lucid and extremely useful.
    Best Wishes
    Vinod Subramanian

    Manging Oracle on Linux is no more difficult than managing Oracle on Windows.
    Managing Linux is about the same difficulty as managing Windows. Both require a degree of understanding of the environment. Once you are comfortable with the environment and the terminology / language used, you should have no big problems.
    I think the biggest challenges in Linux are
    - a different set of editors than you have used
    - a lot more time in the command line and writing batch scripts
    - Microsoft has many of the nix command capabilities but with enough changes (cp -> copy) to be confusing (remember, nix came first <g>)
    - the idea of 'C:, D:' drives is totally gone ... in *nix there is no 'drive', it's all just 'files'
    There are several GUI utilities to help 'manage' Linux. These may not be very useful when working with Oracle environment as they tend to relate to a file-oriented (or fire server) computing environment, not a database environment. However, you might want to search the web for 'WebMin' as a possibility.
    I encourage you get a good basic reference. One I like, although dated, is Essential System Administration

  • E-Recruiting: Control Access To Candidate & Application Info

    Hi Experts,
    I am currently implementing E-Recruiting EP4 and in my environment, I have 3 legal entities sitting in the same E-Recruiting/HR instance.   The challenge I am facing is that the recruiters in each entity are NOTsupposed to see application and candiate information received by the other entities.
    How can I control that?
    Thanks in advance.
    Bill

    Hi Bill,
    the approach you described is completely contrary to the intention of sap e-recruting. The system is desinged for having a global pool so a candidate does not belong to a certain legal entity. This "I won't share my candidates with the others" position of many recruiters is in my humble opinion something that belongs to five year olds but has is nothing for a serious talent acquisition process. The legal issues of data security can be solved by a well defined data security declaration - if it is possible here where we have one of the worlds strongest law in this field it should be possible everywhere..
    managing requisitions and the application on them is restricted by the recruiting team. so noone can work on the candidacies / applications if he is not intendet to. but the candidates are available for all recruiters and also the information that someone applied for a certain position can be found. of course you can try to hide functions, change displays but you will end with a system full of modifications horrible to support. So recruiters will always have access to all candidates, the way this is handled is just a question of proper process design.
    If there is a requirement that managers shall not see the application history of a candidate to ensure a fair and eeo compatible hiring process you have to design the data overviews that he get's only the information he is meant to see.
    Best regards
    Roman

Maybe you are looking for

  • Using Trunc Function in OBIEE RPD to TRIM DATE

    Below is my requirment.How can i achieve this in BMM layer. CASE WHEN TRUNC(REPORTDATE) <= TRUNC(SYSDATE-2) THEN 1 ELSE 0 END

  • Slow performance from macbook pro

    I am running a macbook pro on 10.6.8.  Generally speaking it is very slow and speed doesn't always seem to correlate to the load, though the load does tend to run high. On average it's 1.5-2 load, even at times where it gets down to about 1 it is not

  • All programs run very slow from dock

    programs run very slow from dock sometimes does not open at all

  • Integration of sd-mm

    hi, can somebdoy let me know the integration of sap-sd and MM, if at all any docs plz mail me to this id,.. [email protected] Mallik

  • Why do I get error message everytime I try to upload new info?

    Hi, I had tremendous trouble getting my iWeb site uploaded through an FTP. After a week of frustration we finally up loaded by publishing to a local file on my desk top so I could easily find all the files. One error message I kept getting, even thou