It depends what version of JVM you are using. BlazeDS provides multiple implementations of their XPath-based ConfigurationParser, and we configure the Xalan one by default because of noted performance problems with the XPath implementation in the 1.5 JDK.
The BlazeDS implementation of ConfigurationManager uses some class loading tricks to determine which ConfigurationParser to install, but since those tricks can lead to problems in an OSGi environment, we chose in our ConfigurationManager implementation to install the Xalan based parser by default but leave it configurable via Spring configuration.
So if you really don't want to use Xalan, and you're okay with the 1.5 Xpath implementation, you should be able to configure the MessageBroker something like the following as an alternative:
Code:
<!-- Bootstraps and exposes the BlazeDS MessageBroker -->
<bean id="mySpringManagedMessageBroker"
class="org.springframework.flex.messaging.MessageBrokerFactoryBean" >
<property name="configurationManager" ref="flexConfigurationManager"/>
</bean>
<!-- Configuration manager that uses the JDK 1.5 ConfigurationParser instead of Xalan -->
<bean id="flexConfigurationManager"
class="org.springframework.flex.messaging.config.FlexConfigurationManager">
<property name="configurationParser">
<bean class="flex.messaging.config.XPathServerConfigurationParser"/>
</property>
</bean>
Jeremy Grelle
Staff Engineer, Web Products Team
SpringSource