Hey Ingo,
JBoss owes you a lot of bug fixes, let's see :-)
> Hi,
>
> i have found following possible bug in the transaction behavior:
>
> I have two sessionbeans (Workbench, UserManager) and one CMP
> entitybean (User).
>
> In the create method of Workbench i create an instance of UserManager.
> In the create method of UserManager i check if User beans
> exists, if not i create one.
> In the create method of Workbench then i call the method
> login() from UserManager.
> The method login() from UserManager then tries to get the
> previous created User.
> But the user was not found and in the db is a record with all
> values set to null or 0.
OK, no exceptions, right ? You just can't find User, right ?
How do you look User up from UserManager ? Do you use findByPK and it
returns what (or throws exception) ?
What is the user PK class and what is the User PK value when you create it ?
Just a guess: does something changes if you explicitely set in ejb-jar.xml
the transaction for the create method, such as:
...
<method>
<ejb-name>User</ejb-name>
<method-name>create</method-name>
</method>
...
Regards,
Simon
> All methods were set to transaction required.
>
> If i set the commit option to 'C', it works. I am using the
> CVS Version from today morning and have not changed the configuration.
>
> CU
>
> ---
> Ingo Bruell
> OBL GmbH ([EMAIL PROTECTED])
> Hude (Oldenburg)
> Germany
>