org.basex.server.ClientSession versus Java client BaseXClient.java
Hello
A question.
The class code org.basex.server.ClientSession coincides roughly with the class code BaseXClient.java provided as an example of Java client in https://github.com/BaseXdb/basex-api/tree/master/src/main/java?
I think it must be so, but I want to assure.
If the answer is yes, the classorg.basex.server.ClientSession is as efficient as using the BaseXClient.java, right?
Regards,
Isidre Guixà
Hello
I try to execute WikiExample.java and I find this error:
=== WikiExample ===
* Create a database from a file via http. Exception in thread "main" org.basex.core.BaseXException: connect:
Address is invalid on local machine, or port is not valid on remote machine
at org.basex.core.Command.execute(Command.java:77)
at org.basex.core.Command.execute(Command.java:89)
at proves.WikiExample.main(WikiExample.java:34)My machine: Win7-SP1 (x64) - Java 1.7.0 (x64) - BaseX 7.1
I can navigate to http://en.wikipedia.org/wiki/Wikipedia without problems!
Thanks.
Isidre Guixà
Quoted text · Isidre Guixà · 1 line
> The class code org.basex.server.ClientSession coincides roughly with the
class code BaseXClient.java provided as an example of Java client in https://github.com/BaseXdb/basex-api/tree/master/src/main/java?
The code is basically equivalent, but the files in the API package don't have any BaseX class dependencies. The performance should be pretty much the same, too.
Hope this helps, Christian
Quoted text · Christian Grün · 9 lines
On Sat, Feb 18, 2012 at 3:44 PM, Christian Grün <christian.gruen at gmail.com> wrote: >> The class code org.basex.server.ClientSession coincides roughly with the >> class code BaseXClient.java provided as an example of Java client in >> https://github.com/BaseXdb/basex-api/tree/master/src/main/java? > > The code is basically equivalent, but the files in the API package don't > have any BaseX class dependencies. The performance should be pretty much the > same, too.
Good to know about this - we're still at 6.6.3-snapshot, so haven't seen this class yet.
Still - my question persists - when do ClientSession instances become unusable?
- Godmar
Isidre,
sorry for the late feedback. The example seems to work on our machines. Have you been successful calling it another time?
Christian ___________________________
2012/2/18 Isidre Guixà <iguixa at xtec.cat>:
Quoted text · Isidre Guixà · 26 lines
> Hello > > I try to execute WikiExample.java and I find this error: > > === WikiExample === > > * Create a database from a file via http. > Exception in thread "main" org.basex.core.BaseXException: connect: Address > is invalid on local machine, or port is not valid on remote machine > at org.basex.core.Command.execute(Command.java:77) > at org.basex.core.Command.execute(Command.java:89) > at proves.WikiExample.main(WikiExample.java:34) > > My machine: Win7-SP1 (x64) - Java 1.7.0 (x64) - BaseX 7.1 > > I can navigate to http://en.wikipedia.org/wiki/Wikipedia without problems! > > Thanks. > > > Isidre Guixà > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Written for BaseX 7.1. BaseX may have changed since: please check the current documentation.