We are trying to achieve Asynchronous Webservice service call
We are using Websphere Portlet factory 6.1.2
There are 4 time action builders (to call 4 web services) on event of page load of a particular tag. Our understadning is these 4 times action builders should get fired parallely on page load, right? But based on the logs it seems that these 4 timed actions are getting called sequentially. This is effecting performance a lot. Questions here are:
1. How to ensure 4 timed actions get called parallely not sequentially
2. Can someone help understand the scenario above. According to my understaning these 4 timed action calls must be asynchronous, right? How come they are called sequentially
Pinned topic Asynchronous Webservice service call
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-05-15T16:26:25Z at 2012-05-15T16:26:25Z by DGawron
kevintap 100000QN039 Posts
Re: Asynchronous Webservice service call2011-03-21T14:27:28ZThis is the accepted answer. This is the accepted answer.WebSphere Portlet Factory implements a semaphore/lock to prevent concurrent execution of multiple actions within the same model. This is why you're seeing the 4 requests serialized. This is done to prevent multiple concurrent requests from attempting to modify the portlet state at the same time.
DGawron 10000054HC50 Posts
Re: Asynchronous Webservice service call2011-03-21T14:58:48ZThis is the accepted answer. This is the accepted answer.The Timed Actions are most likely firing concurrently on the page. Assuming that all of the Timed Actions are targeting the same model, then the behavior you are seeing is related to a semaphore in WPF that serializes concurrent requests into the same model instance. We do this to prevent concurrent requests from the same session stepping on each other and causing unpredictable results. There are a number of ways to achieve what you are after, but the best approach depends upon a few things such as how your web services behave and what other technologies are deployed in your environment. I'd suggest contacting Portlet Factory customer support. They can help collect the relevant data about your requirements and work with Portlet Factory engineering to help you decide on the best approach.
YogeshChouhan 270001XAKY2 Posts
Re: Asynchronous Webservice service call2011-03-22T08:40:09ZThis is the accepted answer. This is the accepted answer.
- DGawron 10000054HC
VenkataRatnagiri 2700059H412 Posts
Re: Asynchronous Webservice service call2012-05-15T15:13:31ZThis is the accepted answer. This is the accepted answer.Hi Buddy's,
I need to create different instantiations for work manager in Asynchronous beans in Resources in web sphere application server console.How to do the process?how to write the code?how to run and how to verify the output?
Why i am using this is,
Use asynchronous beans to improve Web services performance.
how to increase the web service performance using asynchronous beans.
Please give me the solution..As soon as possible .Because this is urgent..
DGawron 10000054HC50 Posts
Re: Asynchronous Webservice service call2012-05-15T16:26:25ZThis is the accepted answer. This is the accepted answer.
- VenkataRatnagiri 2700059H41