im having a bit of trouble getting CMT to work maybe its me doing it wrong so please advice
problem
i have a createUser( String username , String first , String last , Boolean commit ) in a session bean and then i have a EJB called Customer CMP etc etc
now i want to create the user is the database first then if the commit option is false role back the transaction so i have the createUser method on my session bean as required transaction
and i my method call of the createUser i have
if( !commit.booleanValue() ){
sessionCtx.setRollbackOnly();
}
and just to check that the transaction has been marked i have
System.out.println( "Trans marked .. " + sessionCtx.getRollbackOnly() );
and that returns true how ever the row that was inserted in the database is still there and not removed any help please
Cheers
-
EJB CMT (1 messages)
- Posted by: stephen smithstone
- Posted on: February 02 2004 05:07 EST
Threaded Messages (1)
- EJB CMT by stephen smithstone on February 02 2004 07:34 EST
-
EJB CMT[ Go to top ]
- Posted by: stephen smithstone
- Posted on: February 02 2004 07:34 EST
- in response to stephen smithstone
no matter all sorted now damn mysql table types