Bita, I don't have sample code to show you but I'll try to explain better. Take a look at J2EEDescriptorsStore. It maintains a connection map to support concurrent clients. This way the store knows which connection to use when dealing with a specific thread. What I was suggesting is to save the connection reference in the current thread context (you'll need to create the context yourself, maybe using ThreadLocal). Since at the app layer you only have the handle to NamespaceAccessToken, which means you can't get to the connection map since it's hidden by the store impl. But you can get the connection from your current thread context. Am i making sense?
Tom Wang Panscopic Corporation Web Reporting, Just Add Data http://www.panscopic.com/download > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 29, 2002 11:03 AM > To: Slide Users Mailing List > Subject: Re: Using Slide transaction's connection > > > Tom Wang wrote: > > > Lukasz, > > > > The database connections are completely hidden by each store > implementation. > > I suggest you can modify the store impl (e.g. > J2EEDescriptorsStore) and add > > a pointer to the connection in the thread context. This way you can > > retrieve the same connection used by Slide store from the thread context > > when updating your own data. > > > > Tom Wang > > Panscopic Corporation > > Web Reporting, Just Add Data > > http://www.panscopic.com/ > > > > > -----Original Message----- > > > From: Lukasz Kowalczyk [mailto:[EMAIL PROTECTED]] > > > Sent: Tuesday, August 27, 2002 7:40 AM > > > To: [EMAIL PROTECTED] > > > Subject: Using Slide transaction's connection > > > > > > > > > I have a few tables in the same database that Slide keeps its tables > > > in and those tables are updated together with modifications in Slide's > > > repository. > > > > > > I need to keep changes to Slide and to my tables in synchronization. > > > My first thought was to use 2-phase commit but PostgreSQL doesn't > > > support it and I don't know of any other free RDBMS which does (and > > > which runs on Windows). > > > > > > Having explained this - is there a way to obtain Slide's connection to > > > the database after calling NamespaceAccessToken.begin()? This way I > > > could rollback or commit all changes at once. > > > > > > -- > > > #ukasz Kowalczyk > > > > > > > > > -- > > > To unsubscribe, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > For additional commands, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > > > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > Hi, > > Unfortunatly, I can't undrestand what you mean exactly, while I > have the same > issue as Ukasz. May I ask to reference me any article or > resource that make it > more clear, especially if there was any example code. > Your help is graetly appreciated, > > Bita. > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
