Re: [bdbxml] couldn't open container twice

John Snelson <[email protected]>
Newsgroups gmane.comp.db.dbxml.general
Message-ID <[email protected]>
Dmitriy Kargapolov wrote:
> I tried to open container from two different accounts at the same time:
> 
> envsContainer = theMgr.openContainer(txn, "test.dbxml", config);
> pause();
> 
> when user1 opened container, user2 couldn't open _same_ container.

What do you mean by "couldn't"? What error message did you get?

> once user1 closed container, user2 went ahead with no further problems.
> 
> I thought container could be opened multiple times but it didn't work.

A container can be opened multiple times. However, the second time, you 
are really only getting a handle to the first XmlContainer. This 
XmlContainer will not be closed until both handles to it have been released.

I hope this helps,

John

-- 
John Snelson, Berkeley DB XML Engineer
Sleepycat Software, Inc
http://www.sleepycat.com

Contracted to Sleepycat through Parthenon Computing Ltd
http://blog.parthcomp.com/dbxml


------------------------------------------
To remove yourself from this list, send an
email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.