niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Berkeley DB
XmlContainer.putDocument problem - invokation makes system hang on
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Author Message
darod
*nix forums beginner


Joined: 07 May 2006
Posts: 2

PostPosted: Sat Jun 24, 2006 3:17 pm    Post subject: XmlContainer.putDocument problem - invokation makes system hang on Reply with quote

Hi,

I have something like that in my code:

EnvironmentConfig ec = new EnvironmentConfig();
ec.setAllowCreate(true);

ec.setInitializeCache(true);
ec.setInitializeLocking(true);
ec.setInitializeLogging(true);
ec.setTransactional(true);

XmlManagerConfig mc = new XmlManagerConfig();
mc.setAllowAutoOpen(true);
mc.setAdoptEnvironment(true);


mgr = new XmlManager(env, mc);
mgr.setDefaultContainerType(XmlContainer.WholedocContainer);
trans = mgr.createTransaction();

container = openContainer(); //opens container with
setTransactional(true)

XmlDocument doc = container.getDocument(trans,"foo.xml");

(...)
XmlQueryContext lxqc = mgr.createQueryContext();

/* there I prepare some additional xQuery script against my container
called 'container' */
(...)
XmlQueryExpression lxqe = mgr.prepare(lsQuery, lxqc);

XmlResults lxr = lxqe.execute(trans,lxqc);
String con = "<a>aa</a>";
XmlUpdateContext lxq = mgr.createUpdateContext();
container.putDocument(trans, "another.xml", con, lxq);

and execution hangs in the last method "putDocument" invokation and
system goes suspended...

It's strange that when I comment line with:
XmlResults lxr = lxqe.execute(trans,lxqc);
everything goes right and no suspension occurs...


Does anybody know what do I wrong in above code that make my program
hangs ?

I use Berkeley DB XML 2.2.13

thanks a lot for any help

best
regards
darek
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
The time now is Tue Dec 02, 2008 1:56 pm | All times are GMT
navigation Forum index » Databases » Berkeley DB
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Unknown in header problem -SOLVED- Light Speed Postfix 0 Thu Jul 03, 2008 10:40 am
No new posts problem with sending mail nuxia Postfix 0 Mon Apr 21, 2008 3:58 am
No new posts Postfix 2.3.8 Virtual problem Blotto Postfix 0 Fri Apr 04, 2008 6:11 am
No new posts Postfix sending problem for local domain remote email monkey_magix Postfix 0 Mon Sep 10, 2007 10:17 am
No new posts bounce problem murkis Postfix 0 Sun Oct 08, 2006 3:45 pm

Personal Loans | Montana Music | Loans | Car Loan | Myspace Layouts
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2255s ][ Queries: 16 (0.1636s) ][ GZIP on - Debug on ]