synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lucas Moten (JIRA)" <j...@apache.org>
Subject [jira] Created: (SYNAPSE-437) Initialize Inline Fault Sequences for Proxy Targets
Date Tue, 26 Aug 2008 14:36:44 GMT
Initialize Inline Fault Sequences for Proxy Targets
---------------------------------------------------

                 Key: SYNAPSE-437
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-437
             Project: Synapse
          Issue Type: Bug
          Components: Core, Proxy Services
            Reporter: Lucas Moten
            Priority: Minor
         Attachments: SynapseConfiguration_Init_TargetInlineFaultSequence.txt

When synapse is initialized, target inline in and out sequences are initialized for proxies.
 Inline fault sequences that contain mediators requiring initialization will fail with a null
pointer exception because they are not initialized.

The inline fault sequences appear to be initialized only from the ProxyService start method.
 This is turn does not appear to be called by synapse core, but is utilized by a separate,
but related project, WSO2 ESB admin interface in the ProxyServiceAdmin class (startProxyService
and saveProxyService).  When synapse core is started, all proxies are running by default,
initialized via SynapseConfiguration.  Those proxies that are explicitly configured with startOnLoad
attribute set to false are then stopped.  

Workaround: Use named sequences for proxies which are initialized when synapse is started.
 Named sequences are initialized independently of proxy targets from the SynapseConfiguration
init method.  Most samples available with synapse make use of named sequences.

Recommended fix: Initialize target inline fault sequences for proxies in Synapse Configuration

Index: modules/core/src/main/java/org/apache/synapse/config/SynapseConfiguration.java
===================================================================
--- modules/core/src/main/java/org/apache/synapse/config/SynapseConfiguration.java	(revision
688865)
+++ modules/core/src/main/java/org/apache/synapse/config/SynapseConfiguration.java	(working
copy)
@@ -825,6 +825,10 @@
                 if (p.getTargetInLineOutSequence() != null) {
                     p.getTargetInLineOutSequence().init(se);
                 }
+                
+                if (p.getTargetInLineFaultSequence() != null) {
+                	p.getTargetInLineFaultSequence().init(se);
+                }
         }
 
         // initialize managed mediators

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message