I have a few ideas for possible solutions:
1. Simple JDK version checking. Use System.getProperty("java.specification.version") to determine the JDK version and choose the appropriate Castor configuration to use. That property returns values such as: 1.1, 1.2, 1.3, ...
2. Look for a pluto_descriptor.properties file in the classpath. Before checking the system property check if a file /pluto_descriptor.properties exists in the classpath and read the property from that file. That would allow Pluto implementers to include a .properties file with the correct configuration for their portal.
3. Make a portal callback API to determine the configuration. This would be fairly complex as I'm thinking the descriptor service would need to queue up parsing of the descriptor XML files until the portal context was up and running and could provide the configuration.
I'm more than happy to implement any of the solutions or consider others. Thanks -Eric || ||
smime.p7s
Description: S/MIME Cryptographic Signature
