I am using the following code to query Sedna using a servlet:

ArrayList<Node> nodeList = new ArrayList<Node>();
for(int i=0;i<subNodeIds.size();i++){
    ResourceSet resSet = queryService.queryResource(modelId, 
XMLDBQuery.MODEL_ROOT_NODES_XPATH);
    ResourceIterator iter = resSet.getIterator();
    while(iter.hasMoreResources()){
        XMLResource resource = (XMLResource) iter.nextResource();
        Document doc = (Document) resource.getContentAsDOM();
        nodeList.add(node);
    }


If I have only one thread running, the code and query work fine. However 
when I try to load test with multiple simultaneous requests, some of the 
requests generate the following error:

org.xmldb.api.base.XMLDBException:
    at net.cfoster.sedna.xmldb.v.getContentAsDOM(Unknown Source)

Thanks,

Chris Tindal

-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Sedna-discussion mailing list
Sedna-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sedna-discussion

Reply via email to