Philippe Durieux wrote:
> 
> Philippe Durieux wrote:
> >
> > "Keith L. Musser" wrote:
> > >
> > > I've recently downloaded and run the JONAS server.  My problem is with
> > > transactions in the sample "ClientOp".  I am able to obtain a
> > > UserTransaction object from JNDI.  The client runs to completion,
> > > invoking methods on the bean.  However, the client transactions are
> > > not handled properly.
> > >
> > > So when the client does "utx.roleback()", this is ignored by the Bean,
> > > and the answer is wrong -- it prints out "Bad value: 80".
> > >
> > > What do I need to do so that the client transaction is recognized by the
> > > server?
> > >
> > > NOTES:
> > > (1) Using Windows NT
> > > (2) Client and server on same machine
> > > (3) jonas.properties file specifies jonas.tm.remote = false
> > >
> > > Keith L. Musser
> > >
> > > ----
> > > 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".
> > No idea. This should work (it works obviously in my own environment)
> > Did you notice some strange message on the EJBServer ?
> > What kind of database are you using ? Are you sure it handles rollbacks
> > correctly ?
> > You can also try setting some traces to see if something wrong
> > happened...
> Hi Keith,
> Sorry, for that quick bad answer. Obviously this example does not uses
> any database.  The problem could be that a problem occured on the server
> (any exception?)
> and that the client thus is not aware that the transaction became a
> distributed transaction, so the rollback is not propagated to the
> server.
> This can be confirmed by setting some trace level on the server (4,5).
> Sorry to replying only now, but we were quite busy these days. Did you
> finally solve your problem ?
> Anyway, I can confirm that this should not happend and that it works
> perfectly well in my environment... We are interested if you can give us
> more details.
> Regards,
> --
> Philippe Durieux  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I have just found another possible reason for your problem. If you have
changed the transactional attributes from "Required" to "Supports", this
will
not work because the sb bean is not written properly. You should change
the afterCompletion method  like this:

  public void afterCompletion(boolean committed) {
        if (committed) {
            total = newtotal;
        } else {
            newtotal = total;   <<< this is necessary if you set "Supports" in ej
        }
    }

I don't know if this is your problem, but maybe it can help...
-- 
Philippe Durieux  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bull - 1 rue de Provence - 38432 Echirolles Cedex France
[EMAIL PROTECTED]
-> Download our EJBServer at http://www.evidian.com/ejb <-
----
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