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..
<component-instance
class="org.apache.cocoon.components.source.impl.XMLDBSourceFactory"
name="xmldb">
<driver class="org.apache.xindice.client.xmldb.DatabaseImpl" type="xindice"/> -->> add this
line <driver class="org.apache.xindice.client.xmldb.embed.DatabaseImpl"
type="xindice"/>
</component-instance> 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 :
<map:pipeline>
<map:match pattern="xmldb/**"> <map:match
type="request-parameter"
pattern="xpath">
<map:generate src=""/> <map:serialize type="xml"/>
</map:match>
</map:match>
</map:pipeline> - to write in the database
use the xmldb transformer
in the declaration tranformer
add
<map:transformer name="xmldb"
src="">
<driver>org.apache.xindice.client.xmldb.embed.DatabaseImpl</driver> <base>xmldb:xindice-embed:///db</base> </map:transformer> see the xmldb block in cocoon for more informations
about this transformer
|
- xindice 1.1b2 + cocoon 2.1 + tomcat 4.1.27 + winxp - H... Stefan Pietschmann
- Re: xindice 1.1b2 + cocoon 2.1 + tomcat 4.1.27 + ... Barzilai Spinak
- Re: xindice 1.1b2 + cocoon 2.1 + tomcat 4.1.2... Stefan Pietschmann
- Re: xindice 1.1b2 + cocoon 2.1 + tomcat 4... Vadim Gritsenko
- Re: xindice 1.1b2 + cocoon 2.1 + tomc... Yury Mikhienko
- Re: xindice 1.1b2 + cocoon 2.1 +... Vadim Gritsenko
- Nicolas Maisonneuve