cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@cocoon.zones.apache.org
Subject [DAISY] Updated: New in 2.2
Date Mon, 11 Feb 2008 23:46:56 GMT
A document has been updated:

http://cocoon.zones.apache.org/daisy/documentation/1420.html

Document ID: 1420
Branch: main
Language: default
Name: New in 2.2 (unchanged)
Document Type: Cocoon Document (unchanged)
Updated on: 2/11/08 11:46:44 PM
Updated by: Thorsten Scherler

A new version has been created, state: draft

Parts
=====

Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name:  (unchanged)
Size: 5613 bytes (previous version: 4808 bytes)
Content diff:
(90 equal lines skipped)
    
    <p class="fixme">Deprecation is subject of an ongoing dicussion.</p>
    
+++ <h1>Migrating 2.1 components</h1>
+++ 
+++ <p>When you have avalon based components that you want to use with the new
+++ spring configuration system make sure you are configure them right. Avalon based
+++ components were implementing an interface to e.g. be Threadsafe. In Spring you
+++ will need to configure the scope (default is singletone). If you see a lot of
+++ NPE in concurrency tests then you would need to use the prototype scope as shown
+++ below.</p>
+++ 
+++ 
+++ <pre/>
+++ 
+++ <pre>&lt;beans&gt;
+++   &lt;bean id="dispatcher" scope="prototype"
+++     name="org.apache.cocoon.transformation.Transformer/dispatcher"
+++     class="org.apache.forrest.dispatcher.transformation.DispatcherTransformer"&gt;
+++     &lt;property name="manager" ref="org.apache.avalon.framework.service.ServiceManager"/&gt;
+++   &lt;/bean&gt;
+++ &lt;/beans&gt;</pre>
+++ 
+++ 
+++ <pre/>
+++ 
    <h1>Incompatible changes</h1>
    
    <ul>
(13 equal lines skipped)


Mime
View raw message