Re: [JBoss-user] Explicit commit and rollback in EJB

2001-03-28 Thread Russell
Hi Dan , Thanks for your info. Out of topic , I am trying to MessageDriveBean ejb , below is the list question regarding MDB : 1) What is MDB ? 2) What is the purpose of MDB ? 3) In what way can i use MDB ? To communicate between ejb bean ? 4) How to setup MDB in jboss ? BTW

Re: [JBoss-user] Explicit commit and rollback in EJB

2001-03-28 Thread danch
Russell wrote: > Hi Dan , > > Thanks for u info. Read document regarding transaction in javasoft.com > and i found out that what i done it in CMP is > wrong. > > BTW , can i know why i must set the fetching key as RequiresNew ?? That isn't a 'must', it just shortens the time that the seq

Re: [JBoss-user] Explicit commit and rollback in EJB

2001-03-28 Thread Russell
Hi Dan , Thanks for u info. Read document regarding transaction in javasoft.com and i found out that what i done it in CMP is wrong. BTW , can i know why i must set the fetching key as RequiresNew ?? Thanks wt. Dan Christopherson wrote: > > Hi, Ricky! > You can do explicate commit and

Re: [JBoss-user] Explicit commit and rollback in EJB

2001-03-28 Thread Dan Christopherson
Hi, Ricky! You can do explicate commit and rollback, but not the way you're doing it. What you need to do is take a look at using Bean Managed Transactions, rather than the default container managed. This lets you do commit/rollback at the transaction level. You could also look at putting your ke

[JBoss-user] Explicit commit and rollback in EJB

2001-03-27 Thread Ricky
Hi all , i am using jboss2.1 , linux6.1 ,Tomcat 3.2.1 and jdk1.3. Can implemented the code below in my stateless bean ??? Can i do commit and rollback explicit in EJB ?? Thanks wt. try{ conn = this.getConnection() ; conn.setAutoCommit(false); ps = conn.prepareStatement("Sel