From: <wol...@us...> - 2004-03-08 11:45:38
|
Update of /cvsroot/exist/eXist-1.0/samples/org/exist/examples/xmldb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22257/samples/org/exist/examples/xmldb Modified Files: XQueryExample.java Log Message: * class BrokerPool now detects if a thread does already hold a broker object and increments a reference count instead of returning a new object. Otherwise, deadlock situations could occurr. * documentCache in RpcConnection should be cleared if changes have been made to the database. * implemented missing getMembersAsResource method in RemoteResourceSet. Index: XQueryExample.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/samples/org/exist/examples/xmldb/XQueryExample.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** XQueryExample.java 3 Feb 2004 08:33:52 -0000 1.3 --- XQueryExample.java 8 Mar 2004 11:21:22 -0000 1.4 *************** *** 78,85 **** start = System.currentTimeMillis(); ! for ( int i = 0; i < (int) result.getSize(); i++ ) { ! XMLResource resource = (XMLResource) result.getResource( (long) i ); ! System.out.println( resource.getContent().toString() ); ! } long rtime = System.currentTimeMillis() - start; System.out.println("hits: " + result.getSize()); --- 78,86 ---- start = System.currentTimeMillis(); ! System.out.println(result.getMembersAsResource().getContent()); ! // for ( int i = 0; i < (int) result.getSize(); i++ ) { ! // XMLResource resource = (XMLResource) result.getResource( (long) i ); ! // System.out.println( resource.getContent().toString() ); ! // } long rtime = System.currentTimeMillis() - start; System.out.println("hits: " + result.getSize()); |