"Blumreiter, Fa. Westernacher, IIPS, B" wrote:
>
> Hi,
>
> I am using jonas 2.1
>
> output of jonas when started: JOnAS Server, version 2.1, running on rmi.
>
> The architecture is as follows: The client contacts a session bean called
> dispatcher which in turn works with the entity bean. Therefore I have 2
> deployment-descriptors.
>
> The transaction attributes are always "Required". I tried "Required" for the
> session bean and "Supports" for the entity bean with the same effect.
>
I'm afraid I cannot reproduce your problem. I have made a little example
to
simulate what you do, but it works fine. Here is my example:
private static void test7() {
String num = "0032";
try {
utx.begin();
Personne p = ehome.findByPrimaryKey("Philippe Durieux");
p.setNumero(num);
Personne p2 = ehome.findByPrimaryKey("Philippe Durieux");
String n = p2.getNumero();
if (n.equals(num)) {
Test.testPASS("test7");
} else {
Test.testFAIL("test7");
}
utx.rollback();
} catch (Exception e) {
Test.testFAIL("test7:\n" + e);
}
}
Personne is an entity bean with Supports or Required transactional
attribute.
(Note that Supports or Required is equivalent if you are already inside
a transaction.)
As you can see,
I call all this inside a transaction, exactly as you do, except that in
your case,
the transaction is started by the session bean container, but at least,
it should
be equivalent. This test pass. I use jonas 2.1.1, which is quite the
same than
jonas 2.1 (only very minor bugs have been corrected).
--
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".