anil pisze: > 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
You should put it into your block for your application and within META-INF/cocoon/avalon directory. Where did you find this path? If it's documentation we need to fix it. > 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> xmldb.xconf should look like: The structure of xmldb.xconf should be: <?xml version="1.0"?> <components> <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> </components> > 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. It's definitively a right approach provided you want to use Avalon-based components (XMLDB source is Avalon based). I would give you pointers to some docs but I'm short on my time right now. If you need further help just ask and I will try to provide some links. -- Grzegorz Kossakowski Committer and PMC Member of Apache Cocoon http://reflectingonthevicissitudes.wordpress.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]