After searching the list about the callback topic, I think the only solution
suggested was client polling. In my business scenario, a client request can
only be answered with a delay of up to 30 seconds, because the response
comes partly from a user sitting in front of a monitoring GUI. So I don't
like to block the client call to wait for the response coming back and I
don't like to poll from client every second either. The most elegant way for
me to solve this problem is using server callback or something similar such
as JMS.
Everytime when a client starts a request, a temporary queue is created for
that client only, so that the client can register a MessageListener on that
queue. After the response is available, it will be pushed into the temporary
queue, so that the client can be notified of the resposne and the queue can
be removed.
I know this model is very thereotical, so any comments is welcome.
regards
Dapeng Wang
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".