Resin 4.0 Upgrade

From Resin 3.0

Revision as of 18:50, 19 February 2009 by Ferg (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Mandatory (non-backward compat)

There are some changes to the Resin 4.0 configuration that require updates when upgrading:

  1. resin:type and resin:class are no longer valid
  2. security ServletAuthenticators may need to be rewritten

resin:type and resin:class

In Resin 4.0, the Java CanDI (Dependency Injection) syntax replaces the old resin:type syntax for specifying custom configuration classes. The CanDI syntax uses an XML namespace containing the package and an XML local name with the class. For example:

custom AccessLog

 <access-log>
    <foo:MyLog xmlns:foo="urn:java:com.foo"
                       path="..."
                       rollover-period="...">
        <foo:param>my-param</foo:param>
    </foo:MyLog>
 </access-log>

old (invalid) custom AccessLog

 <access-log resin:type="com.foo.MyLog"
                     path="..."
                     rollover-period="...">
      <init param="my-param"/>
 </access-log>
Personal tools