[jboss-user] [EJB/JBoss] - Ejb Transaction problem
maxjj
do-not-reply at jboss.com
Fri Jan 26 01:18:36 EST 2007
hi All
I am using EJB/JBoss with Netbean.
i want to write my own Transaction in the session bean. i have declare my code as follows...
UserTransaction ut=Context.getUserTransaction();
try{
ut.begin();
Lhome.create(id,name,age);
ut.commit();
}catch(Exception e){
try{
ut.rollback();
}catch(exception e){
}
}
when i insert duplicate entry in to the create method it will not produce any error and insert other records in to the database. it does not rollback.
is there any JBoss Xml file to Edit accept ejb-jar.xml ?
please help .....
dush
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006672#4006672
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006672
More information about the jboss-user
mailing list