Hi, Mani,
    Could you please tell me where is the article about EJB and JMS you
read?

    Regards

Shawn

----- Original Message -----
From: Joel Crisp <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 26, 1999 2:48 AM
Subject: Re: EJB and JMS Integration


> Hi Mani
>
> Mani wrote:
> >
> > Hello,
> >  I've couple of questions regarding EJB and JMS Integration. I read an
article about EJB and JMS, which says
> > "EJBs are not allowed to create threads, so it can't create a thread to
call QueueReceiver.receive() to receive the messages from JMS".
> > 1. If  my EnterpriseBean doesn't want to receive any messages from JMS
and interested in only putting the messages to the JMS, can I use JMS ?
>
> Yes. You can also recieve messages, but you have to do it in a pseudo EJB
client - not
> a nice solution. Later EJB specs will clarify this.
>
> >
> > The same article also mentioned "EJB app servers are not integrated (I
know some of the EJB app servers are integrated with JMS. But I'd like to
know the issues  if an app server is not integrated), JMS can't invoke the
onMessage callback of EJBs within the EJBContainer
> > 2. If my EnterpriseBean is not interested in notifications from JMS what
other problems I'll have?
>
> Data consistancy.
>
> >
> > Suppose if I'm using an EJB app server that is integrated with JMS, if I
add a message from an EnterpriseBean to JMS within a Transactional context,
how the transactional integrity is preserved  as the message is added from
the EnterpriseBean's transactional context to the JMS?
>
> JMS supports the use of transactions so _should_ be seamless. In practice
your mileage may
> vary. Note that the JMS terminus client also needs to be transaction
aware.
>
> >
> > I'm trying to understand the issues behind creating threads, using JMS
from an EnterpriseBean.  Any pointers on the net will help me a lot.
>
> Don't. The only place you can create threads is outside the EJB container,
typically
> in a startup class for the EJB containers' JVM. You can also use a thread
external
> to the container to create more threads.
>
> >
> > Thanks for your Time
> >
> > -Mani
> >
> >
===========================================================================
> > 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".
>
> Joel Crisp, Senior Java Architect, SUN PS Java Center (UK)
>
>
===========================================================================
> 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".

Reply via email to