Attached are J2EEManagedStore and J2EEManagedDescriptorsStore. They are done based on J2EEStore. and J2EEDescriptorsStore.
These 2 classes make use of a DataSource object obtained from J2EE container. It relinquishes transaction control to J2EE container so that CMT or BMT EJBs can make use of them. Disclaimer: You can make use of the classes as is. Please let me know if you have any problems/comments with them. -- Willie Vu > -----Original Message----- > From: Jacob Lund [mailto:[EMAIL PROTECTED] > Sent: Sunday, June 15, 2003 8:27 > To: 'Slide Users Mailing List' > Subject: RE: Transactions in Slide? > > > Hi, > > I hope that you will put your effort into the store committed > by Ashok! This j2ee store is based on a relational db and has > some really nice performance improvements. > > Ashok's last commitment was posted on this list on February 3 2003! > > I will be happy to participate further if you choose to > follow that line! > > Thanks, > Jacob > > -----Original Message----- > From: Kevin Moran [mailto:[EMAIL PROTECTED] > Sent: 15. juni 2003 01:18 > To: Slide Users Mailing List > Subject: RE: Transactions in Slide? > > > Hi Willie, > Thank you very much for responding. Yes, the lack > of feedback is frustrating. What you described in > your note makes sense to me. Is J2EEManagedStore > something you would consider posting to the mailing > list? If not, can you please clarify what you had to > do to create it? Obviously I don't want the store to > do commits or rollbacks on the java.sql.Connection. > But I also have to modify how the DataSource is looked > up, right? J2EEStore wants to look up the DataSource > under java:/comp/env; JBoss binds it under java:/. Is > there anything else I should be aware of? > > Thanks again for your help. > -kevin > > P.S. I'm probably misunderstanding your point about > webapps. But can't I sidestep the issue by having > slide.war include a Domain.xml that uses the standard > J2EE stores and have my EJBs load a different > Domain.xml that uses, say, J2EEManagedStore? Wouldn't > that work? That way I wouldn't have to manage the > transactions myself. > > --- Willie Vu <[EMAIL PROTECTED]> wrote: > > Hi Kevin, > > > > So many questions left unanswered. It is > > unfortunate we are left alone in the > > dark. > > > > In the end, I have to do what I suggested. I > > created a J2EEManagedStore that > > relinquishes transaction control to J2EE container. > > It just accepts a data > > source object and makes connections. It relies on > > the J2EE Container to take > > care of the transaction stuff. It works both for > > CMP and BMP entity beans. > > > > One downside though is when this store is used from > > a webapp. UserTransaction > > has to be managed programmatically. > > > > Regards, > > > > > > -- > > Willie Vu > > > __________________________________ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]