Hi, I set up a baseX db server on 192.168.11.11 by basexserver.bat But failed to connect it with following codes: org.basex.api.xqj.BXQDataSource xqs = new org.basex.api.xqj.BXQDataSource(); xqs.setProperty("user", "admin"); xqs.setProperty("password", "passwd"); xqs.setProperty("serverName", "192.168.11.11"); xqs.setProperty("port", "1984"); // Build a connection to the specified driver. XQConnection conn = xqs.getConnection(); // Prepare the expression with the document and the query. XQPreparedExpression expr = conn.prepareExpression(QUERY);
It seems that xqj of basex only access to it's embbed basex db, right? If not please tell me how to.
Thanks, Edward