Hi -

I'm trying to replicate a configuration I had with cocoon 2.1 within cocoon
2.2 & I was wondering if anyone could help me.

Basically in our 2.1 application, I can use a generator to read from the
eXist xml db using xmlrpc.

The generate step is thus:

<map:generate
src="xmldb:exist://localhost:8080/exist-1.1.1-newcore/xmlrpc/db/rmm/test.xml"/>

I need to be able to do this within my 2.2 application. 

What I have done is:

* include within the webapp pom.xml the jar file dependencies - in my case:
exist-1.1.1.jar, xmlrpc-1.2-b1.jar & xmldb-api-custom.jar

* create a xmldb.xconf file within the WEB-INF/cocoon/xconf directory of the
web app

What I'm not sure of is the structure of this file - I read somewhere
(unfortunately can't find now) that this can be segments of the cocoon.xconf
file from 2.1 and that the webapp pulls these *.xconf files together to form
the overall cocoon.xconf, so I have in the in my file:

<?xml version="1.0"?>
<source-factories>
  <component-instance class="org.exist.cocoon.XMLDBSourceFactory"
name="xmldb">
      <!-- Add here XML:DB compliant databases' drivers -->
    <driver class="org.exist.xmldb.DatabaseImpl" type="exist"/>
  </component-instance>
</source-factories>

Is this the right approach? and could someone point me in the direction of
some documentation/examples that I could look at?

Any advice would be very much appreciated.

Many thanks,
Anil.
-- 
View this message in context: 
http://www.nabble.com/cocoon-2.2---xmldb-protocol-tp14888279p14888279.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to