Joe Weder wrote:
>
> Philippe,
>
> After studying the problem some more I want to simplify and restate. (Sorry)
>
> Statement: Mutations to entity beans are not written to the DBMS until
> end-of-transaction. Therefore, direct DBMS access after the bean mutation
> and during the same transaction will not reflect the bean's state.
Yes. This is another side of the possible problems when beans are "shared",
i.e. when the bean state is not always accessed by its container. As I told
in a previous mail to Markus, we did not consider that JOnAS supports the
bean shared by several applications because it may be problems like this
one, and some others reported earlier. Your problem occurs because you are
actually in the same transaction, so the database let you access the bean state.
But since you do not use the Entity bean to get the state, you got the bad value.
Seems normal to me, considering the current state of JOnAS. I don't know if
we should consider this as a bug, since you actually bypass the JOnAS container
although you are in the JOnAS server. Imagine you have another application
instead of your session bean method, that access the bean state by another
transaction, it would work.
>
> I am using a stateful session bean with a test-method having
> container-managed txn attribute 'Required':
> Step 1: find a BMP entity bean (identified by a method param) and call one
> of its mutators,
> Step 2: read the mutated table:row:column directly from the DBMS and find
> that they are not the same (this step just happens to be another method in
> the session bean).
> When the test-method returns (a.k.a. end-of-txn), the beans ejbStore()
> method is called
> automatically by the container.
>
> Is there any way to cause the container to update the bean immediately?
>
> As I stated earlier, Weblogic had a vendor specific deployment option that I
> used to make this work.
This facility is not provided in JOnAS.
>
--
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".