Mike Williams wrote:
>
> I'm building an application that will allow users to manipulate
> real-world systems (routers, in this case) via a web application. But we
> can't perform changes in real-time, because:
>
>   1. changes can take several minutes to implement
>   2. the systems may be in use, such that it's not appropriate to make
>      the change now
>
> So, my app will allow changes to scheduled as "jobs" to be performed
> asynchronously ... possibly with a delay until a nominated time.
>
> My prototype stores jobs in a database, and periodically polls for jobs
> that are ready to go. But there's got to be a better way!
>
> I'm thinking of something like an EJB Session Bean that implements the
> scheduling engine. But I'm going to need something with it's own thread
> of control, in order to trigger jobs that are ready to be processed ...
> EJBs can't have threads associated with them, can they? Can anyone
> recommend a suitable model using EJBs?

First of all: why are you using EJB's in the first place? I can't see
any good reason for you to use EJB.

Given the above description I would instead either go with JMX (not sure
if it has been released yet though) or JMS/servlets (given the
asynch/web style requirements).

/Rickard

--
Rickard �berg

@home: +46 13 177937
Email: [EMAIL PROTECTED]
Homepage: http://www-und.ida.liu.se/~ricob684

===========================================================================
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".

Reply via email to