Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Turbine Wiki" for 
change notification.

The "Turbine4/Turbine4.0M1/Migrate233" page has been changed by ThomasVandahl:
http://wiki.apache.org/turbine/Turbine4/Turbine4.0M1/Migrate233?action=diff&rev1=1&rev2=2

Comment:
Start to fill up.

  Start with the 
[[http://turbine.apache.org/turbine/turbine-4.0-M1/howto/migrate-from-2_3-howto.html|migration
 guide]] and report about your experiences here.
  
+ == Migrating Turbine Services to Fulcrum Services ==
+ 
+ The Turbine services configuration used to live in 
`WEB-INF/conf/TurbineResources.properties`. The Avalon container uses two files 
to achieve the same function, namely `WEB-INF/conf/roleConfiguration.xml` to 
define which component is implemented by which class and 
`WEB-INF/conf/componentConfiguration.xml` to define the detailed configuration 
of each component.
+ 
+ === AvalonComponentService ===
+ 
+ The !AvalonComponentService is the main service container for all Fulcrum 
Services. We replaced the deprecated Excalibur container with the Fulcrum YAAFI 
container by default. See 
[[http://turbine.apache.org/fulcrum/fulcrum-yaafi/|YAAFI site]] for a 
description of the differences if you use other than the provided Avalon 
Services with Turbine.
+ 
+ Replace entry in `TurbineResources.properties` for the 
''!AvalonComponentService''
+ {{{#!properties
+ 
services.AvalonComponentService.classname=org.apache.turbine.services.avaloncomponent.ACSYaafiComponentService
+ }}}
+ 
+ with the following entry
+ 
+ {{{#!properties
+ 
services.AvalonComponentService.classname=org.apache.turbine.services.avaloncomponent.TurbineYaafiComponentService
+ }}}
+ 
+ Be sure to have the line
+ 
+ {{{#!properties
+ # Determines if the component service should be initialized early.
+ services.AvalonComponentService.earlyInit=true
+ }}}
+ 
+ It starts the service container during the servlet start and makes sure that 
all Avalon components are available.
+ 
+ === CryptoService ===
+ 
+ The !TurbineCryptoService has been replaced with the 
[[http://turbine.apache.org/fulcrum/fulcrum-crypto/|Fulcrum Crypto]] 
counterpart. The following example shows the default configuration of the 
''!CryptoService'' before and after the migration. For details of the 
configuration options available see the 
[[http://turbine.apache.org/fulcrum/fulcrum-crypto/|Fulcrum Crypto Site]].
+ 
+ `TurbineResources.properties`:
+ 
+ {{{
+ 
services.CryptoService.classname=org.apache.turbine.services.crypto.TurbineCryptoService
+ 
+ # -------------------------------------------------------------------
+ #
+ #  C R Y P T O   S E R V I C E
+ #
+ # -------------------------------------------------------------------
+ 
+ #
+ # Standard Unix crypt(3) password encryption.
+ #
+ services.CryptoService.algorithm.unix = 
org.apache.turbine.services.crypto.provider.UnixCrypt
+ #
+ # This providers allows access to the Java Message Digest encryption 
algorithms
+ #
+ services.CryptoService.algorithm.java = 
org.apache.turbine.services.crypto.provider.JavaCrypt
+ #
+ # This is a simple, cleartext "encryption" provider.
+ #
+ services.CryptoService.algorithm.cleartext = 
org.apache.turbine.services.crypto.provider.ClearCrypt
+ #
+ # Use this provider if you upgrade from Turbine 2.1 to current. It provides 
bug-to-bug
+ # compatibility for passwords created with the old Security Service. See the 
javadocs for
+ # OldJavaCrypt
+ #
+ services.CryptoService.algorithm.oldjava = 
org.apache.turbine.services.crypto.provider.OldJavaCrypt
+ #
+ # This is the default crypto provider. It implements the normal Java 
MessageDigest ciphers
+ # You need not to have this, it is the default if no algorithms are given. 
The default
+ # provider gives you all the Java MessageDigest Ciphers
+ #
+ services.CryptoService.algorithm.default = 
org.apache.turbine.services.crypto.provider.JavaCrypt
+ }}}
+ 
+ `roleConfiguration.xml`:
+ 
+ {{{#!xml
+     <role
+         name="org.apache.fulcrum.crypto.CryptoService"
+         shorthand="crypto"
+         default-class="org.apache.fulcrum.crypto.DefaultCryptoService"/>
+ }}}
+ 
+ `componentConfiguration.xml`:
+ 
+ {{{#!xml
+     <crypto>
+       <algorithm>
+               <unix>org.apache.fulcrum.crypto.provider.UnixCrypt</unix>
+         <clear>org.apache.fulcrum.crypto.provider.ClearCrypt</clear>
+         <java>org.apache.fulcrum.crypto.provider.JavaCrypt</java>
+         <oldjava>org.apache.fulcrum.crypto.provider.OldJavaCrypt</oldjava>
+       </algorithm>
+     </crypto>
+ }}}
+ 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to