1. EJB CMT (1 messages)

    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

    Threaded Messages (1)

  2. EJB CMT[ Go to top ]

    no matter all sorted now damn mysql table types