Resin 4.0 Upgrade
From Resin 3.0
Contents |
Mandatory (non-backward compat)
There are some changes to the Resin 4.0 configuration that require updates when upgrading:
- resin:type and resin:class are no longer valid
- 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>