Darius Davidavicius writes:
 > Hi all,
 > 
 > I using beta prod3 (the same problem was and with prod2)
 > 
 > I have EntiryBean ejbCreate function where i inserting data into oracle by name 
 >(inVCCName)
 > I have constraint on the table and it allows just unique names
 > Currently running version (Weblogic) thows SQLException where i can check if not 
 >unique name i was trying to insert.
 > first function call ::ejbCreate ("XXX", "Notes1") works fine
 > 
 > second call of ::ejbCreate ("XXX", "Notes2") works strange:
 > I catch java.sql.SQLException and i want to throw my DuplicateVCCNameException but 
 >instead of it i do getting TRANSACTION ROLLBACK EXCEPTION
 > 
 > Why it is so?

This is what the EJB spec specifies should happen in the case of a
bean implementation throwing a runtime exception (I don't recall the
section exactly).  Is your exception declared in the throws clause of
the create method of the home interface?

Tom


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to