Async calls blocking on server?

14 views
Skip to first unread message

cricar

unread,
Jan 20, 2011, 4:59:06 AM1/20/11
to jabsorb-user
Hi there,

I noticed this behavior now, for the first time:
If I do 2 async calls to the same bean and the same method, the second
one will wait for the first call to finish before performing.
Is there a way to let them run at the same time?


Regards,
Cris.

William Becker

unread,
Jan 20, 2011, 5:11:51 AM1/20/11
to jabsor...@googlegroups.com
This shouldn't be the case. Everything ought to be running independently in their own request. Could it be that your web server is only configured to process only one thread at once?

Cheers,
Will


--
You received this message because you are subscribed to the Google Groups "jabsorb-user" group.
To post to this group, send email to jabsor...@googlegroups.com.
To unsubscribe from this group, send email to jabsorb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jabsorb-user?hl=en.


cricar

unread,
Jan 20, 2011, 5:37:08 AM1/20/11
to jabsorb-user
Hi Will,

Thanks for your reply.
Because I knew each one goes through its own request, I was so
surprised when I saw them blocking each other.
And, as both requests end up in the jabsorb servlet, I thought /
hoped it's something there...
I'll check your suggestion about the server. I think it's very
improbable that they configured the server (IAS) like that, but who
knows..
Again, thanks for the suggestion.

Cheers,
Cris.


On Jan 20, 11:11 am, William Becker <wbec...@gmail.com> wrote:
> This shouldn't be the case. Everything ought to be running independently in
> their own request. Could it be that your web server is only configured to
> process only one thread at once?
>
> Cheers,
> Will
>
> On Thu, Jan 20, 2011 at 9:59 AM, cricar <cricar4...@yahoo.de> wrote:
> > Hi there,
>
> > I noticed this behavior now, for the first time:
> > If I do 2 async calls to the same bean and the same method, the second
> > one will wait for the first call to finish before performing.
> > Is there a way to let them run at the same time?
>
> > Regards,
> > Cris.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "jabsorb-user" group.
> > To post to this group, send email to jabsor...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > jabsorb-user...@googlegroups.com<jabsorb-user%2Bunsu...@googlegroups.com>
> > .

cricar

unread,
Jan 20, 2011, 8:16:19 AM1/20/11
to jabsorb-user
Hi again Will,

I gave five stars to your replay, because it put me on the right
track.
I tested in Eclipse with Tomcat and i got one thread assigned per user
session.
So there's the bottleneck.

On Jan 20, 11:11 am, William Becker <wbec...@gmail.com> wrote:
> This shouldn't be the case. Everything ought to be running independently in
> their own request. Could it be that your web server is only configured to
> process only one thread at once?
>
> Cheers,
> Will
>
> On Thu, Jan 20, 2011 at 9:59 AM, cricar <cricar4...@yahoo.de> wrote:
> > Hi there,
>
> > I noticed this behavior now, for the first time:
> > If I do 2 async calls to the same bean and the same method, the second
> > one will wait for the first call to finish before performing.
> > Is there a way to let them run at the same time?
>
> > Regards,
> > Cris.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "jabsorb-user" group.
> > To post to this group, send email to jabsor...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > jabsorb-user...@googlegroups.com<jabsorb-user%2Bunsu...@googlegroups.com>
> > .

William Becker

unread,
Jan 20, 2011, 9:40:46 AM1/20/11
to jabsor...@googlegroups.com
No worries. Glad to know it does work!

To unsubscribe from this group, send email to jabsorb-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages