"claudehussenet" wrote : NP! Thx for your reply.
|
| Let me know when u're planning to support an interceptor chain
| in a separate thread.I will be happy to do a beta tester !
|
| My aim is to be able to support asynchronous call for POJO
| as follow:
|
| public class MyBusinessLogic
| {
| public someParameters someBusinessLogic(....){}
| }
|
| //Explicit call or could be passed as metadata
| ((AsynchronousFacade)pojo).setTimeout(2000);
|
| //Asynchronous call (Per instance)
| someParameters =pojo.someBusinessLogic(...);
| ..
| ..
| // Non blocking call
| if (((AsynchronousFacade)pojo).isDone())
| {
| if (((AsynchronousFacade)pojo).getResponseCode()==OK)
| {
| someParameters = (SomeParameters)((AsynchronousFacade)pojo).getResponse());
| }
| else if (((AsynchronousFacade)pojo).getResponseCode()==TIMEOUT)
| {
| }
| }
|
| OR
|
| // blocking call .
| AsynchronousResponse asynchronousResponse
=(AsynchronousFacade)pojo).waitForResponse();
|
| }
|
|
| It's almost working but as u pinpoint the currentInterceptor index
| is reset to 0 when the invocation is executed in a separate thread.
|
| Rgds,Claude
|
|
Interesting.....I'll implement this today then. Are you comfortable about getting
JBoss AOP from CVS?
BTW, Are you interested in contributing this? Becoming a committer? I also want to
do this asynchronous stuff but use JMS as the transport. If you are interested, let's
start a new topic to discuss this.
Bill
<a
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827738#3827738">View
the original post</a>
<a
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827738>Reply
to the post</a>
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development