Does Servlet API support the following scenario...

Hi,
I am trying a second post to see if anybody has encountered the following scenario:
Several instances of a webapp is started on the same machine where each instance is bound to a hostname. It is critical that only a .war or a set of files are used because the application is very large. There are also practical problems re-deploying 20-30 identical .wars.
The problem is that when a servlet context is initialized there doesn't seem to be any way of finding out which host(s)/URIs the current instances is bound to. This makes it impossible to deduct which configuration to load.
Is there a clean way to do this using listeners of servlet context creation or this scenario is simply not supported by the API?
Any feedback is appreciated.
P.S. The solution I had to use is to start the application at first request where I can get the hostname from the request.

http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContext.html
"getServletContextName
public java.lang.String getServletContextName()Returns the name of this web application correponding to this ServletContext as specified in the deployment descriptor for this web application by the display-name element.
Returns:
The name of the web application or null if no name has been declared in the deployment descriptor.
Since:
Servlet 2.3 "

Similar Messages

  • Does Elements 10 support the Nikon D3200 RAW Files?

    Does Elements 10 support the Nikon D3200 RAW Files?

    Not yet. You need to wait for the next update. It's already been added to CS6 and Lightroom 4; so it should follow soon.
    If you can't wait and convert from NEF to DNG you can use PSE10 but always keep your originals as back-up and incase you need to use Nikon software.

  • Does hisense tv supporte the apple tv 3rd generation?

    does hisense tv supporte the apple tv 3rd generation?

    any tv which is fullHD or hdReady (but then atv3 will not work in fullhd of cause)
    and follow the hdmi and hdcp std's are supported
    there are not made for appletv tv's out there (at least I hope not as that would be as much a scam as made for xbox or playstation)

  • Can anyone tell me the field name, table name for the following scenario?

    Hi All,
    Can anyone tell me the field name and the respective table name for the following scenario's?
    1. A report to list all the materials to which Invoice is done and delivery is pending.
    2. A report for Order tracking.
    3. A report, which gives PO(Purchase Order),  Pricing details.
    4. A report, which calculates the MATERIAL COST. It will select all the material issued for the entered service order number from  stock.
    Thanks & Regards,
    P.Gowrishanker
    Edited by: Gowrishanker pari on Jun 1, 2008 8:58 AM

    I believe that OmniVision Technologies has the contract for the 3gs.

  • Provide the java code for the following scenario.

    Hi Experts,
    I have tried with all the combinations for this scenario. As per my understanding i require java code for the following scenario
    so that it becomes easy........
    I require a Message mapping for this Logic.
    In the Source there are 4 fields and, the Target side, the fields should appear like this.
    Source Structure- File
    Record
    |-> Header
    Order_No
    Date
    |-> Item
    Mat_No
    Quantity
    Target Structure-IDoc
    IDoc
    |-> Header
    |-> Segment
    Delivery_Order_No
    Recv_Date
    |-> Item
    |-> Segment
    Delivery_Order_No
    Material_Num
    Recv_Quantity.
    The Logic is for every Order number an IDOC is generated.And if the Material num matches then the quantity should be added. and important note is that the material numbers are different for every order number. That means if a material number is 2 in the order number A. Then the material number can never be 2 in any of the order numbers.Here is the following with an example for the above scenario.
    For example:-
    we have
    Source Structure- File
    Order-no Date Mat_No Quantity
    1 01/02/2011 A 10
    1 01/02/2011 B 15
    1 01/02/2011 A 10
    2 01/02/2011 C 10
    2 01/02/2011 C 10
    3 01/02/2011 D 20
    3 01/02/2011 D 10
    3 01/02/2011 E 25
    Target Structure-IDoc
    Delivery_Order_No Recv_Date Material_Num Recv_Quantity
    1 01/02/2011 A 20
    1 01/02/2011 B 15
    2 01/02/2011 C 20
    3 01/02/2011 D 30
    3 01/02/2011 E 25
    So for this example total of 5-Idocs created. That means for this example if Order_No is 1 When the Mat_No is A the quantity gets added. For this Scenario 1 IDoc with four Fields 2 in Header(Delivery_Order_No, Recv_Date) and 2 in Item(Material_Num, Recv_Quantity) is generated by adding the quantity field in the Target Side. Similarly if Order_No is 1 when the Mat_No is B then separate IDoc is generated with four Fields 2 in Header(Delivery_Order_No, Recv_Date) and 2 in Item(Material_Num, Recv_Quantity) in the Target Side. Similarly, if Order_No is 2 when the Mat_No is C, an IDoc is generated with four Fields 2 in Header(Delivery_Order_No, Recv_Date) and 2 in Item(Material_Num, Recv_Quantity) by adding the quantity field in the Target Side. ike wise the process goes on upto 3.Kindly do the needy..
    Kindly provide the java code.
    Thanq very much in advance..

    what i have understood from ur example is that u want to generate an idoc for unique combination of  Order-no and Mat_No
    if yes then chk the below mapping..
    change the context of Order_No, Date, Mat_No and Quantity to Record (right click-> context)
    1)
    Order-no
    ----------------------concat[;]---sort----splitbyvalue(valuechanged)-----collapse context---IDoc
    Mat_No
    2)
    Order-no
    --------concat[;]---sort----splitbyvalue(value changed)---collapse context---UDF1--splitbyvalue(each value)--Delivery_Order_No
    Mat_No
    3)
    Order-no
    -----------concat[;]---sortbykey----------------------- \
    Mat_No                       /                            \
    Date--------------- /                                       \
    ----------------------------------------------------------FormatByExample-----collapsecontext---splitbyvalue(each value)----Recv_Date
    Order-no                                                 /
    -----------concat[;]---sort----splitbyvalue(value changed)
    Mat_No
    4)
    Order-no
    --------concat[;]---sort----splitbyvalue(value changed)---collapse context-UDF2--splitbyvalue(each value)--Material_Num
    Mat_No
    5)
    Order-no
    -----------concat[;]---sortbykey
    Mat_No                       /
    Quantity --------------- /
    ----------------------------------------------------------FormatByExample-----SUM(under statistic)----Recv_Quantity
    Order-no
    -----------concat[;]---sort----splitbyvalue(value changed)
    Mat_No
    UDF1:
    String [] temp= a.split(";");
    return temp[0];
    UDF2:
    String [] temp= a.split(";");
    return temp[1];

  • Need best Architecture design for the following scenario

    Hi Experts,
    I need best architecture design for the following scenario:
    Sender: Mail
    Receiver: if sender body contain u201DApproveu201D, then call SOAP adapter, If SOAP adapter execute successfully, then  send Mail(SOAP adapter executed successfully) and SMS .  So receiver is SOAP, Mail and SMS.
    My current approach issue:
    Three message mapping:
    Mapping1: mail to SOAP
    Mapping2: mail to Mail
    Mapping3: mail to SMS
    In interface determinant>u201DSelect all three operation mappingu201D> u201Cselect order at runtimeu201D.
    Issue in current approach: For me first SOAP adapter should complete successfully, after that only my Mail and SMS operation mapping should execute:
    But problem is before success of SOAP adapter engine, Mail and SMS mapping completed or integration engine executed.
    Note: There is possible to fail the SOAP request in adapter engine.
    Kindly help me --> u201CAm I going correct way or want to change the architectureu201D?
    Thanks for advance!!
    Regards, Kumar

    What do you mean by successful execution of soap call?  Are you talking about Successful response (happy flow) from the soap call instead of application error ? Then based on the response you want to decide sending mail and sms.  How big call is your soap ?  If your soap interface is very simple I can give the other possible way.
    Sender sends the message, use mapping  to read the content and then do soap call in the mapping itself and after seeing the soap response decide about two receivers (mail and SMS).  If your soap call is very simple one, you can go for it. Otherwise I would not recommend this. The reason is you loose some visibility regards to monitoring during soap call in the mapping.
    Other option is go for CCBPM.  Here you receive the message, use send step to soap interface which is sync step. Then after seeing the response create another block with fork steps each for two senders mail and sms. If response bad then dont proceed or execute the next block. Simply use exeception or control step to jump out from the block,

  • Implement the following scenario for credit memo

    Dear experts!
    Thank you for your attention!
    how to implement the following scenario for credit memo??????
    1.Credit memo requests are usually blocked for billing (that is, credit) upon creation until the
    employee responsible releases this block.
    2.Within our company, we want make the definition of the point at which the check is carried out and
    the employee responsible dependent upon the value of the credit memo request.
    3.If the value of the credit memo request is below a certain minimum limit, then it can be released
    automatically by the system.
    4.The workflow within the framework of credit memo processing now guarantees that the employee
    responsible is automatically determined and informed when a credit memo request is created,
    depending on the value involved.
    waiting for your help!!!!!
    Best regard!
    Tangdark

    Hi,
    Hope so you know all the setting regarding credit memo customizing.
    Otherwise use the standard one.
    Regarding authorization go to PFCG and create a new role.
    In that you can maintain the authorization regarding the minimum credit limit.
    Please check out this setting.
    And update me also if I was wrong.
    Regards
    Raj.

  • Does Flash Paper support the PDF Bookmark functionality inside SWF?

       Does Flash Paper support the PDF Bookmark functionality inside SWF?

    I don't think you will be to happy with this, but I think it
    does not come with the Web Premium CS3 for the Mac:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16582#flashpaper

  • Does Firefox OS support the use of VPN's?

    Simple question, does Firefox OS support the use of VPN's? If not is it a feature that will be added? And if so, when?

    Thank you for your interest and for purchasing a device! The bug reported has went through some employees. I'm sure that we'll get something done shortly.

  • Does camera raw support the Nikon D5300, if not when there will be an update for this camera model?

    Does camera raw support the Nikon D5300, if not when there will be an update for this camera model?

    The asterisk next the model number on the download page linked above means there is preliminary support, which usually means the camera is supported by pretending it is an earlier model with similar sensor.  This can lead to color issues, so while you can convert your NEFs to DNGs with the DNG Converter, and open them with PSE12, now, save your NEFs and be prepared to revisit those pictures once the final release of ACR 8.3 occurs probably in the next few weeks, with finalized support.

  • When does Photoshop cc supports the raw files wich are coming from the Nikon D5500 ?

    Hello,
    When does Photoshop cc supports the raw files wich are coming from the Nikon D5500 ?
    Iam a very happy user of Photoshop, specially for my raw files... i find it frustrated that i can't work on my files for now..
    Greatings Danny

    The D5500 was just released and Adobe is working on support. Cannot say how long for sure, but it should be within a month or two. Meanwhile, you could shoot in NEF+JPEG and set Camera Raw to open your JPEGs as well. Not as much data, but will be better than nothing..
    Benjamin

  • Does Lightroom 5 support the Nikon D810 camera

    Does Lightroom 5 support the Nikon D810 Camera?

    Yes, download Lightroom 5.7
    Mac Adobe - Lightroom : For Macintosh : Adobe Photoshop Lightroom 5.7
    Windows Adobe - Lightroom : For Windows : Adobe Photoshop Lightroom 5.7

  • Does WD ALV support the functionality?

    Hi Experts,
    Does WD ALV support the functionality that when use tries to remove one line from the grid, the system will popup a dialog box and warn user that he is trying to remove one data. if user click the OK button, the selected line will be removed or go back to the initial screen.
    IF WD ALV support the functionality how can I implement this? Thank you very much!
    Best Regards
    Julia

    Hi,
    You can create your own customized button in ALV and add the functionality of  poping up a window  whether to delete or not to delete the record.
    Priya

  • Need Mapping logic for the following scenario

    Hi everyone,
    I need a mapping logic for the following scenario.
    For the same order no with same material no, the quantity should be summed and only one idoc should be created.
    For the same order no with different material no, no need to sum the quantity and only one idoc should be created.
    For example:
    Source Structure:
    Ord No      Mat No      QTY
    12               1               2
    13               1               3
    13               2               1
    12               2               4
    15               1               5
    14                3              7
    12               1              6
    Target Structure:
    Ord No      Mat No      QTY
    12               1               8
    12               2               4
    13               1               3
    13               2               1
    14               3              7
    15               1              5
    Thanks in Advance

    Try the graphical mapping as shown below using concat with a space as delimite and UDF to split the value again by space.
    1. Idoc node
    (RootContext)
    OrdNo
         |concat[ ] -> sort[asending] -> SplitByValue -> collapseContexts -> Idoc
    MatNo                case sensitive    [ValueChange]                              
    (RootContext)
    2. OrdNo
    OrdNo(RC)
         |concat[ ] -> sort[asending] ->SplitByValue->collapseContexts->SplitByVale-> UDF to fetch ordno  -> OrdNo
    MatNo(RC)           case sensitive    [ValueChange]                [eachValue]   (return var1.split(" ")[0];)
    3. MatNo
    OrdNo(RC)
         |concat[ ] -> sort[asending] -> SplitByValue ->collapseContexts->SplitByVale-> UDF to fetch ordno  -> MatNo
    MatNo(RC)              case sensitive    [ValueChange]                  [eachValue]   (return var1.split(" ")[1];)
    4. Qty
                   [asending,case sensitive]               
                   --  sortByKey -----> formatByExample -> sum ->Qty
    OrdNo(RC)           |          |          ^          
         |concat[ ] -> |            Qty(RC)          |
    MatNo(RC)           |                |     
                   --sort[asending]-> SplitByValue
                       case sensitive    [ValueChange]
    Regards,
    Sunil Chandra

  • Does iPad Air support the WhatsApp Messenger texting function?

    Does iPad Air support the WhatsApp Messenger texting function? I am having difficulty downloading that app to my new iPad Air.

    The WhatsApp developer hasn't created a version for the iPad.

Maybe you are looking for

  • How do I find a list of my files in my macbook air?

    How do I find a list of my files in my macbook air? I looked through the Hard Drive, but can't find a list of all of the files...my computer says I have 18 gb of movies/video that I can't seem to locate to delete...

  • Whats the diff between PS CS5 and PS Elements 12?

    I currently use PS CS5, but a friend of mine wants to get PS Elements 12.  Are there major differences?  Is E12 an add on to an existing CS, or can it be used by itself?  I'm unfamiliar with E12 so any help would be welcomed. Thank you

  • Transport cost

    Experts such Forum. I have a query, select the transport cost function, but I have a problem in transmitting the transport cost purchase order(VI02). Since this standard created by an order with unknown type of complaint and use the service type of p

  • Updating Elements 6 to 8 (Mac)

    Hi, I bought Elements 6 a couple of years ago and now want to update to Elements 8.  Do I actually have to pay full price for the newer version?  Can't I just pay for the update? This is common with other software. Thanks, FS

  • Can not reopen document in Reader after closing it.

    I havea new HP computer with windows 7 and have a problem with Adobe Reader. Once I open a document and close it I can not reopen it a second time. It tells me there is problem and to retry it.