Criteria for dividing an application between multiple WARs

What criteria are generally used when deciding on the division of a large application between several WAR files?
I'd imagine that an eBay wouldn't put their entire web application into a single WAR. But I am unsure of what they would consider when deciding how they would split up their application.
As each WAR file has its own context under the web server (is this correct?), I have the feeling from looking at a few tutorials (and seeing what's in the address bar) that it's to be split up by function (e.g. contexts paths for /register, /checkout, etc)
Though the above doesn't seem like I'm interpreting their intentions or this concept correctly. If somebody could please help to explain the guidelines behind such a decision, that would be highly appreciated.
Thank you for any explanation you can provide.

bravebuddy wrote:
Thanks for the reply. We are using cookies and all of the WAR files are under the same domain. The issue is when the user moves from a page in one WAR to a page in another WAR, the session data does not transfer with the user (the get a new session).Yes, I already understood the problem. Did you on your turn understood my answer "This is forbidden as per the Servlet specification" ?
Is it correct to assume the only way to do this is to set up a persistence layer to hold basic session/user information that is accessible from all WARs and then use the common JSESSIONID that they all share (since they are under the same domain) as the Primary Key?It´s not the only way, but one of the ways, yes.

Similar Messages

  • How to share session object between multiple WAR's

    I am Using servlet 2.3 & websphere 5.1 application server. I am using multiple war applications in my ear and i am able to share context-attributes & session attributes between wars. Can any one guide me how i can share session object?
    I am getting session -time out in first war even though i am doing some operation's in second war. I want to maintian the same session, even in my second war which was created in my first war.
    Can any one help me. Thanks in advance.

    Hi LNL,
    Can you explain more on singleton solution as you said....
    For session attributes & context attributes i am using persistent storage to retrive them in multiple wars. My problem is how should i use "session object" in my second war which was created in my first war.

  • Session not shared between multiple wars, with no cookies

    I posted an earlier query on multiple wars in the same application.
    Actually session is maintained and getting shared on the server when
    browser supports cookies.
    When Browser does not support cookies i have the following problem,
    a) Without cookies URL's(href tags) work fine because they are bieng
    rewritten.
    b) The first form i call always has hidden tags with session id value
    and it works fine
    c) But in all susequent forms there is no hidden session id.(My forms
    are all JSP pages.).
    My questiona are
    1) under what situations does the server add session id hidden tags in
    html form.
    2)And how do I get them created automatically when browser does not
    support cookies.
    3) And why are the hidden tags being set for the first request. (I read
    in previous posts that is because the server does not know if browser
    supports cookies for first time) How does it know the second time. What
    html header gives this info.

    >
    1) under what situations does the server add session id hidden tags in
    html form.The webconnector should rewrite the sessionid whenever the browser might
    not support cookies. (And it has configured to allow URL re-writing.)
    Obviously you are having a problem with this, but based on the information
    you are providing I don't have any insight on why yet. Works for me. Try
    opening a support ticket and/or posting some more information.
    >
    2)And how do I get them created automatically when browser does not
    support cookies.This should happen automatically, unless you have changed the NoCookie
    setting in the registry.
    >
    3) And why are the hidden tags being set for the first request. (I read
    in previous posts that is because the server does not know if browser
    supports cookies for first time) How does it know the second time. What
    html header gives this info.Yes, hidden tags are set for the first request because the webconnector
    doesn't know if the browser supports cookies.
    The second request it knows that cookies are supported because the browser
    successfully has returned the cookie it sent the first time.
    David

  • Cookies between multiple WAR files

              If you were to use multiple Web Applications, deployed in separate WAR files, on
              the same application, could they all use the same Cookie? Since cookies are used
              for storing session info, and all of these web apps would reside on the same managed
              server (clustered group of managed servers), shouldn't they all have the same
              CookieName set? If not, wouldn't the NES plug-in get confused, assuming the same
              proxy path was used to access all of the Web Applications?
              

    If you were to use multiple Web Applications, deployed in separate          > WAR files, on the same application, could they all use the same
              > Cookie?
              Yes.
              > Since cookies are used for storing session info, and all of these web
              > apps would reside on the same managed server (clustered group of
              > managed servers), shouldn't they all have the same CookieName
              > set? If not, wouldn't the NES plug-in get confused, assuming the
              > same proxy path was used to access all of the Web Applications?
              I believe WL either creates a different session cookie for each app. This is
              easy by adding a path to the cookie to restrict its "view".
              However, that doesn't stop you from having a shared cookie.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com/coherence.jsp
              Tangosol Coherence: Clustered Replicated Cache for Weblogic
              "djmv" <[email protected]> wrote in message
              news:3ed77e08$[email protected]..
              >
              

  • What is the criteria for selecting a license if multiple licenses exist

    Hello experts,
    If multiple licenses exist for an order in GTS, what is the criteria to decide which license will finally be selected?
    The log says "Number of import/export licenses that could be affected: 3" but it finally picks up one.
    Does it do it sequentially using the internal license number?
    We have a scenario where we are upgarding from version 7 to version 10, and there is one license (say A) which was created in the older version and copied to the new system after upgrade. There is also a new license (say B) directly created in the new version (with same selection criteria as A)
    Now when an order is created, both licenses are "affected" but it picks up the license B created in the new version.
    If the system was picking license based on internal number it should have picked up license A which was created in earlier version (as that had a lower internal number sequentially). If I expire license B and recheck the order, then it correctly picks up A.
    So what is the actual criteria to select a license and in this case was License A not given priority because it was created in older version and then copied to new version as part of upgrade?

    As far as I can see from a quick look at the code, there is no attempt to place the determined licences in any particular order.  Since they are selected from table /SAPSLL/LCLIC, it seems reasonable that they would be selected according to field GUID_LCLIC.  Within one system, the GUIDs remain in order of creation date/time; however I don't know GUIDs are formed in relation to different systems.  My bet is that if you check in SE16, your "early" licence actually has a higher GUID value than the recent ones.
    Please check, and see if I'm right.
    Regards,
    Dave

  • Hello I bought Photoshop Elements 9 for PC: The application processing multiple files is not working

    tank you

    Dear Ankush,
    Thank you for your help.  I followed the directions on the link and tried to change the security settings (there were some that I had missed, like the 'sites' on my own), but I still can't get AIR to download. I'm still getting security errors for some reason.
    Sincerely,
    Laurie

  • Multiple wars sharing web dir

    Has anyone configured multiple web app wars to share a common web directory for something like images? Ideally, I'd like to use an exploded separate directory for web images and have multiple wars use it. Any pointers of advice are much appreciated. TIA.
    JohnH

    If deploying the web application on Unix-like operating systems, you could make use of symbolic links from the deployed web applications to a common directory, thus sharing common resources between multiple web apps.

  • Chat between multiple users using producer/consumer

    Hi All,
    I'm working on a chat application between multiple users using producer/consumer in flex(pure flex). But i found that this was basically a broadcast service. How do i make sure that i maintain a private chat between any two users using producer/consumer scenario?

    hi,below i write a code,bold lines are properties to use.
    //producer component
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
    <![CDATA[
    import mx.messaging.*;
    import mx.messaging.messages.*;
    import mx.messaging.events.*;
    private function sendMessage():void {
    var message:AsyncMessage = new AsyncMessage();
    message.headers = new Array();
    message.headers["prop1"] = 5;
    message.body = input.text;
    producer.send(message);
    ]]>
    </mx:Script>
    <mx:Producer id="producer"
    destination="chat"/>
    <mx:TextInput id="userName"/>
    <mx:TextInput id="input"/>
    <mx:Button label="Send"
    click="sendMessage();"/>
    </mx:Application>
    //consumer component
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    creationComplete="logon();">
    <mx:Script>
    <![CDATA[
    import mx.messaging.*;
    import mx.messaging.messages.*;
    import mx.messaging.events.*;
    private function logon():void {
    consumer.subscribe();
    private function messageHandler(event:MessageEvent):void {
    ta.text += event.message.body + "\n";
    ]]>
    </mx:Script>
    <mx:Consumer id="consumer"
    destination="chat"
    selector="prop1 > 4"
    message="messageHandler(event);"/>
    <mx:TextArea id="ta" width="100%" height="100%"/>
    </mx:Application>

  • Cross dissolve transition between multiple video tracks?

    I'm wanting to cross dissolve between 2 clips, with each clip consisting of 2 or 3 video tracks (one clip is a still image in track v2, sitting above a color matte in v1; the other clip is motion footage in v1, with another cropped motion image in v2 and v3). When I put cross dissolves between the 2 clips (ie 2 dissolves, one for video track v1 and one for v2), the dissolve is "messy", showing the cropped images in v2 and v3.
    To make the dissolves "clean" I can render and export the multiple-track clips, but then I have to add handles to allow the dissolve, and then it takes time to resync each clip, which is very annoying!
    Is there a technique for making cross dissolves between multiple-track video clips?

    Any other suggestions? <</div>
    Practice and logical deconstruction.
    If your original clip is 10 seconds and your nest is 10 seconds you must trim off 2 seconds of the nest to perform a 2-4 second dissolve. If that pulls too much of your original clip out of the timeline, you must add two seconds to the original clip so the nest is 12 seconds long so you can trim off the 2 seconds requried to perform the dissolve.
    An easier way of accomplishing this is to stack the two nests and apply a keyframed opacity ramp to the upper track. This will help you visualize what you're doing wrong and how to add more handles to the upstream clips.
    bogiesan

  • Merge multiple WAR to single EAR for deployin JDev 11.1.1. & WLS 10.3.1

    Greetings Experts,
    First of all, i've read so many threads here in this forum and i rarely find threads regarding Merging multiple WAR to a single EAR for deployment (CMIIW).
    Anyway, i have an issue reagarding my applications.
    Currenty, I have a lot of web applications, and each of them is deployed as a single EAR file into the weblogics 10.3.1. And lots of EAR is then deployed to a single Managed Server in WLS.
    From reading many references, it seems that what i have done is not entirely correct, because of the inefficient use of resources in a single Managed server in WLS (lots of EAR in a single Managed Server (MS) may takes more overhead cost).
    Therefore, i am planning to merge those small applications (EAR) to a single bigger EAR, so that it will reduce the numbers of EAR in a single managed server.
    Currently, we are trying to merge the small application as WAR and combine them to EAR. FYI, we are using ADF based web application, thus, each web application (WAR) will have its own adfc and each.
    At this moment, we are able to deploy a single EAR with 2 WARs inside it. However, when we try to run the application, only 1 application is able to be run. The other one is giving me "404 Page not Found".
    By reading the forum, there is a lead on using adfc-setting.xml. We've tried using that but still did not work (probably our adfc-settings.xml is not correct).
    My question is, are there any more references on how to merge WAR files to a single EAR from JDEV and deploy it to WLS 10.3.1. or anybody want to share their experiences?
    Thank you in advanced...

    Is a different context root specified for the 2 web apps.
    <application>
    <display-name>test</display-name>
    <module>
    <web>
    <web-uri>webapp1.war</web-uri>
    <context-root>webapp1</context-root>
    </web>
    </module>
    <module>
    <web>
    <web-uri>webapp2.war</web-uri>
    <context-root>webapp2</context-root>
    </web>
    </module>
    </application>

  • HT2589 We have purchase 5 apple minis and would like them all on one account.  That way we can monitor the use of these units.  they will be used strickly for a business application.  can I use one account in itunes or must i have multiple.

    We have purchased 5 apple minis and would like them all on one account, that way we can monitor the use of these units.  They will be used strickly for a business application.  Can I use one account in itunes or must i have multiple.

    Not going to happen the way you want it to.
    When you add a gift card balance to the Apple ID, it's available for the Apple ID.
    Probably best to create unique Apple ID's for each... this will also make things easier in the future as purchases are eternally tied to the Apple ID they were purchased with.

  • I setup messaging on my verizon, however I have multiple lines on the account and it is showing messaging only for one phone line. Is there a way to toggle between multiple lines on the myverizon site?

    How do I toggle between multiple phone lines while on the myverizon website in regards to messaging?

    The Account Owner can see the call/text logs for all lines on the account, but each line needs its own My Verizon account for messaging and backups.  Those lines will be listed as Account Members and will have limited info. available to them regarding the account.

  • How to set up multiple log4j configurations for multiple WAR packages?

    hi all,
    the EAR that i am trying to deploy has multiple WARs.
    I need to configure separate loggers for each these WARs.
    Could any of experts can help me out.

    Hi
    Depending on your needs, you may find that Set level offers the best approach:
    Within a Set you have the Playbacks (Set Level, so they work for the entire set) with individual patches in the set "live" for the EWI etc as needed.
    You need only map one set of controls for all the Playbacks since only 1 set can run at a time.
    CCT

  • Sharing of video between multiple applications,

    Is there software that allows the sharing of the iSight cam between multiple applications at the same time.

    Welcome to Apple Discussions, HappyMacste
    Apple's iSight "Your camera is in use by another application" message says "iSight can be used by one application at a time."
    http://b-l-a-c-k-o-p.com/CamCamX.html claims "you can use all your favorite cam applications AT THE SAME TIME."
    EZ Jim
    PowerBook 1.67 GHz   Mac OS X (10.4.10)    G5 DP 1.8  External iSight

  • How to i configure multiple JBoss caches for standard lone application

    how to i configure multiple JBoss caches for standard long application running on single JVM..Please advice and provide me sample code if any..
    Thanks
    NAgs

    [http://www.jboss.org]
    Locking this thread.

Maybe you are looking for

  • Error message when logging into WAS/UI

    I receive the following error message when I log onto the WAS/UI. Logon is not possible because you have not been assigned to a business role; contact your system administrator I know that I need to be assigned to business role, but how (which transa

  • IPod Touch Apps to 2 new iPhone

    Hi, Hope you can help. I have had a iPod Touch for about of year and been synching with iTunes on Windows. It has apps I bought for myslef, apps bought for my husband's use and apps (games!) for the kids. I now have ordered 2 iPhone on mobile contrac

  • How do I get to the powersupply on my iMac G5?

    I have successfully changed my hard drive on my iMac G5 isight 20" computer.... it lasted over a year but now the computer doesn't turn on and has the loud fan noise and black screen.... so trying to replace the power supply but when I open the compu

  • Oracle.apps.fnd.framework.OAException:Could not lookup message

    Dear Experts, I am getting the following exception while creating the Employee search excercise as given in the index document. While I am trying to run my EmpSearchPG.xml the following error I am getting. I have checked my Application short name & R

  • Solaris 8 patching

    Hello, I have recently brought up my two old solaris 8 boxes and want to bring them all up to data, but it seems that i can no longer get the patch files as i don't have the Sun Contract Number? I have logged into https://support.oracle.com/CSP/ui/fl