[jboss-user] [JBoss Seam] - trouble with Asynch

javajoe220 do-not-reply at jboss.com
Tue Mar 20 19:29:27 EDT 2007


Hello,

I am very interested in using the @Asynchronous  and Event.raiseAsynchronousEvent functionality.  However, its lack of access to the Conversation and Session scope is difficult to work around.  The documentation states the following:

anonymous wrote : We usually use an asynchronous call when we want to return an immediate response to the client, and let some expensive work be processed in the background. This pattern works very well in applications which use AJAX, where the client can automatically poll the server for the result of the work.
  | 

This sounds great and is exactly what we want to do! A brief summary is as follows:
1) A user does a search.
2) When the user selects a search results it kicks off a conversation and several areas are initialized in respect to the selected search item via Event / Observer.  Each Observer is in a stateful session bean with a conv. scope.  
3) We then access the data we need from each bean.

I would really like to make these initialization routines async without doing some context gymnastics to get the results in the conversation scope.  The doc I quoted suggests "polling" but unless we put the results in the business or application scope I don't see how it is possible.  Please let me know if I am missing something here or if you may have any suggestion?

Thank you.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030051#4030051

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030051



More information about the jboss-user mailing list