You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by tycho brahe <t_...@hotmail.com> on 2004/01/10 02:50:55 UTC
UTF in 1.1b3
thank you Upayavira , that was helpful.
When using RPC with this new beta3 I no longer have to convert returned
strings from UTF-8 to
iso-8859-1, that's really nice. Does anyone know what has changed ?
/tycho brahe
>From: Upayavira <uv...@upaya.co.uk>
>Reply-To: xindice-users@xml.apache.org
>To: xindice-users@xml.apache.org
>Subject: Re: new obstacles in 1.1b3
>Date: Fri, 09 Jan 2004 07:26:33 +0000
>
>tycho brahe wrote:
>
>>I've eliminated the XindiceServlet, in stead I'm trying to initialize
>>a database from my own servlet , like so
>>
>>String driver = "org.apache.xindice.client.xmldb.DatabaseImpl";
>>Class c = Class.forName(driver);
>>Database database = (Database) c.newInstance();
>>DatabaseManager.registerDatabase (database);
>>collection = DatabaseManager.getCollection ("xmldb:xindice:///db/coll");
>>
>>first alot of propertypermissions are requested, then suddenly it wants
>>to
>>connect to localhost:8888. How do I change this, I'm not interested in
>>using RPC,
>>but if thats necessary, I'd like 8080 for a port.
>>Can anyone tell me what I've missed, where I go wrong,
>>or how to change the port-number.
>
>You can either install Xindice as a servlet, responding on whatever HTTP
>port, using XMLRPC. In which case, it will try to answer on port 8888 or
>8080.
>
>Alternatively, you can use embedded mode, with code like (simplifying yours
>to remove introspection):
>
>DatabaseManager.registerDatabase (new
>org.apache.xindice.client.xmldb.embed.DatabaseImpl);
>collection = DatabaseManager.getCollection
>("xmldb:xindice-embed:///db/coll");
>
>With embedded mode, you should only have one JVM accessing the DB (ie.your
>servlet container, and not using also the CLI).
>
>Regards, Upayavira
>
>
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail