> From: Gianugo Rabellino [mailto:[EMAIL PROTECTED]] > > Vadim Gritsenko wrote: > > > Please, don't jump to conclusions: I run Cocoon as xindice client with > > xindice.jar and xmldb.jar: just 532968 bytes. If to include full-blown > > xindice... Yes, thanks to openorb, it's 2.5M :( > > I'd really love to know how you managed to do it. There are significant > portions of Corba code all over the place in the client libraries and > the client-server communication itself AFAIK is based on Corba. If I try > to remove openorb all I get is a bunch of errors. Please enlighten me :)
Hm. My setup is: 1. cocoon/WEB-INF/lib: xindice.jar xmldb.jar 2. cocoon/cocoon.xconf#cocoon/source-handler/protocol: <driver type="xindice" class="org.apache.xindice.client.xmldb.DatabaseImpl"/> 3. cocoon/sitemap.xmap#map:sitemap/map:components/map:transformers: <map:transformer name="xmldb" src="org.apache.cocoon.transformation.XMLDBTransformer"> <driver>org.apache.xindice.client.xmldb.DatabaseImpl</driver> <base>xmldb:xindice:///db/test</base> </map:transformer> 4. cocoon/sitemap.xmap#map:sitemap/map:pipelines/map:pipeline: <map:match pattern="data-to-xmldb"> <map:generate src="data.xml"/> <map:transform src="data-to-xmldb.xsl"/> <map:transform type="xmldb"/> <map:serialize type="xml"/> </map:match> <map:match pattern="xmldb/**"> <map:match type="request" pattern="xpath"> <map:generate src="xmldb:xindice:///db/{../1}#{1}"/> <map:serialize type="xml"/> </map:match> <map:generate src="xmldb:xindice:///db/{1}"/> <map:serialize type="xml"/> </map:match> 5. xindice/startup 6. resint/bin/httpd 7. http://localhost:8080/data-to-xmldb to bulk-load documents... 8. http://localhost:8080/xmldb/test/doc-id to access these documents... Note: My environment does not have anything specific: stock resin/tomcat, empty jre/lib/ext, and empty environment. This should not work? Nobody told me client must have corba! ;) Vadim --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]