Problem with multiple requests

I have a problem with the users submitting multiple requests simultaneously.
Let me put it this way:
1. User is on a tabbed panel with clear and search buttons.
2. User clicks on 'clear' button from any tab (request one). On successful completion, it should reset and load tab one.
3. Before the tab one loads, user again clicks (request two) on a different tab two. (Tabbed panel - server side tab switch)
4. As a result, tab two loads. Now when I click on tab one, the default values are not getting set.
Now when I look at my phase listener logs:
Processing new  Request!
St - RESTORE_VIEW 1
En - RESTORE_VIEW 1
St - APPLY_REQUEST_VALUES 2
En - APPLY_REQUEST_VALUES 2
St - PROCESS_VALIDATIONS 3
En - PROCESS_VALIDATIONS 3
St - UPDATE_MODEL_VALUES 4
En - UPDATE_MODEL_VALUES 4
St - INVOKE_APPLICATION 5
En - INVOKE_APPLICATION 5
St - RENDER_RESPONSE 6
Processing new  Request!
St - RESTORE_VIEW 1
En - RENDER_RESPONSE 6
Done with Request!
En - RESTORE_VIEW 1
St - APPLY_REQUEST_VALUES 2
En - APPLY_REQUEST_VALUES 2
St - PROCESS_VALIDATIONS 3
En - PROCESS_VALIDATIONS 3
St - UPDATE_MODEL_VALUES 4
En - UPDATE_MODEL_VALUES 4
St - INVOKE_APPLICATION 5
En - INVOKE_APPLICATION 5
St - RENDER_RESPONSE 6
En - RENDER_RESPONSE 6
Done with Request!Looking above its very clear that request two begins before the completion of render response phase of request one. I guess thats where the problem lies and users are not really interested in solution provided by me to use javascript and freeze the page until request one completes.
I would like to know if it is possible to hold a second request in the phase listener until the first request gets completed. Any help would be highly appreciated.
Thanks.

Thus, you want to keep user/session-specific requests in a synchronized queue? You could put a lock in the HttpSession on start of request and remove it on end of request and synchronize the requests on that lock. You can use a Filter for this which is mapped on FacesServlet.
It's all theory and I've never done it, so I can't give a "safe" code example out of head. But googling using the terms "synchronized, lock, httpsession" gives lot of the same ideas, some with examples, under each this article: [http://www.ibm.com/developerworks/library/j-jtp09238.html].

Similar Messages

  • 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

  • Problem with multiple Toplink/JPA apps in same server

    Anyone have experence of running serveral Toplink/ EJB-3 Web apps in the same server (OC4J, alas)?
    We seem to get a problem with the second app failing to initialise toplink, with an entity not found message. Each app runs OK on it's own.

    Yes, they access the same datasource and most of the tables overlap.
    We're thinking it might help to have common entity classes and put them in a shared library, but I don't know if this is relevant (setting up shared libraries complicates testing and tends to snowball, I reckon we need about 15 jars all told).
    I''ve had some funnies on OC4J before which I think may be to do with it's use of ClassLoaders, for example I initially put persistence.xml in the libary jar with the data model, but for some reason I get the entity not found error that way. It only seems to work if it's in the classes folder.
    For the moment we're getting arround the problem with multiple OC4J instances in the server.

  • Problem with multiple versions of documents being published with 001, 002, etc.

    I am using Contribute CS3. I am having a problem with multiple versions of documents being published on the sever with 001, 002, etc in the name. So that I end up with 2 or 3 versions of a document on the server. Does anyone know why / how Contribute  is doing this? Thanks for any help you can give.

    Your Web site administrator will need to update your key to allow you to delete files you are able to edit.

  • Problems with multiple idocs in one file ( Inbound file )

    HI,
    Thanks in Advance for your suggestions.. Highly appreciated.
    We have problems with multiple IDocs in one file.
    We are using XIB ( Amtrix ) as Middleware to receive the files.
    Curretenly When the file contains one IDoc then there is no problem. IDoc is created and everything is ok.
    If file contains two IDocs ( for example two messages ORDERS and DELVERY ) then it is creating two IDocs but both IDocs contains ORDERS plus DELIVERY segements information. That is the problem. Some how SAP unable to differentiate the IDocs in the file.. But it knows that how many idocs are there in the file..because it is creating exact number of idocs.
    We are using TRFC port ... Do I need to change it to File port..
    When we have more than one idoc do we need set any parameter in the file ...

    Thanks for the swift response. Always ideas are useful.
    As of now , Middleware cannot split the file.
    Thing is SAP is creating two Idocs with different message types. Problem is First IDoc contains ORDERS message type but also DELIVERY segments as well. Second IDoc with DELIVERY message tyoe but ORDERS segments as well... This is the problem... I think we are missing some field activation in file for EDIDC record.
    As far as I know file port supports the number of IDocs in one file.. Hope TRFC port also supports that

  • Unable to view Behance - Oops! There was a problem with your request

    Hi,
    Today, I am unable to view Behance and I'm unable to log in as well.
    Received the error message - Oops! There was a problem with your request.
    Please refresh the page to try again.
    Contact support if the problem persists.
    Does anyone has the same problem, Anyone knows how to resolve this?

    Hi - we can definitely help! To have a private convo where we can give you your accont info, please write us a ticket here and someone will get back to you ASAP:
    Behance Support & Forum : Submit a request for assistance

  • Problem with multiple forms and subview

    I have a problem when using NetBean Web Pack (JDK6, Net Beans 5.5, JSF 1.2).
    1) I created a JSF page (hello.jsp) and a page fragment (header.jspf) inside Web Pack, and let the JSF page (hello.jsp) includes the page fragment.
    2) The include instruction is outside of the "form" element id=main_form() of the first JSF page.
    3) Inside the page fragment (header.jspf), I put a form (id=header_form) with some input fields inside the "subview" element.
    4) When running the web application, the form and its children (id=header_form) inside the subview are not rendered.
    It seems to be a problem with multiple forms on a page and the subview.
    Do I use these JSF components incorrectly? Any advice?
    Thanks

    The forms are not nested.
    hello.jsp
    <webuijsf:body ...>
    <!-- BEGIN: include header -->
    <div style="margin: 0px 0px 10px 0px; left: 0px; top: 0px">
    <jsp:directive.include file="Header.jspf"/>
    </div>
    <!-- END: include header -->
    <webuijsf:form ...>
    From above fragment, you can see the header.jspf is outside of the form element.

  • LOV Problem with multiple values

    HI All,
    I have a problem with LOV .When ever i click LOV after search button all values are displaying fine.
    But when i get so many values i want to select only one vlaue that is not cmng to the main page ....Cursor is in running state always after that time out error is coming in my application .
    This problem is coming with with only single value selection in lOV only problem with Multiple values retrival that time only...
    (Iam using 11.1.1.3 Jdeveloper.)
    Thanx in advance...

    duplicate of {thread:id=2286814}

  • Lp - problems with multiple files ?

    Does anyone know of or have experienced problems with the lp command and
    multiple files on Solaris 5.6?. Currently when trying to print issuing one lp command for 164 files from within a script i.e lp file1 file2 file3..... file164, a request id is received for the job but then the job just disappears, no error message, nothing !. Any ideas ?

    Thanks for the swift response. Always ideas are useful.
    As of now , Middleware cannot split the file.
    Thing is SAP is creating two Idocs with different message types. Problem is First IDoc contains ORDERS message type but also DELIVERY segments as well. Second IDoc with DELIVERY message tyoe but ORDERS segments as well... This is the problem... I think we are missing some field activation in file for EDIDC record.
    As far as I know file port supports the number of IDocs in one file.. Hope TRFC port also supports that

  • Error with multiple requests

    Hi,
    I'm using JSC2_1. I've developed page with table bound to database table via data provider. There are about 1000 rows in database table so my table component has pagination buttons (about 100 pages).
    My problem is that when user clicks pagination buttons quickly (before response is sent) then server fails with error 500. I think that multiple request threads are being launched and they all access CachedRowSet in the same time. According to http://blogs.sun.com/jfbrown/entry/cachedrowsetdataprovider_and_cachedrowset_info CachedRowSet is not thread safe.
    Is there any way to block user from sending multiple requests? Another solution would be locking the rowset but I don't know how to do this.
    regards
    Grzegorz

    OK then I doubt Bios is the issue. I had to check though.
    I run the same software as you do for that wheel however I have Windows 2k SP4. While I doubt the underlying OS is the issue I did ask as it may have been a Service Pack Issue. As you have a current version then I can only assume that is OK.
    Which Via drivers are you using? If they are a Hyperion driver set from Via there are issues with some of their versions. Try updating with the Via 3in1's that came on the MB Driver CD you got with the board.
    Otherwise this may be an issue best asked of Logitech as well as I have no idea what their error reporting is trying to tell us. No I am not saying it is the wheel. I am saying we may get a better handle by knowing what that error code is trying to say is all.
    Oh ya. Make sure also in Bios that you turn on Legacy Devices. I have that on with mine as well. I did not try the wheel without it but it could be an issue although a remote one. It is something to make sure of though.
    Also if your using an external USB hub try the wheel directly into the computer rather than through the hub.
    Also if you have a memory card reader or other USB devices try the wheel with them unplugged just to make sure there are no conflicts.
    I am off to sleep but let me know and I will try to help more tommorow if that doesn't help.

  • .MSG files. Problem with getting requested values from crawled properites

    Hi
    I have a lot of msg files on my file server. I use SharePoint Enterprise Serach engine to crawl all these MSGs.
    I would like to get extra managed properties out of these files. I am most interested in getting Mail:5(text) / Mail:12(Date and Time) / Mail:53(Date and Time) from MAIL category in Managed Properties.
    This thread is very similar to one already posted by SpinnerUp:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/82d69df0-5cb2-4e51-a485-34209e111f4b/problem-with-crawling-msg-files-doesnt-seem-to-return-requested-values-from-crawled-property
    Please be aware that I do not use Public Folders. These MSGs are exproted from Outlook and are stored on File Server not Exchange.
    I tried to link Crawled Properties to new property however I cannot get any results back.
    Thank you for you help.
    Regards, Marcin (Please mark as helpful or answered if it helps)

    Thank you for your replay.
    However I am not keen to write custom connector at this stage.
    Is it possible to simply get "Subject", "Sent", "Received" info from msg file and then map it to managed properties.
    Does SharePoint create any crawled properties which contain information about let's say "Subject" which then can be used to create managed properties?
    I tried playing with "MAIL" properties however I cannot get them to work. I guess this is because the file is a msg file rather than mail which is stored in Exchange Public Folder.
    Regards, Marcin (Please mark as helpful or answered if it helps)

  • Urgent - problem with multiple users on same page

    Hi all,
    I have got an big problem with my app:
    when several users are using the same page, the action launched by USER_A affects the page displayed and used for USER_B.
    If there is only one user using the page, there is no problem at all.
    The webapp is deployed on Tomcat or JBoss and the problem remains the same on both.
    Thank you for your help.
    PS: I am not accurate because I don't know what to paste here.

    In fact, all my page beans are in REQUEST scope...
    The only bean in Application scope is the standard applicationBean created by Creator itself.
    We use one Bean in session scope which contains another class.
    I will try to explain our common process:
    - when logging into the app, the session Bean stores user data (rights for using app,...);
    - when navigating in the app, the user can search data, modify them and create one (if he has the right to do it);
    - to define the screen, we use a lot the beforeRenderResponse();
    - when viewing a data, the user can choose to modify it, so depending on the action, the page is in "CONSULT" mode or "MODIFY" mode. In the second one, he can display new gridPanel (as a subform) to populate datatable.
    The problem is obvious while using this grid: my grid can disappear if someone else has validated his form before me and if my page goes trough the beforeRender of my page.
    It is not really clear. If needed, i can give access to our application to show the problem (and msn adress too to talk about it).
    Thank you

  • HT6065 I installed this update.  I have never had problems with "multiple prompts to unlock "Local items" keychain" until after I installed this update.  Now, I can't get it to STOP prompting me.

    So how do I fix this?  How do I get this to go away?  It's prompting me for a password that I haven't ever set up!

    I have the same problem with three pop-up prompts:
    (1) com.apple.iCloudHelper wants to use the "login" keychain. Please enter the keychain password.
    (2) CalendarAgent wants to use the "login" keychain. Please enter the keychain password.
    (3) AddressBookSourceSync wants to use the "login" keychain. Please enter the keychain password.
    I can enter my login password and the prompt goes away for a little while, but eventually returns.  Or I can click on "Cancel" many multiple times and it goes away for a little while, but returns again.
    I want a solution too and hope this additional information will help.

  • Candlestick chart problem with multiple series

    Hello,
    I added one mx:CandlestickSeries object and couple additional
    mx:LineSeries objects to the chart. All series are represented but
    still I have one problem. More series I add - less candles are
    becoming of CandlestickSeries data. It seems that there should be
    any scaling option for all series in the chart or something like
    this, but I cannot find it. I'm still new in Flex Can anyone halp
    me with this?
    Thanx in advance
    marukas

    I've added screenshots to get better view of the problem.
    Here is chart with addtional series:
    Chart
    with multiple series
    And here nothing is changed except that additional line
    series were removed:
    Chart
    with only one CandlestickSeries
    Is it possible to get the same candles as in 2nd view with
    addiotnal series added?

  • Problem with multiple client numbers from a view

    Hi Gurus,
    I have a problem with a view
    Creates a view with a UNION ALL stmt
    =====================================
    Create view vw_benifits
    as
    SELECT
         Client_num, -- can have multiple values like 200,201,250
         PERNR,     
         OBJPS,     
         ENDDA,     
         BEGDA,
         AEDTM,     
         UNAME,
         COB_MNTH_AMT
    FROM
         STG_SAP_PA9211_TB
    UNION ALL
    SELECT
         null, -- no client number for legacy data
         PERNR,     
         OBJPS,     
         ENDDA,     
         BEGDA,
         AEDTM,     
         UNAME,
    COB_MNTH_AMT
    from
         LEG_STG_SAP_PA9211_TB;
    ==============================
    The second table contains legacy data (LEG_STG_SAP_PA9211_TB). The first table now contains multiple client data (ie the client_num can be 201,202,250 like that.
    Now if the users qery the view they will only get that clients data.
    eg selet * from vw_benifits where client_num=250 results only client 250 data. But I want to add the legacy data also with that.
    I don't want to propose
    selet * from vw_benifits where client_num in (250,NULL) since the users will be confused.
    Is there any other way to do this . my requirement is like
    If they query
    select * from vw_benifits where client_num=250, the data should include all the records satisfying client=250 + the records from the legacy data. The view need to be created like that.
    Appreciate your help
    Deepak

    Hi Thanks for the suggestion.
    But I am not sure this may work for me. Here my users may not be able to use that since they don't know Oracle.
    I want to hide that details from them
    They may just issue a statement like this
    select * from vw_benifits where client_num =250
    Or
    select * from vw_benifits where client_num =400 . But both times I need to show them the data from the legacy table.
    Deepak

Maybe you are looking for

  • Attribute value has to be changed

    Hello all, I have a requirement in R/3 one of the customer email address changed recently and it should replicate in BW. When i checked in BW this attribute is Display attribute and when i checked in /BIo/pcustomer and /BI0/xcustomer it is showing ol

  • Assign chart of Depreciation to Company code

    Hi, I have 10 Company codes out of which i need to delete 5 company code data totally. I am able to delete FI and CO Data, while deleting Asset accounting data ( Reset company code) i am getting error as "Company code not defined for Asset Accounting

  • Query resulting in cartesian product-plz help

    select count(distinct e.hiredate),count(distinct b.hiredate) from scott.emp e, scott.emp b where e.hiredate<to_date('01-DEC-80','DD-MON-YY') and b.hiredate<to_date('23-JUN-81','DD-MON-YY')

  • How do I print in reverse for iron-on transfer sheets?

    trying to print a quilt label in reverse using MS Word using HP printer... I selected HP iron on from the page setup but it didn't reverse the words

  • Airport Extreme 802.11n sharing a disk with a -1 on the mount point

    First I have to reboot the device once a day because of the disk that disconnect for no reason like many other on the list ever since I upgraded to 7.2.1 but not sure that as to do with this problem. Here's is the deal, I have an Airport Extreme 802.