here is my tx-test-scenario: i have StatelessSessionBean which create a new EntityBean. into the ejbCreate()-method the bean call a SessionBean for build a new unique database key as primary key. these method is defined with TX_REQUIRES_NEW attribute. (some dump follows). back in the method of the creating sessionbean some values are set to the new EntityBean. Now, i force a RuntimeException before commiting the current TX. i hope some database changes rollback, but they didn't !!! (not the database-change for the primaryKey created by the sequencer-bean, but the created entry for the EntityBean should disappear). are i'm totaly wrong here or is it a bug/currently not supported in jboss ??? the TX Attribute from ejbCreate of the EntityBean an the testmethod of my Sessionbean is TX_REQUIRED. my datasource is MS SQL-Database with a weblogic-jdbc driver. i use the cvs-snapshot packed last night. could anybody help ?? thanks ralph the serverlogging-dump: [ri.TxTestHome] TX_REQUIRED for create [ri.TxTestHome] Begin tx [ri.TxTestHome] commiting [ri.TxTestHome] TX_REQUIRED for doTxTest [ri.TxTestHome] Begin tx [ri.TxTestHome] JRMPCI:invokeHome create [ri.TxTestHome] Tx is null [ri.TxTestHome] invokeHome [ri.Table1Home] TX_REQUIRED for create [ri.Table1Home] Begin tx [ri.Table1Home] JRMPCI:invokeHome create [ri.Table1Home] Tx is null [ri.SequencerHome] TX_REQUIRED for create [ri.SequencerHome] Begin tx [ri.SequencerHome] commiting [ri.SequencerHome] TX_REQUIRES_NEW for getSequence [JAWS] Create, id is 2684 [JAWS] Exists command executing: SELECT COUNT(*) AS Total FROM Table1 WHERE Id= [JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=2684 [JAWS] Create command executing: INSERT INTO Table1 (Id,Name) VALUES (?,?) [JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=2684 [JAWS] Set parameter: idx=2, jdbcType=VARCHAR, value=NULL [JAWS] Rows affected = 1 [ri.Table1Home] commiting [ri.Table1Home] beforeCompletion called [ri.Table1Home] afterCompletion called [ri.TxTestHome] commiting [ri.TxTestHome] Exception occurred; nested exception is: the sessionbean is ri.TxTestHome, entity is called ri.Table1Home and my SequencerSessionBean is ri.SequencerHome. -- -------------------------------------------------------------- To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]
