You don't want threads on the server for the very simple reason, it mucks up
the app server. For more detail you can read the spec or orielly's ejb book.
To do what you want, requires something along the lines of job scheduling. You
can read about it at
http://theserverside.com/resources/jobj2ee.jsp
Matt Bauer
Ashish Kalra wrote:
> Can you also please suggest some options for how to achieve something I am
> trying to achieve?
>
> Thanks,
> -ashish
>
> -----Original Message-----
> From: Bono, Chris [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, January 05, 2001 10:38 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Thread on the EJBServer
>
> Ashish,
> I am not familiar w/ JBoss but one thing I do know is you should not
> be
> starting a thread from an ejb
>
> Chris
>
> >>>The thread is started through static code in one
> >>>of the beans.
>
> -----Original Message-----
> From: Ashish Kalra [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 05, 2001 6:37 AM
> To: [EMAIL PROTECTED]
> Subject: Thread on the EJBServer
>
> I need a thread on the EJB Server which needs to keep doing some
> background
> processing all the while. This thread is another class which from
> time to
> time should be able to access a bean and invoke its method. I am
> trying to
> get reference to the Home Interface by using look up with the
> Initial
> Context. I get a ClassNotFoundException which says that the Home
> class for
> the Bean could not be found. This thread class and Bean are in the
> same jar
> in Jboss's deploy folder. The thread is started through static code
> in one
> of the beans.
>
> Any help will be greatly appreciated.
> Thanks,
> -ashish
>
> ===========================================================================
> 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".
>
> ===========================================================================
> 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".
>
> ===========================================================================
> 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".
===========================================================================
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".