Author: ruwan
Date: Fri Oct 5 01:50:44 2007
New Revision: 582134
URL: http://svn.apache.org/viewvc?rev=582134&view=rev
Log:
fixing an issue introduced by me in my last commit, not picking the registry
entry named main in case of not specifying the main seq and the set of
mediators in the root level
Modified:
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/SynapseXMLConfigurationFactory.java
Modified:
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/SynapseXMLConfigurationFactory.java
URL:
http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/SynapseXMLConfigurationFactory.java?rev=582134&r1=582133&r2=582134&view=diff
==============================================================================
---
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/SynapseXMLConfigurationFactory.java
(original)
+++
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/SynapseXMLConfigurationFactory.java
Fri Oct 5 01:50:44 2007
@@ -104,8 +104,13 @@
}
+ // if there is no sequence named main defined locally look for the set
of mediators in
+ // the root level before trying to look in the registry (hence
config.getMainSequence
+ // can not be used here)
if
(!config.getLocalRegistry().containsKey(SynapseConstants.MAIN_SEQUENCE_KEY)) {
- if (rootSequence.getList().isEmpty()) {
+ // if the root tag does not contain any mediators & registry does
not have a
+ // entry with key main then use the defualt main sequence
+ if (rootSequence.getList().isEmpty() && config.getMainSequence()
== null) {
setDefaultMainSequence(config);
} else {
config.addSequence(rootSequence.getName(), rootSequence);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]