Using JDBC Persistent Manager for Tomcat across multiple Servers

Sorry if I word this question incorrectly, but I hope you can get the gist of it. Basically, I have a web application that will be running on 2 different machines. When too many users are on one machine, they are switched over to another machine (load balancing). If I use JDBC (or file) Persistance Manager to store sessions, what happens when a user is switched between machines? If both machines use the same settings for the Persistance Manager, when a user has just been moved to a new machine, will it be able to load the session from the DB? (since it should have its sessionID). If you can not do this, is there a way to do it?
Thanks!

Sorry if I word this question incorrectly, but I hope
you can get the gist of it. Basically, I have a web
application that will be running on 2 different
machines. When too many users are on one machine,
they are switched over to another machine (load
balancing). If I use JDBC (or file) Persistance
Manager to store sessions, what happens when a user is
switched between machines? If both machines use the
same settings for the Persistance Manager, when a user
has just been moved to a new machine, will it be able
to load the session from the DB? (since it should
have its sessionID). If you can not do this, is
there a way to do it?
Thanks!Session ids are unique and cannot be transferred between different servers... Wise web servers supports load balancing and should be able to transfer/store session without your special code. If you still keen to write transfer code yourself you have to:
1) Store not only session id, but also all content of session (including some virtual (your) session id
2) Transfer (i.e. create a copy) stored session content to another machine
Paul

Similar Messages

  • [svn] 1605: Bug: BLZ-155 - Deadlock using a thread pool for tomcat connectors

    Revision: 1605
    Author: [email protected]
    Date: 2008-05-07 14:24:53 -0700 (Wed, 07 May 2008)
    Log Message:
    Bug: BLZ-155 - Deadlock using a thread pool for tomcat connectors
    QA: Yes - Jorge verified in the QE lab
    Doc: No
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-155
    Modified Paths:
    blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/client/EndpointPushNotifier.j ava

    Cross post: http://forum.java.sun.com/thread.jspa?threadID=5215686&tstart=0
    If you must post across forums, just post in the most relevant one and then give the link to that in the other posts.

  • JDBC Thin Driver for Tomcat 6

    I just upgraded to Tomcat 6. For older version of Tomcat I was using ojdbc14.jar and for Tomcat 6 I am still using ojdbc14.jar.
    Everything is working but wanted to know if there is a newer version of the Oracle Thin Driver for JDBC?

    There is one version per release of the database (with sometimes minor releases for bugfixes released later. which will have the same filename but different internal version numbers).
    Only exception I know of is Oracle 11 which ships with both 1.5 and 1.6 compiled drivers.

  • Could you please tell what is encryption mechanism used in Release Management for storing any password

    Could you please tell what is encryption mechanism  used in Release Management for storing any password

    Hi  y e ll e sh,
    I am trying to involve someone to further look at your question. There might be some time delay. You can also check replies for the similar question in this
    thread. Appreciate your patience and thanks for your understanding.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Can i use nokia video manager for converting video...

    Can i use nokia video manager for converting videos will this support n79

    Only be aware that Nokia video tools only work for videos that are not longer than 35 minutes.
    Also the quality is not very good, you can get better results from other encoders.
    Lastly they are Really slow compared to other tools available.
    640K Should be enough for everybody
    El_Loco Nokia Video Blog

  • Capture performance metrics across multiple servers

    Hello. I'm still very new to Powershell but anyone know of a good Powershell v.3 -4 script that can capture performance metrics across multiple servers with an emphasis on HPC (high performance computing) and gen up a helpful report, perhaps in HTML or Excel
    format?
    Closest thing I've found and used is this line of powershell:
    http://www.microsoftpro.nl/2013/11/21/powershell-performance-monitor-on-multiple-remote-computers/
    Maybe figure out a way to present that in better format, such as HTML or Excel.
    Also, if someone can suggest some performance metrics to look at with an HPC perspective. For example, if a CPU is running at 100 utilization, figure out if which cores are running high, see how many threads are queued waiting for CPU time, etc...

    As far as formatting is concerned,
    ConvertTo-HTML is a basic HTML output format, but you can spice it up as much as you like:
    http://technet.microsoft.com/en-us/library/ff730936.aspx
    Out-Grid is very functional and pretty simple:
    http://powertoe.wordpress.com/2011/09/19/out-gridview-now-has-a-passthru-parameter/
    Here's an example with Excel:
    Excel
    Worksheets Example
    This might be a good reference for HPC, I don't have access to an HPC environment so I can't offer much advice there.
    http://technet.microsoft.com/en-us/library/ff950195.aspx
    It might be better to keep unrelated questions separate, so a thread doesn't focus on one question and you lose time getting an answer to another.
    I hope this post has helped!

  • Searching for links across multiple pdf files

    We have thousands of pdf files that are being moved to a new website. Some of these pdf files have links within them (either as text or as a hyperlink). This number is unknown.
    The issue is how to programmatically search across multiple pdf files (numbering in the thousands) looking for links using a regular expression or part of a path. This will have to be able to search behind the text and search for the link url.
    We first need to identify the number of files with links and create a list of the files with links that need modifying. If the number is too great to modify manually, then we would need the ability to programmatically edit these links.
    The pdf files are stored in a database. Also, the pdf files are different versions and some are password protected.
    Is there an Adobe product that will perform this? If not, are there any 3rd party vendor products that will accomplish this?
    Thanks in advance for your help.

    I have no solution, but a thought: the database factor may seem to be
    a killer. But you could look for a solution designed to read PDF files
    from a web site (by spidering or from a list), which would presumably
    load them.
    Or could do a one off extraction of the files from the database into a
    directory and use that for your process. Probably a very good idea,
    since extracting all files from the database is likely to be costly
    and hammer the server (but can be scheduled at a sensible pace), while
    the search process will (if it is possible at all) doubtless need to
    be run countless times.
    Aandi Inston

  • How to manage sessions(IEnterpriseSession) across multiple users?

    Assuming that we are going to have only one user for our web-app to access the BO-ReportServer.
    Are we supposed to fetch the IEnterpriseSession, using the following code for every user who is trying to access the WEBI report using BO-SDK from a web application.
    CrystalEnterprise.getSessionMgr().logon
    Example:
    When User_One, logs on to the webapp start a new HttpSession and then do a CrystalEnterprise.getSessionMgr().logon
    When User_Two, logs on to the webapp start a new HttpSession and then do a CrystalEnterprise.getSessionMgr().logon
    Questions:
    1. Is this right approach
    2. If yes, So does this keep going, considering if our webapp has around 500 concurrent users then will this be scalable
    3. If no, then I wondering if the IEnterpriseSession will be threadsafe
    Confusion:
    Just confused if IEnterprise session is similiar to a datasource(for db connections which manages the connection pool) or is it more like HTTPSession, which is created for every individual user accessing the application.

    Yes total users should be around 5000, but there could be around 500 users accessing concurrently. Besides we are using to BOE to show a dashboard, with charts and graphs(using the HTMLView) so we will have to 500 concurrent IEnterprise sessions. I just hope that:
    1. Each session is unique(independent thread) although they have logged on using the same credentials
    2. The CMS server can scale upto this number(500). Don't know if there are some caching options available?

  • Wagetypes used in Travel Management for Country grouping 40 (India)

    Dear Consultants,
    May I know which model wagetypes are to be used for Travel management for country grouping 40 (India). For Country Grouping 10 (US) we have MJ10 to MJ95. I created some wagetypes & set their characteristics similar to those in MJ10 to M95 but it does not work well.
    Is there any simple process to go from Wagetypes > symbolic accounts > GL Accounts.
    Regards,
    Bindumadhav

    That's my guess, as it worked for me:
    It doesn't compile, because there's a bug in the structure of the PNP logical database.
    Payroll result structure specific to your country is not listed as a 'possible type' for LDB node 'Payroll'.
    You can correct it easily in tracaction SE36. Choose PNP, tab: 'Structure'.
    Double-click on 'PAYROLL'. Click on 'Possible types'.
    Add country-specific structure (PAYIN_RESULT).
    Tell me what happened
    PS. Be aware that this is a modification to the system and you need a key for this object.
    Message was edited by: Jacek Wojciechowski

  • Using my phone number for iMessage across 3 devices

    Hi all!
    I've been happily using iMessage on my iPhone, iPad 2 and iMac (OSX 10.8.5) for ages, until iOS 6 came out. Now, my iPad and iMac won't recognize my iPhone number to be used for iMessage.
    Briefly, the phone number showed as "verifying" in the iMac's iMessage preferences -> accounts screen, but it was greyed out and has since disappeared.
    My phone number is added to my Apple ID, I've tried to log out of all three Apple ID's (turning off iMessage and FaceTime) on all three devices, then logging back onto each starting with the iPhone, but all it does is add other email addresses I don't want associated with iMessage (even though I've deleted them) and my phone number is nowhere to be found except on my iPhone. It is the only "send and receive" option on my iPhone, and even synching my iPhone to my iMac isn't working.
    Please help!
    Sandra

    Associate your mobile number with your Apple ID, if you haven't already done so.
    Sign out of iMessage on the Mac:
    Messages ▹ Preferences ▹ Accounts ▹ Sign out
    and on the iPhone:
    Settings ▹ Messages ▹ Send & Receive ▹ Apple ID ▹ Sign out
    Then, on the phone, tap
    Use Your Apple ID for iMessage
    Sign back into iMessage on both devices and test. If there's no change, you may have to wait for a change in network conditions.
    Credit for this solution to ASC user SmittyLove and to Glenn Fleishman of tidbits.com.

  • How can I search for files on multiple servers at one time?

    When I hit command+F, and use spotlight to search for files, I'm only given the opportunity to search for those files in three places: "This Mac", "Shared", and then the server or external HD that is mounted. However, in the past I was able to check a box for all mounted/connected servers/HDs, and then do a search in all of them at the same time. I CAN'T FIND THIS OPTION IN LEOPARD AND IT IS ANNOYING ME BIG TIME.
    Hopefully there is a simple solution that I've overlooked.
    Please help!

    no

  • Using central Solution Manager for monitoring multiple customers

    Hello,
    We are working on monitoring SAP systems of several customers. For every customer we have configured central monitoring on Solution Manager system of that customer. All satellite systems are added to RZ21 and CCMS agents are configured correctly. On the Solution Manager, in RZ20 we have created a rule based monitor specific to the needs of customer, and that monitor is used for the whole landscape of every customer.
    But now I need to configure our central Solution Manager system which will collect CCMS data from all satellite systems of all customers on one place in RZ20. That central Solution Manager system should have direct connection only to customer Solution Manager systems and not to their satellite systems. Is this possible? If yes, can you please explain me how to do it or point me to documentation? I was unable to find solution.
    To make this more clear I made a picture of desired configuration:
    https://picasaweb.google.com/108686894540363563900/SAP#slideshow/5571983242527848482
    Edited by: Dejan Terzic on Feb 10, 2011 10:04 AM

    Hi Dejan,
    as far as I know this is not possible.
    we had similar issues, every time we migrated a new customer to or datacenter. Our solution was, to register the CCMS agents to two systems for a period of migration.
    Sometime ago, I found a question for that an SDN:
    Using another CEN for Solution Manager
    I know, that this is not your question exactly, but it is the right direction...
    Kind regards

  • Comprehensive integration approach for photos across multiple computers?

    Hi All--
    I've been wading through the discussion boards and have multiple partial pieces of info. However, I am looking for a state-of-the-art solution to an old problem because I want to integrate all of my photos onto a single drive and (probably) library from several sources (different computers). Many may have redundant images between them. Some of my key questions are:
    1) Is there any software out there that could (in a batch mode) look for and group photos with identical or highly similar content based on the image data itself (not file name) and allow side-by-side comparison to reduce redundancy and do an initial sort before import? It seems daunting to just put all files in one spot to try to compare manually. Do Aperture or PS offer anything liker this capability?
    2) Assuming >10,000 images, is it better to have a single library; or to move between, say "work" and "personal" libraries? Is such moving between libraries readily practicable in iPhoto 06?
    3) Will I ultimately want to organize all of my photos into one location and then do a single, massive import into iPhoto for best library organization, or is there a better way?
    4) After all of this consolidation, if I use default iPhoto library organization, I will e.g. have shots from year 2000 named as rolls from 2006, etc. Is it worth the effort of trying to create a better file organization, or just rely on accessing the massive iPhoto library and creating albums and smart albums?
    5) I am willing to dedicate significant time and effort now to do this correctly once, not looking for a quick-fix. I need a solid strategy to begin with. How do I get well-organized after getting out of the blocks in such a sloppy fashion? What is current "best-practice"?
    6) For future security, can I rely on Retrospect or the new upcoming backup systems, or should I back up image libraries separately?
    Looking for some sound advice to get this moving over the holidays. Your help will be appreciated. Sportscarbill

    Bill
    1) Is there any software out there that could (in a batch mode) look for and group photos with identical or highly similar content based on the image data itself (not file name) and allow side-by-side comparison to reduce redundancy and do an initial sort before import? It seems daunting to just put all files in one spot to try to compare manually. Do Aperture or PS offer anything liker this capability?
    Try iPhoto Library Manager to merge the various libraries. It's a shareware ($20) and you can read about it here.
    http://homepage.mac.com/bwebster/iphotolibrarymanager.html
    For Duplicates, check out Duplicate Annihilator :
    http://www.brattoo.com/propaganda/index.php?action=software
    But in the end, the only way to be sure is to look. AFAIK neither PS or Aperture offer anything to help.
    2) Assuming >10,000 images, is it better to have a single library; or to move between, say "work" and "personal" libraries? Is such moving between libraries readily practicable in iPhoto 06?
    That's up to you, but remember that you can only have one library open at a time. My library is 10k + on an iMac G5, i gig of RAM with no difficulty. However, choosing between libraries is as simple as holding down the option (or alt) key at launch. Moving shots between libraries means either merging or exporting from one and importing to the other.
    3) Will I ultimately want to organize all of my photos into one location and then do a single, massive import into iPhoto for best library organization, or is there a better way?
    Do it piecemeal. You'll learn along the way and improve your workflow as you learn. Start with the smallest batch too.
    4) After all of this consolidation, if I use default iPhoto library organization, I will e.g. have shots from year 2000 named as rolls from 2006, etc. Is it worth the effort of trying to create a better file organization, or just rely on accessing the massive iPhoto library and creating albums and smart albums?
    If you have a large library, I strongly suggest that you use all the filing tools that iPhoto offers: Rolls, Albums, Smart Albums, Folders and keywords. It's a database: what you get out of it depends on what you put into it.
    5) I am willing to dedicate significant time and effort now to do this correctly once, not looking for a quick-fix. I need a solid strategy to begin with. How do I get well-organized after getting out of the blocks in such a sloppy fashion? What is current "best-practice"?
    See my answer to 4, above. But here's a suggestion: Organise yourself with date-based albums:
    Folder: Year 2000, inside albums for Jan, Feb, Mar etc.
    When you've done that, you can go back and keyword according to location, people, events so you can then quickly develop albums by date, Smart Albums by date, location and people and any compound thereof. Keywording makes searching very easy.
    6) For future security, can I rely on Retrospect or the new upcoming backup systems, or should I back up image libraries separately?
    The pics are stored in the iPhoto Library Folder which is at Home/Pictures. Back up this folder and you'll preserve the pics, organisation, keywords etc. However: It is strongly advised that you do not move, change or in anyway alter things in the iPhoto Library Folder as this can cause the application to fail and even lead to data loss
    Inside the iPhoto Library Folder is the library6.iPhoto file. Make a copy of that file as protection against database corruption.
    Hope that helps. If you've any more questions, post away.
    Regards
    TD
    MacBook Pro 15 2.16gig / iMac G5 20   Mac OS X (10.4)   2 gig RAM/ 1 gig RAM

  • Using jdbc with oracle-for-win95

    i am using oracle thin driver to connect my java code with oracleforwin95 i think it is called as personal oracle, while getting conection DriverManager.getConection("drivername@host:port(1521):sid","user","password") there is no sid for oracleforwin95 if i keep it blank i get an error connection refused some thing like that even i cannot use dsn for connection what is the problem should i use another driver if yes which one it is and from where it can be downloaded, or should i need to configure my oracle. please help me.

    This is my code given below
    import java.sql.*;
    public class Oconnection
         Connection conn;
         Statement st;
         PreparedStatement pst,pstissue,pstret,pstbook;
         public Oconnection()
              try
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","system","manager");
              catch(Exception ex)
                   System.out.println(ex.getMessage());
                   ex.printStackTrace();
         public static void main(String args[])
              new Oconnection();
    *****************************************************8
    Error
    C:\Library>java Oconnection
    Io exception: The Network Adapter could not establish the connection
    java.sql.SQLException: Io exception: The Network Adapter could not establish the
    connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:169)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:211)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:324)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:266)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at Oconnection.<init>(Oconnection.java:17)
    at Oconnection.main(Oconnection.java:39)
    I am using Oracle for win95 or i think it is oarcleforwin98 .
    The sid of my database i found through query given by you was orcl, what changes soulh i do int he code so that it works.

  • Use SSO resource for 10gReports across two servers

    We currently have installed oracle10g suite on a server which has 10ginfra,10gas and 10greports.
    We are able to generate reports without passing the Username Password to the request by creating an SSO resource.
    We now have a requirement to move 10greports to a new server and have the Portal on the existing server. Is there any means by which the Portal User can use the fire reports, which inturn can use the SSO resource defined on the Portal Server.
    Basically the requirement is to decouple Portal and Reports Server across machines and yet be able to use SSO resource to get DB User credentials for generation of reports.
    Pls Help.

    There is no problem if you keep same SericeAccount for 2 Env.
    In Cluster Env configuration would be same no extra effort, configuration is tomcat dependent not CMS or Processing Server dependent.
    Encryption is by default RC4 in 3.1 and 4.1

Maybe you are looking for

  • How do I use a button within a movieclip to go to the root?

    Hi there, I am new to flash and AS3 and need some help getting my buttons to work. I made a script for the file that i am working with that has buttons located within 2 movieclips. I want that button to load and image into a UILoader (problemLoader_m

  • Dynamically Calling a built-in API Class

    Ok... Scenario: I'd like to pick between an internal pdf viewer and an external using the java.awt.Desktop class. Unfortunately, for development purposes, I need the code to compile on Java 1.5 (1.5 doesn't have java.awt.Desktop) Eventually we'll mov

  • VA42 user exit to update contract start and end dates at header

    Hi. My requirement : In VA42, if a user changes a contract end date at item level, I want the change to be reflected at header level automatically. I have looked in MV45AFZZ, USEREXIT_SAVE_DOCUMENT and USEREXIT_SAVE_DOCUMENT_PREPARE. I am unable to a

  • Calendar Application System Configuration Assistant failed

    Hi I'm a newbit to OCS and have been trying to installl OCS 10.1.2 on Red Hat ES4 on a HP DL385 box - 6 GB and got stuck at the Calendar Application System Configuration Assistant part. Retried it several times, both in Basic or Advanced installation

  • Restoring iTunes to new MacBook

    I have all my music on my old iBook, G4, and have been backing it up using "backup" to an external HD. I would like to add my entire iTunes library to my new MacBook, but couldn't figure out how to 'restore' into the new iTunes. I've heard that the o