cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stev...@outerthought.org
Subject [WIKI-UPDATE] RecipeUploadUsingAction XMLIndiceCocoon2.1 Recipes FileUploadsWithFlow Fri Nov 28 16:00:06 2003
Date Fri, 28 Nov 2003 15:00:06 GMT
Page: http://wiki.cocoondev.org/Wiki.jsp?page=RecipeUploadUsingAction , version: 10 on Fri
Nov 28 15:04:04 2003 by StavrosKounis

- based on thread [http://marc.theaimsgroup.com/?t=106917261100001&r=1&w=2]
+ based on thread [http://marc.theaimsgroup.com/?t=106917261100001&r=1&w=2] ''[Stavros
Kounis | StavrosKounis]''
?                                                                          +++++++++++++++++++++++++++++++++++++

- 
- created at 28/11/2003 by [Stavros Kounis | StavrosKounis]


Page: http://wiki.cocoondev.org/Wiki.jsp?page=XMLIndiceCocoon2.1 , version: 4 on Fri Nov 28
14:15:10 2003 by JoergHeinicke

- Integration of [XML:DB|http://www.xmldb.org] into cocoon has slightly changed since 2.0
and is now quite more simple than before. The below description is even the complicated one,
i.e. doing it by hand and having the [XIndice|http://xml.apache.org/xindice/] database independent
on Cocoon.
?                                                                                        
                                                                                         
                         ^^^

+ Integration of [XML:DB|http://www.xmldb.org] into cocoon has slightly changed since 2.0
and is now quite more simple than before. The below description is even the complicated one,
i.e. doing it by hand or having the [XIndice|http://xml.apache.org/xindice/] database independent
on Cocoon, i.e. standalone mode.
?                                                                                        
                                                                                         
                         ^^                                                              
                    +++ +++++++++++++++++++

- If you use the Cocoon build system and include the xmldb block, almost everything is done
automatically. You only have to include the XIndice JAR into lib/optional.
+ If you use the Cocoon build system and include the xmldb block, the changes to cocoon.xconf
and the deployment of cocoon-xmldb-block.jar and xindice.jar are done automatically and you
can test the samples add http://127.0.0.1/samples/xmldb/. ''(Which don't exist at the moment.)''
+ ! XIndice standalone vs. embedded mode
+ XIndice 1.1 provides two modes for running. On the one hand there is the embedded mode,
which should work per default when the xindice.jar is deployed with Cocoon (as it is when
including xmldb block since 2003-11-28). On the other hand there is the standalone mode, the
database runs independently on Cocoon.
- 
- ! XIndice
- Make sure to have your XIndice database running. If it's on the same computer, the database
should be accessible by localhost:4080 which is the default for XIndice.
- Edit cocoon.xconf to add the new "scheme" that is xmldb:xindice. Therefore locate the {{<source-factories>}}
element that should look as follows:
+ Edit cocoon.xconf to add the new schemes/pseudo protocols that is {{xmldb:xindice:}} for
the standalone mode and {{xmldb:xindice-embed:}} for the embedded mode. Therefore locate the
{{<source-factories>}} element that should look as follows:
- And add the {{<component-instance>}} element for making the {{xmldb::}} pseudo protocol
available:
?                                                                     -

+ And add the {{<component-instance>}} element for making the {{xmldb:}} pseudo protocol
available:
-         <driver class="org.apache.xindice.client.xmldb.DatabaseImpl" type="xindice-embed"/>
+         <driver class="org.apache.xindice.client.xmldb.embed.DatabaseImpl" type="xindice-embed"/>
?                                                        ++++++

-         <!-- Add here other XML:DB compliant databases drivers -->
?                 -----

+         <!-- Add other XML:DB compliant database's drivers here -->
?                                                 +          +++++

- Don't forget to add into your classpath the jar cocoon-xmldb-block.jar that contains the
{{org.apache.cocoon.components.source.impl.XMLDBSourceFactory}} class
?                     --------------------   ----

+ Don't forget to add the cocoon-xmldb-block.jar to your classpath that contains the {{org.apache.cocoon.components.source.impl.XMLDBSourceFactory}}
class.
?                                               ++++++++++++++++++                       
                                                                +

- xmldb:xindice:///db/myCollection/#xpathquery
+ xmldb:xindice-embed:///db/myCollection/#xpathquery
?              ++++++

- xmldb:xindice:///db/myCollection/#/*[[1]]
+ xmldb:xindice-embed:///db/myCollection/#/*[[1]]
?              ++++++

-     <map:generate src="xmldb:xindice:///db/myCollection/#/*[[1]]"/>
+     <map:generate src="xmldb:xindice-embed:///db/myCollection/#/*[[1]]"/>
?                                     ++++++

- ! XIndice on remote computer
+ ! XIndice in standalone mode
- Now that it works on localhost, if you have a remote server, the URI should be
+ Now that it works in embedded mode, let's try the standalone mode. Instead of using {{xindice-embed}}
you now have to change to {{xindice}}. Furthermore you have to specify where the XIndice database
can be found/accessed. If it is on the same machine it's {{localhost:4080}} - at least if
you didn't change the default XIndice port. You can also replace {{localhost}} with the address
of a remote machine.\\
+ Example:


Page: http://wiki.cocoondev.org/Wiki.jsp?page=Recipes , version: 1 on Fri Nov 28 14:22:40
2003 by StavrosKounis

New page created:
+ Code samlpes in a Problem/Solution aproach
+ 
+ !Upload Files
+ 
+ *[Using action | RecipeUploadUsingAction]
+ 


Page: http://wiki.cocoondev.org/Wiki.jsp?page=FileUploadsWithFlow , version: 12 on Fri Nov
28 14:51:52 2003 by NicolasMaisonneuve

+ ----
+ you can use this Upload Component [http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24529]
+ ----
- ----
- you can use this Upload Component [http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24529]
- 



Mime
View raw message