Multiple requests

I have been asked to write a servlet that accepts requests from multiple jsp pages. What would that exactly mean - just get requests from various jsp pages and deal with them appropriately or would there be more such as use of threads?
Cheers
Bal.

The servlet container will already call your servlet on seperate threads for all concurrent requests. So you don't have to do anything there.
However, because of that be sure to "synchronize" any "critical blocks".

Similar Messages

  • How to use a connection across multiple request

    What is the idea of using a connection across multiple requests.

    Please give more details. What connections and what requests
    And are you posting on the right forum? (This sounds more like a Networking/servlet question)

  • Problem with multiple requests to different servers using HTTPService

    Hi
    I'm aware that we are limited to two concurrent connections to a single host, so I'm looking into using either subdomains pointing to the same server, or separate physical servers to process multiple requests side-by-side.
    However, whichever way I try to send three requests, looking at the Network Monitor the 3rd request always waits until one of the first two has finished. In the screenshot below, all three requests were sent at the same time to three separate physical servers, yet the top request didn't start until the bottom request finished, at 15:33:28
    Any ideas how to get round this? I'm using SSL, but I've also tested it on HTTP with the same results. I'm writing an AIR app, and posted this on the AIR forum but was told it was a Flex issue and I should post it here.
    Please let me know if any more information is needed
    Many thanks
    James

    Would that still apply even though I'm not running this inside a browser, but in AIR?
    I've seen this method recommended by other people, and also the following page seems to suggest that what I'm doing should work
    http://www.chadupton.com/blog/2008/08/maximum-concurrent-http-requests-from-adobe-air/
    Kind regards
    James

  • How to handle multiple request in the servlet

    how to handle multiple request in the servlet...
    Example:
    java forum...
    i'm login in the java forum at this time 1000 members make login in this....how happended in servlet?
    if we use thread how to implement in servlet ?

    Serlets are already threaded. The application container instantiates the servlet, then uses this instance in a new thread for every use.
    This is the reason that you should use (almost) no instance variables in a Servlet, but rather that (almost) everything should be local to the method.

  • How to capture the Status code in Web application Transcation monitoring if we are using multiple Request

    Hi Team
    We would like to monitor 12 url,s which requires Authentication. Hence i have added the same in one Single Web application transcation template.
    i have added the below info to the get the Stats code displayed in Alert
    Status code is $Data/Context/RequestResults/RequestResult["1"]/BasePageData/StatusCode$
    when i recived a alert it gave the Status code of the 1st Request
    hence i changed the same as
    Status code is $Data/Context/RequestResults/RequestResult["12"]/BasePageData/StatusCode$
    But still i am facing the same issue .
    My first request shows me a status code of 200, and my 12th Request comes with 500 but in the alert i get 200 but it should be 500.
    Kindly help me in how i can get the Status code for the multiple  Request.
    Regards
    Sriram

    Hi Sriram,
    Please run the test of your 12th Request, view full result and check if Status Code is 200.
    Meanwhile, you can run the URL manually to check the result.
    Niki Han
    TechNet Community Support

  • Do you have a transaction scope that spans multiple requests.

    We have and application that includes multiple tabs, which are really iframe instances. We need to maintain state for the entire time the tab is open, which may be across multiple requests.
    I am not comfortable making all our backing beans "session" scope, and making them "request" forces us to do lots of work (DB access etc...) on every post-back to re-initialize the backing bean.
    I have been looking at both Shale and JBoss SEAM to give me this "conversational" scope. I have looked at "process" scope, however we may have the same backing bean in use for multiple tabs, therefore would need it linked to something like the viewId.
    Does ADF plan on enhancing the "process" scope functionality or is it OK to add SEAM or shale at the front-end of the ADF processing lifecycle?
    Your guidance would be appreciated.

    The processScope functionality seems pretty crude.
    I was looking to define which data elements of the backing bean need to be stored (maybe using annotations) and have them restored automatically before the APPLY_REQUEST lifecycle gets initiated. I can write this functionality, however I was looking for a more robust solution.

  • Handling Multiple requests in SOAP Sender Adapter

    Hi All,
    We are working on scenario SOAP-IDOC.
    We receive multiple requests from Source, PI should process them and deliver it to SAP system.
    Now the issue is :
    The messages are in separate SOAP requests i.e. 5 messages = 5 SOAP requests.
    If sending a single message there is no issue.
    If sending multiple messages at once then a time-out occurs.(HTTP 408 Timeout) If sending
    5 SOAP requests in the same transmission then the first message will process ok but the other 4 will report an error. If the 5 SOAP requests are transmitted individually then they process ok.
    Can any one throw some pointers on this? What are the settings I have to do in PI so that sender can avoid getting HTTP 408 timeout error?
    Regards,
    Srini

    Hi Srinivasa,
    Set icm/server_port_X parameter . You can change this in RZ10 .Goto tcode RZ10 select the instance profile and select the extended maintenance and click on Change Now click on Create Parameter Tab and write the profile parameter icm/server_port_X and press enter it will show you the default value if any and then put the new value and click on save and F3 and then again save.System needs to be restarted to reflect these changes.
    Also check out the SOAP adapter FAQ on service market place. This would surely solve your problem(time out).
    Rgds
    joel

  • How to handle multiple requests to the same servlet at one time?

    Hi,
    I am new to Servlets. I have doubt regarding ... Handling multiple requests to a servlet at a time.
    If we send a single request to a servlet, as know that group of objects such as servlet, servletContext, servletConfig, request, response and etc are created in the server, And if 1000's of requests are sent to a same servlet at a time, and if server memory capacity is less, then 1000's of objects are created in a server which would be heavy burden to Server. How to handle the application and development in such situation?
    Kind regards,
    veerendra

    Hi veerendra reddy ,
    By default any web server can will have a thread pool to handle client req's.
    In your point also heavy burden to server you are telling that depends on this.
    we can configure this min & max size of this thread pool.
    by default it will be 0-1000 for tomcat server.
    I am not sure in which file this configuration will be.
    But I hope in server.xml or some xml file consists this info.
    If You what you can edit accordingly. to overcome your heavy burden to server.
    Thanks & Regards
    Nagendra

  • How to retain socket connection for multiple requests in java 1.3

    Hi All,
    My problem is to retain client socket connection without opening and closing socket connection for every request.I want to open the socket connection once and send multiple requests one after the other based upon the response over the same socket.Finally I want to close the socket only after completing all my requests and receiving respective responses.I don't want to open and close the socket for each request and response.While at the same time I expect the socket to send each request only after receiving the response for the previous request.
    I am using java 1.3 and I am looking for the solution in same version.
    Please help me .
    Thanx in advance.

    Look at my response to "Telnet to Unix box from Java"
    http://forum.java.sun.com/thread.jsp?forum=31&thread=437231
    on "Java Programming" forum. It does exactly that to run the signon and a command. It would be easy to extend it to do multiple commands.

  • How to conditionally hide/show form item for multiple requests?

    Ver 4.1.0
    Hi There,
    I have a database form where in one of the fields I need to hide /show based on if the user selects a copy row option or create a new row.
    To explain in details,
    1. I have a report and form application created. When the user edits a record, in that page I have added a copy button also, so when the user hits the copy button, the page is reloaded where the user can create a new record with the save button disable and the create button visible. when the user submits the form using Copy the request is set to "COPY' and in the form, one of the fields has conditional display "REQUEST =Expression1" with value "COPY" This works fine.
    2. However, on the reports page, there is a "CREATE" button also, where the user can directly create a new record and the request value is "CREATE"
    I wanted to add both COPY and CREATE to the conditional display something like
    "REQUEST=Expression1" with value "COPY, CREATE" (without quotes)
    however, the item does not display. I guess it only accepts one value since its =.
    Any suggestions on how the conditional display for an item can be done based on multiple request types?
    Thanks!
    Sun
    Edited by: ryansun on Oct 18, 2012 3:08 AM

    Hi Sun,
    Try changing your condition to a PL/SQL Expression and in expression 1 field add something similar to below and see if it works:
      :REQUEST like 'CREATE' or :REQUEST like 'COPY'This is straight off the top of my head and untested.
    Hope this helps
    Paul

  • Canvas disappear on sending multiple requests specifically from IE 11

    I have a page which displays few javascript charts on it. I am using RGraph chart API to generate charts. The charts are been generated from a separate Ajax call.
    The page is working fine with IE 7, 8, 9 and 10. Then recently I have upgraded to IE 11. After upgrade the page is not working as intended. On performing refresh operation for about 3-4 times, section of some charts are been disappers. It displays
    blank section instead of chart. And random charts gets disapper. It is not fix that some specific charts will fade away.
    And when this issue occur, all the CSS on the page goes messy.
    I have checked for any javascript related error generated or not. But I didn't found any javascript error on the console.
    I have checked from development tool. The canvas tag is available, bit it does not display on the page. It shows a blank section instead.
    Any idea why this is happening?
    I have moved this question from IE 11 Community Support Forum. Here is the link of the forum. 
    http://answers.microsoft.com/en-us/ie/forum/ie11-iewindows8_1/canvas-disappear-on-sending-multiple-requests/c433cf9b-fb82-48f1-8554-ebb3354795fe

    I have a page which displays few javascript charts on it. I am using RGraph chart API to generate charts. The charts are been generated from a separate Ajax call.
    The page is working fine with IE 7, 8, 9 and 10. Then recently I have upgraded to IE 11. After upgrade the page is not working as intended. On performing refresh operation for about 3-4 times, section of some charts are been disappers. It displays blank
    section instead of chart. And random charts gets disapper. It is not fix that some specific charts will fade away.
    And when this issue occur, all the CSS on the page goes messy.
    I have checked for any javascript related error generated or not. But I didn't found any javascript error on the console.
    I have checked from development tool. The canvas tag is available, bit it does not display on the page. It shows a blank section instead.
    Any idea why this is happening?
    I have moved this question from IE 11 Community Support Forum. Here is the link of the forum. 
    http://answers.microsoft.com/en-us/ie/forum/ie11-iewindows8_1/canvas-disappear-on-sending-multiple-requests/c433cf9b-fb82-48f1-8554-ebb3354795fe
    Hi,
    In order to get your issue solved more efficiently, I would recommend you post another thread in
    https://forums.asp.net forum to get dedicated supports, since based on your description, you are having this issue with your web applications and that forum is for web development issues.
    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.

  • Multiple request processing on action of commandLink

    Hi,
    I am working on a transaction based screen where on submit the transaction is done. On submit I have used action parameter of commandLink to perform a transaction. However I am facing a problem. Once submit is clicked, during the processing of the request, If I click Submit again, multiple transaction are done.
    I suspect this is due to action. Is if I use actionListener will this not be happened?
    Please advice.

    I have another screens which do not have this problem. They have used actionListener rather that action.
    My observation are during the processing of the request, on multiple requests made there is an additional transaction happened regardless of number of more request. I mean once you click on Submit, if you click more then 2 times, even though transaction takes place exactly 2 times.

  • HT5622 Trying to get a training room set up with Apple ID's.  Does Apple block an IP if they receive multiple requests for accounts?

    We are training 63 new employees today.  Trying to set up an Apple ID's and iTunes.  All but 4 credit cards are being denied.  Will Apple block an IP if they receive multiple requests from an IP within "x" minutues?

    Hey EdMartin,
    Thanks for the follow up. If your issue persists, I recommend contact iCloud Support as outline at the closure of this resource:
    OS X: Using and troubleshooting Back to My Mac with your iCloud account
    http://support.apple.com/kb/ht4907
    If you still are unable to use Back to My Mac reliably
    Contact iCloud Support. Be sure to provide the following information:
    1. A detailed description of your network setup for each computer, including router types or models and modem brands.
    2. The details or screenshots of any diagnostic messages provided in the Back to My Mac System Preferences pane. (For assistance with screenshots, see this article for OS X Lion or this article for OS X Mountain Lion.)
    3. The results of the traceroute performed on each computer when checking for a multiple NAT setup. (For assistance with capturing the traceroute, see this article for OS X Lion or this article for OS X Mountain Lion.)
    4. The Computer Name and Local Hostname of each of your computers.
    5. Any other troubleshooting steps you have performed.
    Thanks,
    Matt M.

  • Firefox is trying to send strange multiple requests on port 7070. As I allow the request nothing appears in "http headers" addon window. What could this be?

    Hi.
    I discovered my Firefox v26 was SOMETIMES trying to send multiple requests on port 7070 (ukrainian ip-address) independently on what websites were opened at the moment.
    The problem remains after v27 update.
    I have an addon "live http headers" installed.
    As I manually allow the request by firewall nothing appears in the headers window.
    Does my firefox seem to be modified with adware/spyware?

    Have you tried Opening your Firefox in Safe Mode
    [[Troubleshoot Firefox issues using Safe Mode]]
    please report back to us

  • Multiple requests in a single HttpConnection

    this is the point,
    I would like to make a while that sends multiple requests, but with just one HttpConnection.
    something like this:
    import java.io.DataInputStream;
    import java.io.DataOutputStream;
    import java.io.IOException;
    import javax.microedition.io.Connector;
    import javax.microedition.io.HttpConnection;
    public class Ping extends Thread {
        String url;
        HttpConnection conn = null;
        DataInputStream hdin = null;
        DataOutputStream hdout = null;
        public Ping(String url) {
            this.url = url;
        public void openConnection() {
            try {
                conn = (HttpConnection) Connector.open(url);
                conn.setRequestMethod(HttpConnection.POST);
            }  catch(Exception e) {
                e.printStackTrace();
        public void efetuaConsulta() {
           int counter = 0;
           try {
                if(null == conn)
                    openConnection();
                while(counter <= 10) {
                    hdout = conn.openDataOutputStream();
                    hdout.writeInt(counter);
                    hdout.flush();
                    hdout.close();
                    hdin = conn.openDataInputStream();
                    counter = hdin.readInt() + 1;
                    hdin.close();
                    System.out.println("--> "+counter);
            } catch(Exception e) {
                e.printStackTrace();
        public void run() {
            efetuaConsulta();
    }well, this the idea, but its not working....
    this class would send an incremented int every request to my servlet,
    in another project, my servlet would do something....
    but this is not working because it says my DataOutputStream is already opened.
    I tried to do a singleton too, but it doesnt work....
    someone knows how to do it?
    I know it's possible because midp1.0 supports HTTP1.1
    and HTTP1.1 support what Im trying to do here....

    Http 1.1 is not supported. You could implement that yourself...
    try to move the openconnection into the while loop. that should work

  • Error when sending multiple request at same time

    When we send multiple request at the same time, we get an error.
    Same scenario
    XIServer:AE_DETAILS_GET_ERROR:Error while reading from the secure store:
    ERROR_U: No service user password found for Adapter Engine
    The first request is processed OK, it's the second one that gives the error...
    Anybody any ideas?

    Check out the below thread : Re: No service user password found for Adapter Engine
    May be some of the solution from the thread will work for you.
    Thanks,
    Pooja Pandey

Maybe you are looking for