Well,

Suppose I have the following code :
interface Foo extend EJBObject {
    void toto(int i) throws Exception;

class FooBean implements EntityBean {
    public void toto(int i) throws Exception {
         try {
             utx.begin();
             < code >
             utx.commit();
           } catch (Exception e) {
                rollback();
                throw e;
         }
    }
}

class Client {
     public void bar(Vector v, String name) throws Exception {
          try {
             utx.begin();
                Foo foo = home.findByPrimaryKey(name);
               for (int i = 0; .....)  foo.toto(v.get(i));
                < some code >
           } catch (Exception e) {
                rollback();
                throw e;
          }
      }
}

Then if I execute something like

Client c = new Client();
c.bar(numbers, name);

what does happened if toto is always committed in the loop but then an
exception occured in the code following the loop?



Philippe Coq wrote:

> occello wrote:
> >
> > Hi,
> >
> > I'm using version 2.1.1 of JOnAS and I would like to know
> > if nested transactions are supported by this version.
> > If not, does the last version support them?
> >
> > Thanks in advance,
> >
> > Audrey
> >
> The nested transactions are not supported by JOnAS.
> The EJB Specification says in the "Support for Transactions" chapter
> "The Enterprise JavaBeans architecture supports flat transactions. A
> flat transaction
> cannot have any child(nested) transactions."
> Regards,
>
> --
>         Philippe
>
> Philippe Coq  Evidian   Phone: (33) 04 76 29 78 49
> Bull S.A  - 1 rue de Provence - 38432 Echirolles Cedex France
> Download our EJBServer at http://www.objectweb.org

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to