if you use xindice just for cocoon , you sould use
the Xindice embed mode ( so delete the war , you don't need a separate servlet
to use the database)
with this mode , you don't use the network
protocole XML-RPC, so it's faster.
in the cocoon.xconf
search this lines..
-->> add this
line <driver class="org.apache.xindice.client.xmldb.embed.DatabaseImpl"
for the location of the db
in complement, modiy the catalina.sh(or
bat) to add -Dxindice.configuration option
in the sitemap :
- to read/seach
use this example :
- to write in the database
use the xmldb transformer
in the declaration tranformer
see the xmldb block in cocoon for more informations
about this transformer
----- Original Message -----
Sent: Monday, September 08, 2003 10:45
Subject: xindice 1.1b2 + cocoon 2.1 +
tomcat 4.1.27 + winxp - HOW??
i'm totally new to xindice and I'm trying to set
it up together with my cocoon installation.
cocoon is installed correctly and worked. I
downloaded xindice successfully from CVS, built the *.war and deployed it.
when I start tomcat I get the message "INFO: Database successfuly started" -
so i guess xindice is running as expected. I can also read the "UGLY DEBUG
TOOL" thing and browser the database.
now, for being able to work with it, i would like
to install the command line tool. however, i haven't found any useful (or
detailed enough) information on how to install it on win xp.
if I only have bin/* , dist/*, java/lib/* and
config*/ folders in there (as suggested) the "xindice" command doesn't work at
all. If I copy the build folder in as well it at least gives me two action
options: "start" and "debug".
but how do i tell the xindice command line tool
in the external %XINDICE_HOME% folder to use the database in
%TOMCAT_HOME%/webapps/xindice-1.1b2/WEB_INF/db ?? the given command there
doesn't work - most likely since it's explained for linux.
well, sorry if that's newbie stuff ;) if i
got anything wrong please correct me. any help is very much