why don't you essentially roll your own message driven bean?  have a process
sitting out there (not ejb) listening to a jms queue.  as it gets orders off
the queue, it processes them by synchronously calling an ejb, getting the
result, and notifying the client via another queue.  the process, since its
not ejb, could be multi-threaded to support simultaneous processing of
multiple orders.

eric

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Edward Q.
Bridges
Sent: Wednesday, February 13, 2002 9:08 AM
To: [EMAIL PROTECTED]; Jboss User (E-Mail)
Subject: Re: AW: [JBoss-user] How can I use a background process with
JBoss



you could write a cron-job which selects all unacknowledged orders,
processes them, and then acknowledges each order within a transaction.

it doesn't rely on jboss (or ejb for that matter), but there is no way
(that i know of) to do asynchronous processing in ejb 1.1.  (that's why
message beans were introduced in 2.0 AFAIK).

--e--




On Wed, 13 Feb 2002 15:02:19 +0100, Dirk Storck wrote:

>I can't use MessageDrivenBeans cause we have to use EJB1.1
>
>-----Urspr�ngliche Nachricht-----
>Von: Edward Q. Bridges [mailto:[EMAIL PROTECTED]]
>Gesendet: Mittwoch, 13. Februar 2002 14:54
>An: [EMAIL PROTECTED]; Jboss User (E-Mail)
>Betreff: Re: [JBoss-user] How can I use a background process with JBoss
>
>
>
>why not just send the user an email after the order has been processed?
>
>you could process the order using a message-driven bean that sends an
email
>when completed, since you won't know if the user is still available
after
>processing the order.
>
>HTH
>
>
>
>
>On Wed, 13 Feb 2002 14:16:36 +0100, Dirk Storck wrote:
>
>>How can I achieve this with JBoss and Struts ? What would be the best
way
>to
>>implement this




_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to