as I understand it, "Supports" means that if invoked by another method then
your method will run in the same transaction context as that method. If
invoked directly, or invoked by another method without a transaction context
of "Required" (or "Mandatory", etc), then your method will be running with
no transaction context.
paul
----- Original Message -----
From: "Rhodes, Phillip C." <[EMAIL PROTECTED]>
To: "JRun-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, December 12, 2000 11:20 AM
Subject: RE: BMP EJB gives error on context.setRollbackOnly?
> I did not. This should not be necessary since the default is "supports"
>
> Here is what I would put...
>
> <env-entry>
> <env-entry-name>ejb.transactionAttribute</env-entry-name>
> <env-entry-value>required</env-entry-value>
> </env-entry>
>
> Phillip Rhodes
> [EMAIL PROTECTED]
> Alcoa eCommerce
> https://www.ALCOADIRECT.COM
> 826B Two Allegheny Center Pittsburgh, PA 15212
> (412) 553-4900 (phone) (412) 553-2484 (fax)
>
>
> -----Original Message-----
> From: paul [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 12, 2000 11:35 AM
> To: JRun-Talk
> Subject: Re: BMP EJB gives error on context.setRollbackOnly?
>
>
> Did you specify the <container-transaction> settings in the deployment
> descriptor?
>
> ----- Original Message -----
> From: "Rhodes, Phillip C." <[EMAIL PROTECTED]>
> To: "JRun-Talk" <[EMAIL PROTECTED]>
> Sent: Tuesday, December 12, 2000 8:20 AM
> Subject: BMP EJB gives error on context.setRollbackOnly?
>
>
> > I have several BMP ejb's that will sometimes generate SQL exceptions in
> > their operations. When I catch the SQLException, I try to do a rollback
> on
> > the context
> > (context.setRollbackOnly();)
> >
> > I get an error:
> > java.lang.IllegalStateException: Call with no transaction context
> >
> > Can someone tell me what is going on?
> >
> >
> > Thanks!
> >
> >
> >
> > Phillip Rhodes
> > [EMAIL PROTECTED]
> > Alcoa eCommerce
> > https://www.ALCOADIRECT.COM
> > 826B Two Allegheny Center Pittsburgh, PA 15212
> > (412) 553-4900 (phone) (412) 553-2484 (fax)
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists