Hi,
You have to put the xindice-1.1b1.jar in your
classpath (produce when you build a dist) and apache
xmlrpc jar. Then you can use Xindice client API as
shown in documentation.
Here is a simple exemple that retrieves the root
collection :
Class c =
Class.forName("org.apache.xindice.client.xmldb.DatabaseImpl");
Database db = (Database) c.newInstance();
DatabaseManager.registerDatabase(db);
Collection root =
DatabaseManager.getCollection("xmldb:xindice://localhost:8080/db");
Oh, and don't forget that your war must be named
Xindice.war (with X) or it won't work (don't ask me
why).
Matt.
--- Seamus Murphy <[EMAIL PROTECTED]> a
�crit�: > Hi,
>
> How can you set up clients to the server, cannot
> find out any notes on
> this?
>
> Seamus
>
> -----Original Message-----
> From: Matthieu RIOU [mailto:[EMAIL PROTECTED]
> Sent: 17 October 2003 10:37
> To: [email protected]
> Subject: What's wrong my xupdate ?? Xindice logs ???
>
> Hi,
>
> I'm trying to execute an xupdate statement with
> Xindice 1.1b1 (of course I checked everything
> exists)
> and gets a ProcessingException and that's all. No
> explanation about what's wrong. Is xindice logging
> somewhere ? I couldn't find anything in Apache. Is
> it
> possible to enable logging ?
>
> <xu:modifications version="1.0"
> xmlns:xu="http://www.xmldb.org/xupdate">
> <xu:remove
>
select="/root/twister-id[.='variable26439']/../part21/"/>
> <xu:insert-after
> select="/root/twister-id[.='variable16439']/">
> <xu:element name="part21">
> <xu:value-of
>
select="/root/twister-id[.='variable16439']/../part11/"/>
> </xu:element>
> </xu:insert-after>
> </xu:modifications>
>
> I'm getting those exception :
>
> org.xmldb.api.base.XMLDBException: Query error
> Caused by: org.apache.xmlrpc.XmlRpcException:
> java.lang.Exception:
> org.apache.xindice.core.query.ProcessingException:
> Error executing XUpdate query
>
>
___________________________________________________________
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et
> en fran�ais !
> Yahoo! Mail : http://fr.mail.yahoo.com
>
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
Yahoo! Mail : http://fr.mail.yahoo.com