Session Persistance / Session Sharing

I have 2 administration servers that share sessions thru a NFS mount file system. Is that allowed ? It seems to work most of the time, except for some instances where users are being kicked out because of invalid sessions/because the server could not find the sessions. Why does this happen ? Is it possible that both the admin servers create sessions with same session id's (once in a while )
Please shed some light.

Hmm, is there really no other way - it sounds like a maintenance nightmare to update the server lib every time I deploy a new version of one of the apps. Anyways, in both apps I use JNDI to look-up the EntityManager, doesn't that mean that I share the same persistence unit? All I really want to achive (I think) is to share the TopLink session between those two apps (and the cache will be shared consequently). What about manually managing the TopLink session (retrieve/invalidate) wouldn't that help?
On a different front - I played with the TLE cache settings a little bit to see when/what SQL queries are actually executed and I was quite surprised to see that even with the 'Full' caching enabled SELECTs/UPDATEs are executed instantly whenever merge/find operations are executed (I'm using MySQL and the query log). Is there a way to defer those to put less load on the SQL server?

Similar Messages

  • Session issue in shared folder

    How many connection limit in windows 7 enterprise shared folder
    i'm getting Session issue with shared folder

    By default there is 20 connections limited to a folder. If that is decreased against the number of users, the issue occurs.
    Balaji Kundalam

  • Restricting particular session variables being shared

    i am using weblogic 10.3.
    I have an EAR with has 2 WAR in it , with session sharing enabled in the weblogic-application.xml . I understand that this will make all the variables that are added in the session to be shared by both WAR, but i want a particular variable added in the session not to shared by both WAR, it should be accessible by only WAR1.
    Please help me
    Zeeshan

    "Restricting particular session variables being shared"
    You can use the 'transient' keyword for this purpose, for example,
    public class Example implements Serializable {
        private String replicate;
        private transient String notReplicate;
    }The 'replicate' attribute is replicated when the Example object is put in the session, the 'notReplicate' attribute is not.

  • Persisted Sessions Count in Tomcat5.0

    I am using Tomcat5.0. I want to find the exact number of sessions associated with application running in the server. By using HttpSessionListener i wrote my logic.So that i can count the number of sessions.My Problem is, Suposse if i stop my tomcat server, the sessions in the server will be persisted. When i restart the tomcat those sessions (*which were pesisted when i stop the tomcat*) will be loaded again. I am unble to find the number of sessions which are loaded. Newly created sessions i can track and i can count. but those persisted session which are loaded when i restart the tomcat are out my count . How can i find the exact number?

    Dorababu wrote:
    I am using Tomcat5.0. I want to find the exact number of sessions associated with application running in the server. By using HttpSessionListener i wrote my logic.So that i can count the number of sessions.My Problem is, Suposse if i stop my tomcat server, the sessions in the server will be persisted. When i restart the tomcat those sessions (*which were pesisted when i stop the tomcat*) will be loaded again.Is that a requirement? Else you should just turn it off. Its configurable in the server.xml.
    I am unble to find the number of sessions which are loaded. Newly created sessions i can track and i can count. but those persisted session which are loaded when i restart the tomcat are out my count . How can i find the exact number?If you have to have sessions persisted, you will have to subclass the PersistentManager class (which is responsible for persisting & reviving sessions across restarts). The only additional functionality that you would add is to register lifecycle Listeners that will be notified of session revivals. Happy googling :)
    cheers,
    ram.

  • Tomcat 5.0.25 persisting session data by default ?!?

    This is, I imagine, a dumb question, but I can't quite figure out what is happening by looking at past postings.
    When I start Tomcat I get an error : "IOException while loading persisted sessions" because some classes we use are not serializable. That makes sense - we didn't design them to be serialized.
    I understand that Tomcat CAN try to persist session data across restarts. However, I do not want it to do this. I thought this was something we had to configure, but it looks like it happens by default (?)
    Anyway ... any advice about how to prevent this behavior, at least for our app, would be appreciated ... really puzzled ... !
    Thanks in advance for any help you can give !!
    ethan

    Well, thanks ... I have been there actually, but it only tells me how to set up the 'Experimental" Persistent Manager and not how to turn this off. Here is an interesting blurb from that site :
    <<<<<
    Whenver Catalina is shut down normally and restarted, or when an application reload is triggered, the standard Manager implementation will attempt to serialize all currently active sessions to a disk file located via the pathname attribute. All such saved sessions will then be deserialized and activated (assuming they have not expired in the mean time) when the application reload is completed.
    In order to successfully restore the state of session attributes, all such attributes MUST implement the java.io.Serializable interface. You MAY cause the Manager to enforce this restriction by including the <distributable> element in your web application deployment descriptor (/WEB-INF/web.xml).
    >>>>>>>
    I THINK this means that persitence is on by default. I'm not certain because - if that is true - then what is the Persisistent Manager for ? I have found thi ssnippet of config in conf/server.xml :
    <<<<<<
    <Context path="/myApp" reloadable="true" docBase="myApp" workDir="C:\myApp\\work\org\apache\jsp" >
    <Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false"/>
    </Context>
    >>>>>>
    which tells Tomcat to use the Persistent Manager for my app and then ... tells it not to store session data. And this seems to work ... at least the error messages go away. Now, though, I get a new and different error message :
    <<<<<<
    SEVERE: no store configured, persistence disabled
    >>>>>>
    So I am still doing something wrong ... I think ... and still looking for help ... B-)
    Thanks again, black_lotus ... maybe we'll learn about this together ;-)

  • Unable to create/cleanup persistent session data cache

    Hi all
    After the iPlanet Webserver 4.1 SP12 starts up the following entries appears in the error log file:
    [14/Oct/2003:09:24:48] info ( 5999): successful server startup
    [14/Oct/2003:09:24:48] info ( 5999): iPlanet-WebServer-Enterprise/4.1SP12 BB1-12/18/2002 14:18
    14/Oct/2003:09:24:49] catastrophe ( 5999): Unable to create/cleanup persistent session data cache
    What does the last entry mean?
    Thanks for any help :-}
    Best regards,
    Jean-Claude

    Check permissions, disk space of following dirs:
    server_root/https-instance/ClassCache/
    server_root/https-instance/SessionData/
    Try to:
    Clear Session Data
    Delete JSP Class Cache Files
    using the Session Data link under Admin Server GUI Java tab
    Hope it helps!

  • Servlet session persistance within iAS 6.0 SP3

    Hi,
    Is it possible to provide failover for servlets, keeping session
    persistance, between 2 iAS in a cluster?
    What I trying to do is to use the iAS to provide me redundancy for an
    application that is 100% based on Servlets and JSP (no EJBs). Is this
    possible?
    Marcelo Manta
    Barcelona Technology Center
    [email protected]
    phone: +34 67 699-5921 (ESN 746)

    Hi Manta,
    Yes, it is very well possible with iAS.
    If your application is already deployed than to make that distributed so
    that both the iAS(Primary and Backup) will store the sesson information,
    you need to change few entries of your application in the registry of
    both iAS, these are -
    - run kregedit
    - go to iplanet/Application Server/6.0/J2EE-Module/<App_name> node
    than
    - insert your domain name value in session-domain key.
    - modify the session-impl key value to distributed.
    - insert the session-path key value as / (slash)
    - ensure that the key session-dsync-type is dsync-distributed
    at the end, your key values should look like this -
    - session-domain=your.domain.name
    - session-dsync-type=dsync-distributed
    - session-impl=distributed
    - session-path=/
    Note: you should make these changes in the registry of all the iAS
    servers that are participating in your cluster, or you can redeloy the
    Application on all the servers, with appripriate deployment descriptor.
    Than restart the two web servers(iws) and the two iAS servers in the
    cluster.
    Note: start the highest priority server(Primary) first.
    The clustering and the distributed session failover can be better seen
    through the clustering-examples/samples provided with iAS, like
    clustering-servlet and clustering-jsp.
    Please see the page:
    http://<hostname.domainname>:<http-port>/ias-samples
    for all the sample applications that comes with iAS and
    http://<hostname.domainname>:<http-port>/ias-samples/cluster/docs/index.html
    for cluster related sample application.
    Please feel free to mail me if you have any further queries.
    Sanjeev,
    Developer Support Group iAS
    "Manta, Marcelo [BLMES:0B70:EXCH]" wrote:
    Hi,
    Is it possible to provide failover for servlets, keeping session
    persistance, between 2 iAS in a cluster?
    What I trying to do is to use the iAS to provide me redundancy for an
    application that is 100% based on Servlets and JSP (no EJBs). Is this
    possible?
    Marcelo Manta
    Barcelona Technology Center
    [email protected]
    phone: +34 67 699-5921 (ESN 746)

  • Sessions persist even after logout?

    Another problem I am having is that sessions seems to persist even after the portal user has logged out. When I log back in, some settings (which I configured in the previous session) are still set - but I want it reset to the default state.
    It holds the session for 1800 seconds (30 minutes) of inactivity before it will clear it... Documentation I read says that the session should be cleared when the user is logged out, but that doesn't seem to be the case.
    Suggestions as to what I might be doing incorrectly?
    Thanks,
    - Nick

    Interesting - I didn't know about that (I'm light on the Admin skills of Oracle Portal)...
    My logout behaviour is indeed set to "Logout closes both the Login Server application and Single Sign-On sessions" - the single sign-on session duration is 24 hours (but I am not sure it matters).
    Something else unusual about the portlet behaviour:
    One page I have that has 3 portlets on it (this is a navigation portlet, which remembers your last selected location) - when I logout, that session is cleared (or seems to be)
    On the another page I have 2 portlets on it and when I logout, that session is NOT cleared...
    Page caching is turned off in both my browser and in Oracle Portal, my portlet has a call to setPageExpires(0)...
    The code specifically is:
    // get the current session
    ProviderSession session = pr.getSession();
    // determine the unique parameter to save in the session
    String pathURL = PortletRendererUtil.portletParameter( pr.getPortletReference(), "url" );
    // get the previous value saved (if there is one)
    currentURL = (String) session.getAttribute(pathURL);
    // save the new URL
    session.setAttribute(pathURL, newURL);

  • Error at tomcat starting :IOException  while loading persisted session. : j

    I am gettin error when tomact starts.error is like this "IOException while loading persisted session. : java.io.writeabortedexception.;writing aborted;java.io.Notserializable exception.
    what is this error .I think it is due to session scope of bean.what care shold be taken if you are using session scope.please help me;
    thanks

    To where are you persisting your sessions? If you don't care about session persistance, try making this change in your server.xml.
    <Context path="/myApp" reloadable="true" docBase="myApp" workDir="C:\myApp\\work\org\apache\jsp" >
    <Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false"/>
    </Context>I got this from http://forum.java.sun.com/thread.jspa?threadID=575302&messageID=2871444
    Check it! Bo!

  • Cisco Loadblancer session persistent settings

    Cisco CSS11503, Version: sg0820501 (08.20.5.01), box-to-box redundancy
    Issue - We have the problem that after a short while the agent didn’t have a persistent session and gets the message that there is no connection to the server and that he has to close the application. This only happens when they log in to our load balancer http://egainagent/default. If we use a direct connection to the app servers we can work on normally.
    Could you please help me with setting which needs to be enabled on F5 to resolve this issue. Any document or screenshots.
    Thanks in advance.
    Regards,
    Gaurav Thakur.

    What I'd like to maintain are application-specific values, such as the primary key of the selected record, user preferences, etc. (Nothing that Oracle stores in views, unfortunately.) What I'm envisioning is some sort of java class that holds the values, and is maintained by the business tier for the duration of the user's session. Values will change during the session, but once the session is terminated, the values must be flushed to the database and then restored when the user logs in next. What I don't know how to do is how to implement this in the business tier. Is it possible to maintain variables like this and associate them with a specific user? Are there any example apps out there that do that? Alternatively, is there a better way to do this that I haven't thought of?

  • TS3171 IO'S and bus names keep changing from session to session

    My IO'S keep changing there names back to original factory names after I change names on bus and input output they do not save from session to session .i am in 9.21 ver and using lion any help would be great

    To recap (correct me if I'm wrong), two things have to happen for session sharing to work: 1. the session must be passed in a cookie (the same cookie used by appls sharing the session), and 2. the appls must use the same authentication.One solution is for both/all participating applications to use an authentication scheme based on our built-in session management mechanisms that use a cookie in conjunction with our internal sessions table. The schemes may differ in most other repects, e.g., one might use LDAP and the other your own user tables to authenticate. N.B., the no-authentication (DATABASE) scheme does not use a cookie. Another solution is for you to implement your own session management infrastructure. With that, the only constraint on session sharing between applications is that a) the applications must belong to the same workspace, and b) sessions already "registered" in the internal sessions table with an authenticated username may not be used by a different authenticated user.
    Optionally, if you want either of the appls to have public access you make the pages public.Yes.
    Scott

  • ALLOWED Cookies Exception List does not retain entries from session to session.

    YES, I've searched the KB for an answer...no joy. I want to manage my cookies by adding the few sites that I want to allow cookies for, with all other sites being denied, and me being prompted every time a site wants to dnld a cookie. I believe I understand all the available settings, but I can't bet FF to retain the list of allowed sites from session to session, and sometimes FF won't retain them even immediately after I save them. I never had a problem with FF3, but now I'm having this problem with FF4.

    Issue unsolved. Hoping to receive deeper analysis.
    Thank you cor-el, that's a good suggestion, but, something I already knew. I didn't execute Clear Recent History...Clear Recent History is NOT the cause of the problem.
    Additional Information: In Options\Privacy\History my settings are: "Use custom settings for history", Permanent Private Browsing mode = ON, Accept cookies from sites = OFF. Should I expect to be able to click on the Exceptions button, and enter urls into the exceptions pop up window as ALLOW, and expect them to be there in subsequent FF sessions? I've noticed that the Exceptions pop up window does not have an "OK" button as I would expect from observed FF convention...should there be one? After entering a url, my only choice is a "Close" button or the Red "X".
    Follow on question: Is it possible that a data error occurred during install, preventing an applet from loading correctly, which would prevent the retention of list entries into the permissions.sqlite file? My permissions.sqlite file is located where the KB says it should be, shows a size of 2K, and a Date Modified of today. Note: I have continued to try to enter and save urls into the Exceptions List with an ALLOW value with no success.
    Or, perhaps I should migrate back to FF 3.xx?

  • How do you release the session in session method?

    how do you release the session in session method
    Title was edited by:
            Alvaro Tejada Galindo

    Go to SM35, select the session and click the process button.
    Thanks,

  • OC4J, Stateful Session EJB, & Session Timeout

    In my J2EE applications, I have a user authentication layer whereby when the user is authenticated against our LDAP repository after logging in, a Stateful Session EJB keeps that conversational state with the client at all times until the user logs out whereby the session is invalidated. This way I keep track of the user's authentication at all times throughout the whole session and for every operation performed (JSPs etc) by the user during the session. All this works fine through my implementation of the Session Facade and Business Delegate patterns.
    However, if OC4J times out the Session (set to one hour in the <session-config> <session-timeout> parameter of the web.xml), the user cannot re-login and proceed. The user has to close the whole browser and re-start a new browser, then login and proceed.
    This is causing us a few problems with the users who are complaining about having to do so. Is there an easy way around this problem?
    Regards
    Daniel

    Can you try in a different browser and see whether you can duplicate this ?
    Is this a problem with browser - cache ?
    regards
    debu

  • Oracle.odi.runtime.agent.invocation.InvocationException: ODI-1221: Unable to restart session 5002: session is not found in work repository WORKREP1

    Hi,
    I ran a scenario in ODI 11.1.1.5 and got the following error:
    oracle.odi.runtime.agent.invocation.InvocationException: ODI-1221: Unable to restart session 5002: session is not found in work repository WORKREP

    It could be the due to issue mentioned in support note
    ODI-1221 Error When Executing Interface Or Package To Standalone Agent Running on OPMN (Doc ID 1482516.1)

Maybe you are looking for

  • IPod touch and mail syncing

    I thought I saw a video on Apple's site showing that you could organize mail on the touch and it would show those changes on your computer. For example, if I delete a message on the touch, it will be deleted on my computer. Is this possible? It seems

  • Apple TV no showing up

    I have home sharing on all of my devices, all are logged into the same address but no option to play to apple tv is apparent. It reads my music fine but I can not play a tv show from either my Mac or ipad following a recent update .... help where is

  • HT1222 Ipad2 losses cell connection now that iOS 8 was installed.  Ios 8.0.2 did NOT correct the issue. Come on and fix this issue!

    Ipad2 losses cell connection now that iOS 8 was installed.  Ios 8.0.2 did NOT correct the issue. Come on and fix this issue!

  • Selection based on list

    i have a master detail form , on the header i want to add pop list for each of the fields in detail block ,  In the detail block i have three fields emp_code,emp_name,job_title, i want to add pop list on each of these three fields based on the select

  • Help with 6500S and ringtones

    I have downloaded 2 ringtones to my phone but I can only set them as the main ringing tone, I was to set one of them to one of my groups but they don't appear in my ringtone selection when I go to change the group ring tone, can someone help they are