Session synchronization

I am having a problem with my users clicking on a link which kicks off
          a database intensive task. The user then gets frustrated if the
          response is not back right away and they click on the link again and
          again and again kicking off this database intensive task each time.
          My question is, can I stop this behaviour by simply doing:
          synchronize session { do database task } ?? Will this work or is
          there a better way to do this? I've been told that some applications
          will display an hour glass after a link is clicked but I don't know
          how to do this. Any help would be greatly appreciated.
          

In addition to Dimitri's note, you can store the fact that an active request
          is occurring for the user in the HTTP session object, and label that task
          such that subsequent requests can return the same answer (i.e. "still
          working") and will not start another process. Upon completion, the same
          request would show the result.
          Peace,
          Cameron Purdy
          Tangosol, Inc.
          http://www.tangosol.com
          Tangosol Server: Enabling enterprise application customization
          "housecube" <[email protected]> wrote in message
          news:[email protected]..
          > I am having a problem with my users clicking on a link which kicks off
          > a database intensive task. The user then gets frustrated if the
          > response is not back right away and they click on the link again and
          > again and again kicking off this database intensive task each time.
          > My question is, can I stop this behaviour by simply doing:
          > synchronize session { do database task } ?? Will this work or is
          > there a better way to do this? I've been told that some applications
          > will display an hour glass after a link is clicked but I don't know
          > how to do this. Any help would be greatly appreciated.
          

Similar Messages

  • Tomcat / Glassfish Session Synchronization and JAAS

    Hi there!
    How does session synchronzation between Tomcat and Glassfish work?
    For example, if there are two users at the same time, each one has it's own webserver session and both are working on the same stateful java bean (e.g. a simple shop cart), how are both sessions - the webserver and application server session - synchronized? Any form of synchronization has to take place, otherwise a cart bean would be senseless, as there were unwanted interactions between both clients. Are there any hidden tokens that are send via JNDI Lookup?
    It's the same with JAAS: If there's a programmatic login on the application server, how does the application memorize the user's privileges and principal, in particular if there's a server cluster? Is there intern a simple stateful bean? And how does the mapping between websession and application server session work? Is it really reliable?
    Hope you can help me. It's quite hard to find detailed and solid documentation concerning this topic.
    Thanks!

    Hi,
    Can you provide a solution that does not include JSTL, as I can not use this technology as it is not in scope for the DEV environment defined for these projects I am working on.
    regards,
    Pravash

  • Session Synchronization with two EAR files

    Hi,
    We have 2 web applications (Portal , BI reports) packaged into two separate EAR file and deployed it on the same server. User login to portal and click a link to see a report. Reports open in a new window.
    Now we have 2 active httpsessions. One for portal and another one for reports. The problem we are facing is when the user logs out of portal we wanted to clear out the reports session also ? What is the best way to achieve this?
    The approach i tried was to use HttpClient utility to pass a GET request to reports servlet to kill the session. But this didnt work because portal is unaware of reports session id.
    Any help is highly appreciated.

    Maybe you shouldn't use HttpSessions but should use a different mechanism to track sessions. The OReilly site has an article on pseudo-sessions that might help.

  • URGENT-Session Synchronization between WebSEAL and WebLogic Server 6.1

    Hi All,
    I am a new-bee to Access Manager and WebSEAL.
    I have an application running in WebLogic Server6.1.
    I have WebSEAL junctioned to iPlanet Web Server, which in turn
    integrates with WebLogic through NSAPI plug-in. I am using iPlanet
    Directory Server as Access Manager user registry.
    As per my application requirement there should be single sign on, that
    is if the user gets authenticated with WebSEAL, he need not have to
    login to the application and would be able to access any page. But if
    he logs off the application and if he tries to access any page then he
    need to again get authenticated with the WebSEAL. Here I am having a
    problem.
    I am not able to make the WebSEAL to through HTTP authentication
    challenge again if the user logs off the application. The only way to
    make webSEAL to through HTTP authentication challenge in the browser
    is to close and open the browser.
    I initially tried with BASIC authentication, it does not work.
    Then I tried with FORM authentication. In this case webSEAL sets a
    cookie called PD-H-SESSION-ID. When the user clicks the "Logoff" link
    in the application, I tried to set this cookie's max age to zero, it
    does not work. The max age is always set to -1 value. I even tried to
    overwrite the cookie value with blank space using HttpServletResponse
    setHeader method, which also didnot work.
    Can anybody tell me how to make the webSEAL to through the
    authentication challenge when the user logs off the application and
    what kind of authentication method (BASIC or FORM) to use?
    This is very urgent. Pls help?
    Thanks in advance.
    Regards
    Sundar.

    Hi All,
    I am a new-bee to Access Manager and WebSEAL.
    I have an application running in WebLogic Server6.1.
    I have WebSEAL junctioned to iPlanet Web Server, which in turn
    integrates with WebLogic through NSAPI plug-in. I am using iPlanet
    Directory Server as Access Manager user registry.
    As per my application requirement there should be single sign on, that
    is if the user gets authenticated with WebSEAL, he need not have to
    login to the application and would be able to access any page. But if
    he logs off the application and if he tries to access any page then he
    need to again get authenticated with the WebSEAL. Here I am having a
    problem.
    I am not able to make the WebSEAL to through HTTP authentication
    challenge again if the user logs off the application. The only way to
    make webSEAL to through HTTP authentication challenge in the browser
    is to close and open the browser.
    I initially tried with BASIC authentication, it does not work.
    Then I tried with FORM authentication. In this case webSEAL sets a
    cookie called PD-H-SESSION-ID. When the user clicks the "Logoff" link
    in the application, I tried to set this cookie's max age to zero, it
    does not work. The max age is always set to -1 value. I even tried to
    overwrite the cookie value with blank space using HttpServletResponse
    setHeader method, which also didnot work.
    Can anybody tell me how to make the webSEAL to through the
    authentication challenge when the user logs off the application and
    what kind of authentication method (BASIC or FORM) to use?
    This is very urgent. Pls help?
    Thanks in advance.
    Regards
    Sundar.

  • Strategies on implementing session synchronization from different browser

    I need some ideas on how to implement singleton pattern to track for existing user session upon successful authentication? If a user logs in from one machine and then from another, the newer session should be used while the older one is invalidated. Can anyone provide me with some documentation or ideas on how to accomplish this?
    thanks,
    Wes

    Hi,
    what about setting a cookie to the user browser? If the cookie indicates a different session ID than what is read in the session, close the current session. Upon application start (user authentication) you set the cookie to the current session ID
    Frank

  • CSM: Long distance session synchronization

    Hi,
    What is the upper distance limit between two CSM when we configure "replicate csrp connection" ?
    Thank you
    Yves Haemmerli

    Hi,
    What is the upper distance limit between two CSM when we configure "replicate csrp connection" ?
    Thank you
    Yves Haemmerli

  • Can iPS sessions be synchronized across platform server?

    We are using two platform servers, ps1 and ps2, which are running on two different servers. However, they share a single profile server.
    The site content is served by IIS servers. We would like to add Logout link pointing to "logout" servlet on platform server.
    My belief is that iPS doesn't sychronize sessions across platform servers. Hence, we need to pass on the Platform server name to Content Server (in this case, IIS server) so that the link can be dynamically configured.
    If my assumption is wrong, can you please tell me how the logout URL looks like. I tried <gateway server>/logout. It doesn't work

    To add the logout button try something like this if you are using the gateway
    https://gateway/http://server:8080/DesktopServlet?action=logout
    This should logout the user.
    IF you not using the gateway then it should be http://server:8080/DesktopServlet?action=logout
    The sessions are not synchronized across all platform servers. Sp3Hp2 allows you to have multiple profile servers but still there won't be session synchronization, however it will session information sharing.
    You can login server1.red.iplanet.com and then server2.red.iplanet.com and still get the same session without having to relogin.
    HTH ..

  • Custom object to paint

    hi ,
    i need to paint a special object on canvas. this object must look like rectangle with some text or image inside . i looked in Graphics class but didn't find what i want.
    how can i specify this object?
    thank you in advance

    Hi Hans,
    In order to successfully round-trip MessageItems which are strongly-typed
    classes, you need to call MessageItem.registerBodyClass(PlayerData) - call
    this just once as the session synchronizes, and it will remember that this
    class should be preserved. If PlayerData contains any other classes (other
    than the plain player classes like String, etc), then register those as
    well.
    However, this really only works when the class you've registered is at the
    top level of what you're sending - we don't introspect your objects to see
    if one of the registered classes is contained inside what you're sending.
    So, to make this work, I'd recommend adding "userId" as a property inside
    PlayerData, and sending a PlayerData object :
    PlayerDataCollection.addItem(playerData); // playerData has userID inside of
    it.
    On a semi-related note, I wonder somewhat if a customUserField might not be
    a better place to store player data? In this way, your custom playerData can
    be attached right to the UserDescriptor of each user - it will be removed
    when the player leaves, etc. Might be less management work for you. See
    UserManager.registerCustomUserField() and UserManager.setCustomUserField()
    in the API reference for more. The same registerBodyClass rules apply there.
      hope that helps.
       nigel

  • RFC synchronous concurrence

    Hi
    I have a BPM with a synchronous sender step (BAPI call). This BAPI makes a material reservation , checking previosly if the material is locked. If the material is locked I get an error , the BPM checks this error and I try again (3 times).
    My doubts:
    1- The rfc call (receiver RFC adapter) does synchronous connection??
    2- what happend with the concurrence? If I send two messages in one second why the second BPM , rfc call, does not wait to the first one to finish?? I get an error in the first call the material is locked.
        In the SXMB_MONI I see next times
            First BPM start the rfc call at 12:39:38 and finist at 12:39:42 (error material locked)
            Second BPM start the rfc call at 12:39:39 and finish at 12:39:46. This call finish OK.
    I thought the second call should wait to the first one finish.
    thanks

    Hi Gerardo,
    The synchronizity on the BAPI call is just that; Synchronous with the current session. I don't think that PI supports cross BPM session synchronizity (happy to be proven wrong).
    There are of course many ways to achieve this (not necessary elegant solutions) and I am sure that you can get some experienced forumists to provide you with samples of how they have resolved this.
    Bad sample (assuming that ABAP does not support synchronous calls):
    - Wrap the BAPI call in a synchronous Java map (assuming that all your calls run through a common classloader).
    Hope you can get some better ones coming through.

  • Simple queries on ALUI

    Hi All,
    I am newbie to AquaLogic Portal and have some queries.
    1-Do we need to worry about session synchronization of any means between the portal and tomcat?
    2-Can we validate that we do not receive any requests from users who are signed-off or session timed out on the portal server?
    Looking forward for your support.
    Thanks

    Hi Shalu,
    Q1-
    a)If you want to Print heading on the First Page ONLY then it sholud be
    in MAIN SECTION/BODY olny.(Fields Property- Print OBject On- Should be
    First Page).
    b)Bottom-Right of the MARGIN Section.
    c)if Report Heading is in Main Section then in the layouts Main Frame,
    inside that you can keep (Field titles/labels).
    Q2- Go to Report Wizard try these two Report Style(Group Above and Group Left)
    i think this will solve your Problem...
    Q3- I thinnnnnnnk this is not possible.
    Q4- You can use Trailer Section of the Report.
    Regards,
    Ravi

  • SetSessionContext  Question

    Hi
    Please help me get clarified on ..
    1. what is the purpose of setSessionContext....
    2. why does the container call this method on a bean ?
    3. For stateless session bean does container calling this method makes any sense.
    1. what is SessionSynchronization . Any place to find the exact nature of its usage for the ejbs (documentation).
    Thanx.

    hi,
    stateful session beans maintan the data temperaly i.e as long as the client is communicating with the server.
    In order to maintain the state permanently u need to store in database. In order to maintain the syschronization between the values in the database and the values in the memory your bean must implement session synchronization interface.
    If suppose your bean is participating in any transaction , beacause of which the state is changed and if the transaction is successful then only the data must be commited or else you need to say rollback so you have to retain the old values in your bean state. That is possible only when you implement session synchronization interface. The mehtods of interface are responsible for that.

  • What I have to do because when I want to automatically synchronize a tone, even 5 seconds pass and tells me that the session was unable to synchronize?

    I do because when I want to automatically synchronize a tone, even 5 seconds pass and tells me that the session was unable to synchronize

    Hi Jen.  My daughter just compleated her nursing program and is now working as a full time nurse.  Focus and study hard and soon you will be there too.  Now to the problem at hand.  I have the same problem.  I gave up on it and satisfied myself with my iPod without the upgrade.  Reason being I've read so many posts of people having problems after the upgrade.  But I'm sure other factors are involved.  Nevertheless here is the fix most say works to solve the problem:  What ever virus protection you have installed on your computer, disable it.  Then try to install the update. After that enable the protection. I had Kaspersky, and it does it's job well. The thinking is, the virus protection is blocking the upgrade.  Hope this works.   Charlie

  • How i can start session to synchronize my ipod touch 5g in Itunes?

    I can't synchronize my ipod touch 5g because when it start synchronizing Itunes tell me that I have to start session of synchronization.

    you can't.  that' the last OS for that version of iPod.  buy a new one

  • Hanging synchronization sessions

    We just have another problem - 2 users are facing "server busy" message when trying to synchronize using MSync. I just found out that there are some hanging sync sessions which are probably blocking the synchronization (their duration is few thousand seconds and I'm not able to kill them from mobile server). I restarted the OL server so the freezing sync sessions were killed, but when users try to synchronize after the restart, the result is the same - they get "server busy" message and their sessions remain in the active sessions list forever.
    The server is 10gR2 and the clients are both PPC2003 XScale. The In queue and error queue are empty.
    Anybody has an idea what should I try to solve this kind of problem?

    Oracle response on the SR was
    This might be due to Bug 5553375 SYNCHRONIZATION HANGS BETWEEN SENDING AND RECEIVING PHASE.
    According to the bug 5553375, this might be because of the file_size during sending and receiving phase. The default value of
    RESUME_FILE_SIZE is 16MB sync session failure might occur when it reaches this l
    imit. So suggest to increase the value to higher value. can increase slowly also
    as first use 256, if the issue occurs, can increase to 512, which is the file s
    ize
    In webtogo.ora under [CONSOLIDATOR] section set the value as RESUME_FILE_SIZE=256 (or 512).
    After changing restart the mobileserver.
    Enable tracing in both server and client as below
    At the Server :
    1. Stop the server.
    2. Set trace level ALL and trace type RESUME for the Global and the Sync
    components in webtogo.ora. Other component logs can disabled.
    e.g.
    GLOBALLogger=TRACE_LEVEL=ALL|TRACE_TYPE=RESUME|TRACE_DESTINATION=TEXTFILE|TRAC
    E_FILE_SIZE=15
    SYNCLogger=TRACE_LEVEL=ALL|TRACE_TYPE=RESUME|TRACE_DESTINATION=TEXTFILE|TRACE_
    FILE_SIZE=15
    3. Start the Mobile server
    4. When the problem is reproduced, collect the following :-
    - err.log
    - log files under GLOBAL
    - log files under SYNC
    - details for the sync session as shown by the Mobile Manager. the
    Compressed Byte count. (this session shows a success on the server side)
    At the Client:
    1. set debug=1 in polite.ini under the [SYNC] section
    2. When the error occurs, upload the following files
    - timeout_err.txt
    - debug*.txt
    Please note that the timeout_err.txt file will be created only if there were any errors during the receive phase.
    Apart from this, for your information, one of the customer had similar issue and was resolved when they upgraded RDBM
    S from 102020 to 102030.
    Hence, let me know the possibility of upgrading the database.
    this suggests that there may be a limiting factor on the file transfer (did not help in terms of our problem, burt since we fixed the PDA hanging by a re-build, i do not have a case to trace at the moment)
    We have found that sessions hanging on upload are always hanging on C$SEQ_CLIENTS_PI, so pretty sure it is client side corruption/bug
    on download the problem tends to be a disconnect, in which case the server session finishes, but the client hangs (as it has not recieved an end message) - we deal with that via comms timeout. In most cases the large the download, the more likely failure, but this seems more related to server side query time to select the data for streaming to the client, rather than the actual volume of the data

  • Do I need to Synchronize session connection??

    I am working on a project in which requires sending out emails.
    Multiple users may send out emails at the same time by using same email account and session. Question is do I need to synchronize this or just let mail server handle this concurrency. Or session's getDefaultsession method have already considered this? Looking forward to your answer!! Best regards,

    Multiple users may send out emails at the same time by using
    same email account and session.Don't do that. Each thread should have its own session. Otherwise you'll have chaos. Sure, you could synchronize so the threads take turns using a single session, but if you do that there isn't much point in having separate threads, since 99% of the time they will be lining up to use the session.
    However if those "users" are running in separate JVMs, perhaps even on separate computers, then the question doesn't arise. They would automatically have their own sessions.

Maybe you are looking for

  • Vendor CIN details

    Is there any std report to get vendor details like vendor no, PAN, Tax paid ?

  • Too low initial heap size

    Hi, Any idea why following line is giving too low initial heap size error in server startup. $JAVA_HOME/bin/java $JAVA_VM -XX:NewSize=256m -XX:MaxNewSize=256m -XX:SurvivorRatio=6 -Xms2048m -Xmx2048m -Xrs -verbose:gc This error is coming when I am add

  • The apps wont install in my ipod touch 5th gen

    the apps wont install in my ipod touch 5th gen, it says 'will install' but it wont. i downloaded it through itunes in my pc. and the files doesnt sync. help

  • Charts: Excel vs. HTML DB

    Looking at material like http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=390 and in general http://peltiertech.com/Excel/Charts/ one realizes that Excel's charting feature are light years ahead of anything else out there in the market. T

  • It's working ...

    With all the complaining or um ... noting difficulties in working with this software ... I thought I might just post a note here that instead of pointing out a problem pointed out that for the last few days I haven't had a problem with any Adobe soft