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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user