synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r370764 - /incubator/synapse/trunk/java/xdocs/extension_processor_writing.html
Date Fri, 20 Jan 2006 09:22:48 GMT
Author: saminda
Date: Fri Jan 20 01:22:42 2006
New Revision: 370764

Updated xdocs 


Modified: incubator/synapse/trunk/java/xdocs/extension_processor_writing.html
--- incubator/synapse/trunk/java/xdocs/extension_processor_writing.html (original)
+++ incubator/synapse/trunk/java/xdocs/extension_processor_writing.html Fri Jan 20 01:22:42
@@ -176,7 +176,37 @@
 <p>Leaf Processors should extend from AbstractProcessor. So "Let there be
 Processors". But we are not quite there. We need to do one more
-configuration, Plunging the extension to the core. Go to the class -</p>
+configuration, Plunging the extension to the core. </p>
+<p><i>First Method:</i></p>
+<p>This is based on Service Provider funtionality that comes with JDK1.3 above. For
+information click <a href=""
+<li>Create a META-INF folder somewhere in your System</li>
+<li>Create services folder inside {META-INF/services}</li>
+<li>Create a text file with the QName of interface a.b.c.d.ProcessorConfigurator </li>
+<li>So you will have a text file in the this structure as META-INF/services/a.b.c.d.ProcessorConfigurator</li>
+<li>Inside the text file write the entry of the QName of implementation class of the
interface a.b.c.d.BarProcessorConfigurator </li>
+<li>Now create a Jar file using the structure. Make sure the class a.b.c.d.BarProcessorConfigurator
inside the Jar or in the classpaht and make sure that Jar is in your classpath when running
the Synapse server
+<p>JAR structure is as follows
+           +-services
+                    +-a.b.c.d.ProcessorConfigurator {this is a text file, which has a QName
entry a.b.c.d.BarProcessorConfigurator }
+    a
+     +-b
+       +-c
+         +-d
+           +-BarProcessorConfigurator
+<p><i>Second Method</i></p>
+<p>Go to the class</p>
 <pre>org.apache.synapse.xml.ProcessorConfiguratorFinder  </pre>
 <p> there one will find the following static variable. </p>
@@ -185,6 +215,7 @@
 <p>You have to fill it with your extensions as follows,</p>
 <pre>private static Class[] processorConfigurators = {..., FooProcessorConfigurator.class,BarProcessorConfigurator.class}
 <p>Now you have successfully plugged your processor into Synapse. Finally
 "Let there be Processors". </p>

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message