Hello! Thanks for the response. But I tried it as well. setRollbackOnly() rolls back the transaction correctly when placed in entity home's create method, but when placed in the session's business method after the call to entity's create, the database (MySQL) nevertheless contains the data inserted by create method. I am confused.
The environment: JBoss-3.0.0beta2, MySQL, Windows2000. alex > -----Original Message----- > From: Jonathan Gibbons [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 06, 2002 11:17 AM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] "required" tx methods in 3.0.0beta > > > > Hi, > > use sessionContext.setRollbackOnly(); > > you get the session context from the setsessioncontext call > that is called by the container. > > Cheers, > Jonathan > > > > Why is it so? I expected the datasource to be untouched > but it contains > >inserted data. > > > > alex > > > > -- > > This e-mail may contain confidential and/or privileged > information. If you are not the intended recipient (or have > received this e-mail in error) please notify the sender > immediately and destroy this e-mail. Any unauthorized > copying, disclosure or distribution of the material in this > e-mail is strictly forbidden. > _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user