How to share HttpSession between different web application ?

I have two web application ( ie two different war files), I discovered that the jsp in the two war files are not able to share the HttpSession, may I know how to you share the HttpSession between two different web application ?

From the api doc:
"Session information is scoped only to the current web application (ServletContext), so information stored in one context will not be directly visible in another."
You can not share a Session object between web apps. You can create your own sessions using a database, textfile or hashmap. Do a search on the O'Rielly web site for psuedo-sessions.

Similar Messages

  • HT1203 iTunes: How to share music between different accounts on a single computer - I tried to use the instructions to configure 2 different windows users sharing the same iTunes library.  I could not get this to work per the instructions.

    I tried to configure 2 windows users accounts using a single library per the instructions in HT1203.  My iTunes library is on an external drive.  I cannot get this to work.  Any suggestions?

    To give other users read-only access to your iTunes library, use the Sharing features of iTunes. Sharing works over the local network as well as on the same computer. See the built-in help for details.
    If you want to give full read/write access to more than one user, see the support article linked below.
    iTunes: How to share music between different accounts on a single computer
    There is a way to share the library without moving it to a secondary volume. If you really need to do that, ask for instructions.

  • How to share music between different accounts on a single computer

    I am trying to share music on my Mac between two different iTunes accounts.  Can this be done?

    iTunes: How to share music between different accounts on a single computer - http://support.apple.com/kb/HT1203 - relocating iTunes' media folder to a shared area but leaving separate library files - extra tip at https://discussions.apple.com/message/17331189

  • HT1203 i have tried this 6+ times to "How to share music between different accounts on a single computer" on my wifes mac and can not get it to work!! On my PC no problem but on the MAC it will not work, follow the instructions to the T but no go????

    i have tried this 6+ times to "How to share music between different accounts on a single computer" on my wifes mac and can not get it to work!! On my PC no problem but on the MAC it will not work, follow the instructions to the T but no go????

    It is almost as if the program does not exist on my computer. If I search for it, the only thing that comes up is the installer. I cannot find it anywhere despite the fact I have installed it numerous times, uninstalled it and conducted a fresh install, and the Adobe website checks says that it is installed.

  • How to share memory between different VMs?

    Hi, dear all!
    I don't know if it is possible to share memory between different VMs. I know its easy for threads. Now my problem is that I want to start serveral applications which share only one copy of data, I don't know what's the right way to do that.
    Thanx

    They are some volume data for visualization. I want to
    serveral rendering servers on a single machine, the
    data size can be up to 1024*1024*1024 ( or even larger
    I don't know if I HAVE TO use threads in order to
    share the data, however, threads are not preemptive as
    processes I think, is that true?
    Not really sure what that has to do with it.
    I believe the VMs for most common OSes use preemptive thread scheduling. I know windows does and I am rather certain that solaris/linux also do that.
    A number of suggestions were made above for your problem. Memory mapped files allow multiple VMs if memory mapped files work for your VM/OS. Or you can use a single VM.
    Given that your dataset is 1 gig or larger you might want to keep in mind the limitations of modern OSes. Windows for example will not normally allow any application to have a process space larger than 2 gigs. And on all OSes the VM heap limitations for 32-bit VMs are below 2 gigs by several hundred mega-bytes.

  • How to share ibooks between different accounts?

    I have a friend that has an interesting book. he wants to share it with me so that I can read it. I don't know how to share books between accounts and I don't know if it is possible.

    I have a friend with the ipad and she would never give me it. Is it possible to tranfer the book from the ipad to my mac without deleting her other data? because when you connect a new device it asks you to delete all files.

  • How to distribute html component between different web applications?

    Hello. I have a project which consists of several modules. Each module is a separate web-application which can be deployed on a separate application server. All modules must have one menu. The problem is how to implement the menu.
    It would be good to maintain it as a separate project and to distribute it between modules as a jar archive. I have an idea to create a custom tag library which will generate and insert html code where it is necessary. But modules can look different, they can use jsf, richfaces or jsp for the page rendering and the menu must suit the page. So I think that the data and the rendering mechanism should be separated somehow.
    Thanks.

    Starting with Servlet Spec 2.3 (I think) the push has been towards complete web applications; even if it means duplicate files in each (disc space is exponentially cheaper than it was a decade ago).
    The easiest way to manage duplicate files is to keep a single copy for development and use build tools like ANT, Maven, etc.. to assemble your web applications at build time.

  • How to exchange data between two web application (servlet)

    Hello, all,
    I have two servlets: SerlvetA and ServletB, they are deployed as web appA and appB in the same web container(tomcat)
    How ServletA exchange data with ServletB?
    I have tried follow methods:
    1) appA and appB could not share HttpSession, so I could not transfer data through session
    2) I write a new sigleton java class called AppBroker, servletA get AppBroker's instance, and set some data into the it. ServletB could not get the same instance of the AppBroker, because the appA and appB use different class loader.
    tell me how to?

    thanks reply, but
    1. static class can not solve the problem, it is same
    as my sigleton class method, as different web app use
    different class loaderhmm... at least in tomcat this seems not be true since i can use static classes in one webapp that are available in another web app on the same host/servlet runner.
    Maybe if you build your own classloader than the "scope" of the static class is limited to that classloader (for my understanding this shouldn't be the case since i think it depends on the instance of the jvm and not of the classloader..?!).
    2. rmi and object serialization are too expensive!
    I am working on how to use jndi to solve this problem.
    And I think this maybe a Sevlet specification's
    shortcoming: maybe a Local Method as EJB local
    interface need been introduced into servlet spec.
    could you suggestion other methods?none at the moment. i guess the basic methods are listed.
    Maybe there's just one left, a really ugly one. Depending on what kind of data and how often you have to exchange you could think of building a file-based queue, i.e. a dir where you drop files in an read out from the other web app (maybe based on a file/directory listener). But this would only be an appropriate way to go for kind of email and messaging systems i guess...

  • How to share music between different accounts on a single computer. Using this, I can out one account into a shared public folder, but when I want to put a second one there, it says it already exists and do I want to replace it?

    I followed the instructions, but when I got to move a second folder to the new shared folder, it told me it already existed and did I want to repalce it? Not prepared to do this, and lose my wife's itunes songs. I am still in trouble from losing her play lists when I went to IOS 5!

    Hi, remember to set the ownership & permissions for files/folders if you want to be able to amend files or change them from both accounts. If a file is created in one account. it may only be viewed in the other account. but if you change the ownership & permissions from "read only" to "read and write" then files can be amended from both accounts. To get the info, simply click once on the folder or file then command-i to get the file/folders info. you can change things there. Permissions can only be change from the account the file/folder was created in.
    MBP   Mac OS X (10.4.7)   iMac G4

  • HT3819 How do I share music between different users on the same computer?

    I understand Home Sharing helps me share music across different computers.  How do I share between different users on the same computer?  We have a few instances of iTunes on a single computer and have to download from the same CD each time.  I must be doing something wrong - seems crazy to have several copies of the same song on one hard-drive when Home Share allows for sharing across computers - how do I share within the same computer?  Please outline specific steps.  THANKS.

    Hello Whigged-out,
    It sounds like you would like to share one library between two different users on your iMac.  I found an article with steps you can take to accomplish this:
    iTunes: How to share music between different accounts on a single computer
    http://support.apple.com/kb/ht1203
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • I have 2 profiles on one computer. How to share music between the profiles in itunes?, I have 2 profiles on one computer. How to share music between the profiles in itunes?

    I have 2 profiles on one computer. How to share music between the 2 separate profiles in iTunes?

    iTunes: How to share music between different accounts on a single computer
    This might help. info provided by 'b noir'
    iMoz

  • HT3819 How to use homesharing between different user accounts on the same iMac?

    I find plenty of articles about homesharing on iTunes between computers, but not between two different user accounts on the same iMac.  Any advice or direction to an existing artical is greatly appreciated.  I'm knew to the Mac and still have Windows on the brain.
    I am trying to share iTunes music and movie purchases between my user login and my wife's.
    Thanks

    Hello careymp1017,
    This can be achieved, but will not utilize HomeSharing. Further information and steps can be found in the following article.
    iTunes: How to share music between different accounts on a single computer
    http://support.apple.com/kb/HT1203
    Cheers,
    Allen

  • Share graphic layout across web applications (WAR)

    Does somebody know how to share graphic layout across web applications?
    e.g. how to dynamically include a layout html across multiple webapps, so, if I make a change to that layout,, the change is automatically reflected in all webapplications already deployed.
    any idea will be appreciated

    Hi,
    To have a common layout across multiple web applications you can use cascading style sheets (css). By making use of the same style sheet you can have the same appearance in all the web applications. Changing the styles in the css will be reflected in all the pages that make use of this css. The changes wont be effected though in all the already deployed web applications. They will have to be re deployed for the changes to take effect.
    Hope this helps you
    Cheers
    Giri :-)
    Creator Team

  • Sharing object across 2 different web application

    Hello,
         I do not know if this is a right place to ask this kind of question...
         I have two different web applications running on 2 different tomcat servers.
         One of them creates one object ( say myComplexClassObject) which is serializable..
         and I want to share this object in another web applications.
         Both the apps are developed using JSP and servlets.
         Is there any way, I can make this object available in another application ?
         As the request object can not be used across 2 different contexts, I can not set it as attribute on request.
         I tried serializing myComplexClassObject in some test.dat. Problem going by this way is that
         how do I send this file to another application ?
         What I did is as follows....
         In the first app , I created the object and serialized it in one file test.dat. In the same app I read
         test.dat and send the content as query parameter to a JSP in another app. That JSP collects all the query parameters
         and constructs a big string out of it and then writes it to a file, test2.dat and tries to deserialize this.
         File sizes come out to be same. But it gives me StreamCorruptedException.
         Any idea, where I am doing wrong ? or any other way to share this object or to send the file to another app?
         I can not use FTP for some reasons. Size of the test.dat file is more than 10 KB.

    Some possible solutions:
    Use a webservice calls to pass the object,
    Use JAXB to convert the object to XML, pass the XMLover HTTP or a socket and use JAXB to convert the XML back into an object.
    Store the object as a blob in a database.
    Store the object in a Java aware database that can handle Java objects.
    Store the data in the object in a database.
    I am curious as to what information ot functionality is contained in this object that you feel the need to pass it between two servers.

  • How to share Singleton in different JVM?

    How to share Singleton in different JVM?
    Suppose we have two application installed at different server, how to share the same Singleton?
    Rakesh

    You could use the sun game server's persistence mechanism. That would work, at possibly too great an expense than technically needed to make a shared singleton.
    ~Cheers

Maybe you are looking for

  • Problem in pagination

    hi, I am working on the pagination concept using JSP and SQL. I written stored procedure for pagination..its nicely working and i am using callable statement to call the procedure in my jsp code....if i am passing values within the parameter ..i am g

  • Possible N70 Improvements

    Overall I'm happy with my new N70, but there are a few things that I think could easily be improved in a future firmware version. If you have others, perhaps you could add them, or if I'm doing something wrong, let me know! (Most of them are things m

  • Iphone6 not charging ... Charging port not working

    I Bought iPhone 6 recently and it started acted funny with charging. It would charge only if I pally pressure on the cable at certain angle. Then I tried changing cables to even new ones and the pproblem did not go away. Then I visited the Apple stro

  • Safari Is Not Responding When I View other Programs

    When I have Safari open, and move the mouse to the upper left corner of the screen to view other programs - when I try to return to Safari it does not respond.  Instead it sits in the background and will not come up or let me close it.  It happened f

  • Abstract classes and OO theory...

    I have an OO theory question related to abstract classes and their member variables. I realize opinions will vary from person to person but I'll ask anyway... If I'm creating an abstract class, should member variables that will be used by subclasses