JBoss,

  Here is the latest problem I am running into in my attempt to port my
application from WebLogic to jBoss.

  The following sequence of events is not working correctly:

1.  A stateless session bean method is called with a transaction
required.
2.  While within #1, a "Sequence" entity bean which provides a
sequential counter is created.  The current counter value of 1 (since it
has just been created) is retrieved.  When this counter value is
retrieved, the entity bean increments it's value to 2 for the next time
it is called.
3.  Also while within #1, another sub-routine does an entity find to
retrieve the same Sequence entity bean created in #2.  When the current
counter value is retrieved, 1 is returned.

  This is incorrect, a counter value of 2 should be returned (which
WebLogic does return).  It appears that the entity find process during
step #3 does not end up using the same instance of the Sequence ejb
implementation that was created during step #2, but instead instantiates
a new instance with the image that was persisted during the entity
create.


Pat McNerthney
Icicle Software, Inc.

Reply via email to