Changeset 112


Ignore:
Timestamp:
24/09/04 14:26:44 (15 years ago)
Author:
mguiterr
Message:

* empty log message *

Location:
Discovery_Service/trunk/Query
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Discovery_Service/trunk/Query/ndg/services/Query/XQuery.java

    r99 r112  
    2929 
    3030    public static void main( String[] args ) throws Exception { 
    31         if(args.length != 1) { 
    32             System.out.println("Usage: Query xquery-file"); 
     31        if(args.length != 2) { 
     32            System.out.println("Usage:java -jar queryService.jar xquery-file http://localhost:8080/exist/services/Query"); 
    3333            System.exit(0); 
    3434        } 
     
    4848        QueryService service = new QueryServiceLocator(); 
    4949         
    50         Query query = service.getQuery(new URL("http://glue.badc.rl.ac.uk:8080/exist/services/Query")); 
    51         
     50       // Query query = service.getQuery(new URL("http://glue.badc.rl.ac.uk:8080/exist/services/Query")); 
     51       Query query = service.getQuery(new URL(args[1])); 
    5252        // connect to the database 
    5353        String sessionId = query.connect("guest", "guest"); 
     
    5959                if(resp.getHits() == 0) // nothing found 
    6060                        return; 
     61        
    6162         
    6263        // retrieve first 10 results, indenting is on, xinclude is off, matches in elements  
Note: See TracChangeset for help on using the changeset viewer.