...| Home | Cocoon...
DBPrism - Apache Cocoon > Cocoon files includes into dbprism.ear >

+ Home ...
+ Download
+ Documentation
+ DBPrism Content Management System
> DBPrism - Apache Cocoon
+ Credits
+ Legal
 
+ Cocoon
+ DBPrismGenerator for Cocoon2
+ CocoonRequestWrapper for Cocoon2
+ External Cache Invalidator Server interface
+ In Memory Server Implementation for External Cache Server
+ HSQL Server Implementation for External Cache Server
+ ExternalCacheValidity for Cocoon2
> Cocoon files includes into dbprism.ear
+ Trace Diagrams
 
+ links
+ Yahoo.groups
+ OTN
+ OSCOM.org
 
Moreover news
+ IBM speeds Java on mainframes (CNET Asia)
+ Middle-aged mainframe converts to Java (ZDNet UK)
+ IBM speeds Java on mainframes (ZDNet)
+ IBM speeds Java on mainframes (CNET)
+ All Buttons (JavaBoutique)
+ Drag-and-Drop Editor Out for Linux Devs (Internet News)
+ Using Program Parameters in Java (JavaBoutique)
+ Sun pledges to cooperate with Microsoft (AP via Seattle Post Intelligencer)
+ Sun pledges to cooperate with Microsoft (Boston Globe)
+ Bitter legal feud ends with payment, Sun cuts 3,300 more jobs (China Post)
+ Sun and Microsoft settle (Chicago Sun-Times)
+ Microsoft to pay $1.6 billion, settle with Sun Microsystems (Baltimore Sun)
+ Visualize Hoovers Data With Anacubis (ResearchBuzz via ResearchBuzz)
+ Sun and BEA advance Java app offerings (Computer Weekly)
+ Sun wants to lift its Java profile (ZDNet UK)
+ 'Smack the Pingu' on Your Mobile Phone! (PA News via The Scotsman Online)
+ Third Generation Mobile Phone Game from Nihon Enterprise (Japan Corp)
+ Comment: Free but shackled - the Java trap (Sydney Morning Herald)
+ Sun plots Java comeback (CNET Asia)
+ Veritas and BEA vow to love Java together (The Register)
+ Microsoft and Sun's settlement will yield web services benefits and support for Java (Computer Weekly)
+ Sun plots Java comeback (CNET)
+ Sun plots Java comeback (ZDNet)
+ Sun enables new wave of mobile Java services (Sunday Times South Africa)
+ Sun Releases Sun Java Studio 6 (Techfocus)
+ Sam Pitrodas Telecom Firm Sets Up India Centre (Financial Express)
+ Multi Player Mobile Gaming (BBC)
+ Combining SOAP and JavaMail (Java Pro)
+ Draw Applet (JavaBoutique)
+ IBM dedicates module to Java on mainframes (CNET)
 
+ OTN News
+ View Live Customer Webcast Demos of Enterprise Manager 10g Grid Control
+ Oracle Database 10g for Windows Now Available for Download
+ Download New Oracle 10g JDBC Drivers
+ JDeveloper 10g Reviewed in Internet.com's Java Boutique
+ Java Developer's Journal Readers Name Oracle Products "Best" in Two Categories
+ New OracleAS Portal Extension for Macromedia Dreamweaver
+ Learn from the Experts During Java Week
+ Download Oracle Database 10g
+ New OracleAS Web Cache How-To Documents
+ Learn About SQL 2003 Support in Oracle Database 10g
+ New: Quick Installation Guide for RAC on Oracle Database 10g SE (Windows)
+ Oracle Forms Diagnostic Techniques
+ Introduction to JavaServer Faces
+ Prepare for Oracle Database 10g
+ New Tutorial: Learn JSP 2.0
+ Learn Best Practices for Consolidating Oracle on Linux Deployments
+ What's New in PL/SQL in Oracle Database 10g?
+ New Oracle 10g JDBC Samples
+ New Tech Tip: Using HttpUnit in Oracle JDeveloper 10g
+ Oracle 10g Supports Microsoft Windows Media Streaming Services and Windows Media File Format (ASF)
+ New Books at Oracle 10g Book Center
+ Tech Tip: Using JSTL SQL in Oracle JDeveloper 10g Preview
+ New Technical Article Series: The Hitchhiker's Guide to PHP
+ New Enterprise Manager 10g Grid Control Hands-on Tutorial
+ OC4J 10g (10.0.3) Developer Preview 2 Now Available
+ Download the New Oracle JDeveloper Application Migration Assistant (AMA) Search Rules for WebLogic Migrations
+ Learn Oracle in 2 Days
+ Download the new Oracle XDK 10g Production Release
+ Explore New JDBC 10g How-To's
+ New Oracle 10g JDBC Sample: CachedRowSet
+ New RowSet Implementation Tutorial Series
+ Download 2003 ODTUG Conference Papers
+ New Tutorial: Understanding TLD Caching in JSPs
+ Deploy the New J2EE 1.4 Adventure Builder Reference Application to OC4J
+ Download New Servlet Advanced Sample Applications
+ New: Oracle XDK 10g Unicode Support and XSLT Extension Sample App
+ New Oracle Application Server ProcessConnect End-to-End Samples
DBPrism at SourceForge
Built with Cocoon2
Cocoon
 
Cocoon files includes into dbprism.ear

These files are part of the Cocoon distribution packed into dbprism.ear file and modified for the DBPrism / Cocoon CMS and the examples.

Changes made into Cocoon's cocoon.xconf file

This section describes which changes are made into Cocoon's cocoon.xconf file in order to work with DBPrism and DBPrism CMS.

NoteCocoon2 JSP Generator is configured to use Tomcat's JSP engine, this applications deployment has a change into cocoon.xconf file in order to use oracle.jsp.runtimev2.JspServlet class for compiling JSPs.

Here the DBPrism code added to Cocoon's cocoon.xconf file:

<?xml version="1.0"?>
<!-- imports user.roles file which defines 
     DBPrism External Cache Invalidator server -->
<cocoon version="2.0" user-roles="/user.roles">
...

	     <!-- DBPrism External invalidate cache Server built-in logicsheet
             defines <cache:registerPage/> xsp tag, to explicity define an
             external controled cached xsp page
	     see ext/xsp/simple_ext.xsp page for example
	     on ext subsitemap
       -->
 <builtin-logicsheet>
   <parameter name="prefix" value="cache"/>
      <parameter name="uri" 
                 value="http://apache.org/cocoon/cache/1.0"/>
      <parameter name="href" 
                 value="resource://org/apache/cocoon/components/language/markup/xsp/java/cache.xsl"/>
 </builtin-logicsheet>

...
  <!-- ESI Invalidation protocol support:
      InMemoryServerImpl parameters:
          initialCapacity        : number      Value for HashMap store
          loadFactor             : number      Value for HashMap store
      DatabaseServerImpl (HSQLDB) parameter:
          jdbcDriver             : JDBC Driver for the repository
          connectString          : JDBC connect string
          username               : database username
          password               : database password
      Common parameters:
          invalidator-user       : user name used for invalidation purpose
          invalidator-pass       : password used for invalidation purpose
          Cleanup-Thread-Interval: number of seconds betwen checking the inv. queue
    -->
    <cache-server class="org.apache.cocoon.components.cache.DatabaseServerImpl"
                  pool-max="1" pool-min="1"
                  logger="core.cache-server">
      <parameter name="jdbcDriver" value="org.hsqldb.jdbcDriver"/>
      <parameter name="connectString" value="jdbc:hsqldb:."/>
      <parameter name="username" value="sa"/>
      <parameter name="password" value=""/>
      <parameter name="invalidator-user" value="invalidator"/>
      <parameter name="invalidator-pass" value="invalidator"/>
      <parameter name="Cleanup-Thread-Interval" value="1"/>
    </cache-server>
...
  <!-- JSP Engine:
    The JspGenerator selects a JSPEngine component. The JSPEngine component
    launches a JSP servlet engine of your servlet container, feeds the
    HttpRequest into the JSP servlet engine, and pipes the jsp response as
    SAX events into Cocoon2. The JSP page is specified by the HttpRequest.
    This way you can continue to use your JSP pages. Your migration from JSP
    to XSP may be done step by step. You may specify your JSP pages either as
    JSP scriptlets or as JSP-XML. But keep in mind that your JSP output should
    be valid XML.
  -->
  <jsp-engine logger="core.jsp-engine">
    <!-- This line is for Tomcat
    	<parameter name="servlet-class" value="org.apache.jasper.servlet.JspServlet"/>
    -->
    <!-- This line is for Oracle OC4J 1.0.x/Orion
    	<parameter name="servlet-class" value="com.evermind.server.http.JSPServlet"/>
    -->
    <!-- This line is for Oracle OC4J 2.0.0.x
    -->
    <parameter name="servlet-class" value=">oracle.jsp.runtimev2.JspServlet"/>
    <parameter name="servlet-name" value="*.jsp"/>
  </jsp-engine>
...
</cocoon>

user.roles added file

Here the DBPrism user.roles file imported by Cocoon's cocoon.xconf file:

<?xml version="1.0"?>
<!DOCTYPE role-list [
<!ELEMENT role-list (role+)> 
<!ELEMENT role (hint*)>
<!ELEMENT hint EMPTY>
<!ATTLIST role name CDATA #REQUIRED
               shorthand CDATA #REQUIRED
               default-class CDATA #IMPLIED
>
<!ATTLIST hint shorthand CDATA #REQUIRED
               class CDATA #REQUIRED
>
]>

<role-list>
 <role name="org.apache.cocoon.components.cache.Server"
       shorthand="cache-server"
       default-class="org.apache.cocoon.components.cache.DatabaseServerImpl"/>
</role-list>

Changes made into Cocoon's main sitemap.xmap file

This section describes which changes are made into Cocoon's main sitemap.xmap file in order to work with DBPrism and DBPrism CMS. DBPrism changes are enclosed by the comments DBPrism 2.0.1-production begin here


sitemap.xmap file located on cms directory (DBPrism's CMS configuration)

This files is mounted by the previous one sitemap.xmap as a virtual directory /doc.


sitemap.xmap file located on lcms directory (DBPrism CMS Live area)

This files is mounted by the main sitemap.xmap in a directory /ldoc, the purpose of this sitemap.xmap is to provide a live area for the content authors of the CMS with access to the FrontEnd, this sitemap uses a different DAD for accessing to the database (lcms) which is configured with the option perPackage authentication, it mean that users which try to access at this url first needs to be validated again the security system of CMS.


sitemap.xmap file located on xmlj directory (DBPrism/Cocoon2 Demos)

This files is mounted by the main sitemap.xmap in a directory /xmlj, click here to view the source.


sitemap.xmap file located on ext directory (XSP ESI invalidatio support)

This files is mounted by the main sitemap.xmap in a directory /ext, click here to view the source.




Last Update: 2003-08-07 09:43:23.0| webmaster@dbprism.com.ar
Search | Use AltaVista (TM) query syntax<<
Quick Links<<
(C) 2003 - DBPrism ~ DBPrism CMS | Marcelo F. Ochoa | TANDIL ~ Argentina