Nicolas GANDRIAU wrote:
>
> Hi,
>
> I have just a question about the behavior with JONAS Entity Bean BMP.
> Is it normal, that JONAS call the ejbStore method, after a failed
> ejbCreate.
> If the creation failed and raised a CreationException or a
> DuplicateKeyException,
> I dont see the need for a call on the ejbStore method which is going to
> try to update
> a row which does not exist. And since the Transaction has been set in a
> roll back mode
> everything will be cancelled anyway...
>
> I noticed this behavior on JONAS 2.2.2 and 2.1.1.
> I also checked that weblogic 5.1 does not call the ejbStore method in
> such a situation.
>
> I encountered the problem, because in my ejbStore method, I look for the
> primaryKey of my bean
> in the context. In that case, jonas complained that I am not in a valide
> state and raised an exception.
> So it raised a second question, is it safe to request the primary key of
> a bean in the ejbStore method?
OK. This is a problem I knew. Does this cause pbs to you ?
Anyway, I will try to find a solution to avoid this. I hope to fix it in
the
next version.
--
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".