hello,
  it was my fault... my DBUnit abstract test was not using
DELETE_ALL and CLEAN_INSERT operations... now everything works fine..

regards
 marco

On 8/5/05, Marco Mistroni <[EMAIL PROTECTED]> wrote:
> Hello Jeremy,
>  thanx a lot for your reply... attached is the code of the EJB (and
> the generated deployment descriptor, i am using XDoclet to generate
> EJB)..
> 
> the transaction is 'Required'....
> 
> do you know what's the solution? if i don't define any transaction
> openejb will complain that no transaction are associated with EJB
> 
> regards
>  marco
> 
> On 8/4/05, Whitlock, Jeremy    x66075 <[EMAIL PROTECTED]> wrote:
> > Marco,
> >        Without seeing the EJB, I do know that CMP EJBs usually have a
> > transaction associated with them.  If this is the case, the database records
> > referenced in the EJB are locked and probably can't be deleted from the DB
> > until the transaction finishes.  I ran into problems with this a few days
> > ago but again, this is only speculation since I don't see the EJB code.
> > Take care, Jeremy
> >
> > -----Original Message-----
> > From: Marco Mistroni [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 04, 2005 3:27 PM
> > To: [email protected]
> > Subject: [openejb-user] Problems with OpenEJB and DBUnit
> >
> >
> > hello all,
> >  i am running a set of java test involving some Entity CMP beans.
> > I am currently running test using openEJB, and my tests populates a
> > database using Dbunit.
> >
> > The problem that i have is that the rows created by using an openEJB
> > entity bean don't get deleted using dbUnit.
> >
> > Could anyone explain me why? the two calls to db.insert and db.delete
> > done using dbunit  are done correctly,but the two rows inserted via
> > the EJB.create method simply don't get deleted..
> >
> > anyone could help? #
> > I attach both test cases..
> >
> > thanx and regards
> >  marco
> >
> > _
> > This message and any attachments are intended only for the use of the 
> > addressee and
> > may contain information that is privileged and confidential. If the reader 
> > of the
> > message is not the intended recipient or an authorized representative of the
> > intended recipient, you are hereby notified that any dissemination of this
> > communication is strictly prohibited. If you have received this 
> > communication in
> > error, please notify us immediately by e-mail and delete the message and any
> > attachments from your system.
> >
> >
> 
> 
>

Reply via email to