hai Ram,

According to the EJB specs we cant implement threads
in EJB(both)(i.e explicitly prohibits beans from
creating their own threads).As a bean developer you
cannot create a thread within bean.
This is beacause the EJB container has to maintain
complete control over the bean to properly manage
concurrency,transactions,persistence.
As a developer if you create threads, this would make
impossible for the container to manage the primary
services.

Hope this will help you.

Bye.

Itz,
Sridahar Akula




 <[EMAIL PROTECTED]> wrote:
> hi,
>
> I have a requirement wherein I need to replicate the
> Data of around 400 Tables. This
> is being accomplished by means of a Stored Procedure
> this will take some hours. I am calling this Entity
> Bean from a Session Bean. What I
> want is that I should come out of the loop.
>
> Hence I am planning to start a separeate thread from
> Session Bean and call the Ent
> Bean. As it is the Session bean will be free and I
> will get the response back to the
> point from where I called SB. Is it advisable to do
> like this?? A new Thread from a
> SB? Transaction is not imp to me here.
>
> Any ideas/suggestion will be highly appreciated.
>
> Thanks,
> Ramki.
>
>
===========================================================================
> 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".
>


__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

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