I can see why you do not want the transaction to time out, but why does it
matter whether the bean is passivated? What does this effect, other than
performance? Doesn't the container activate the bean again as needed? I
would have to check the EJB spec, but I think a container is generally
within its rights to passivate whenever it wants. The purpose of passivation
is for scalability, which the container is supposed to manage for.
Rick Hansen
The views, opinions, and judgments expressed in this message are solely
those of the author. The message contents have not been reviewed or
approved by West Group.
> -----Original Message-----
> From: sujith s.pillai. [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 06, 2001 2:10 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Re: Re: Transaction timeout
>
>
> Thanks Simon, it worked.
>
> My objective is to control the passivation of the
> beans by setting the transaction boundaries using the
> methods UserTransaction.begin() and
> UserTransaction.commit(). The bean should not get
> passivated during this transaction period. However, I
> find that JBoss passivates my bean, eventhough it is
> in the midst of a transaction.
> The reason why I do not want the bean to get
> passivated:
> It is a stateful session bean having a DataSource
> connection, which I need to maintain throughout the
> lifetime of the application for the user to be able to
> move through the record set. Otherwise, since I am
> using a database format (DDS in AS/400) which does not
> have any unique keys, it is not possible to maintain
> the current cursor position.
>
> I thought by demarcating the boundaries of the
> transaction, I will be able to avoid the passivation
> of the bean. But now, it seems JBOss is passivating
> the bean in spite of having a transaction associated
> with it.
>
> Is it not possible to control passivation in JBoss by
> using bean managed transactions?
>
> Thanks,
> Sujith S Pillai.
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user