Ashish,

The EJB container manages several resources as a service to ease the programming 
burden associated with creating these business objects (EJBs).  One of those resources 
is threads.  By attempting to create your own worker threads, you circumvent the 
container's management of these resources.  The impact probably varies with the 
container implementation; however, it is probably always negetive. :)

Try revisiting your object design to solve the problem.  You will probably be happier 
with the results.

Have fun...
Bob Baker





-----Original Message-----
From:    Ashish Kalra [EMAIL PROTECTED]
Sent:    Fri, 5 Jan 2001 23:21:22 +0530
To:      [EMAIL PROTECTED]
Subject: Re: Thread on the EJBServer


Thanks Chris.

Can you please elaborate a little on why it should not be done, or tell me
of some source from where I could gain this knowledge.

Thanks again,
-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".




___________________________________________________________________________
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.

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