Hello Karl-Fredrik,

thank you for your answer, it nicely completes Rickard's proposition. I'll
use this way.

Cheers,



                                Sacha

> -----Message d'origine-----
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de Karl-Fredrik
> Blixt
> Envoye : jeudi, 4 janvier 2001 13:30
> A : jBoss
> Objet : Re: [jBoss-User] Callback to clients
>
>
> Sacha Labourey wrote:
> >
> > This does not seem to fit in the EJB concept. Am I wrong?
> >
> Currently, no. JMS in the upcoming 2.0 spec should be what you need.
>
> > How to implement these call-back and server background
> processing with the
> > EJB?
> >
> You could have the client register itself as an RMI object, pass itself
> along (thus being converted into a stub), then have the EJB call a
> service passing the stub along as a parameter, and then return
> immediately. The service that performs the actual work (eg downloads the
> file) would then call the client through RMI when it is done:
>
> client   EJB    stub  service
>   |       |              |
>   | foo() |              |
>   |------>|      | bar() |
>   |       |------------->|
>   |       |      |
>   |              |
> Call has returned to the client.
> The service now performs the actual work (timed, new thread in bar() or
> whatever).
>   |              |
>   |              |       |---
>   |              |       |   | baz()
>   |              |       |<--
>   |              |       |
>   |              | done()|
>   | done()       |<------|
>   |<-------------|
>   |              |
>



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to