incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Incubator Wiki] Update of "Synapse/InProgress/Registry" by PaulFremantle
Date Tue, 27 Jun 2006 13:58:03 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Incubator Wiki" for change notification.

The following page has been changed by PaulFremantle:
http://wiki.apache.org/incubator/Synapse/InProgress/Registry

------------------------------------------------------------------------------
- = A Registry/Repository for Synapse =
+ = A Registry/Repository Interface for Synapse =
  
- The registry will expose a Java interface so that it could be used (embedded) in the same
JVM as Synape. In addition it will expose a proxy client interface to a remote repository.
An implementation of the repository could be something as simple as an in-memory hashtable,
or a DB or file system backed persistent system.
+ Synapse will offer a registry interface. An implementation of the repository could be something
as simple as a website full of XMLs, or a real product registry. For example it could be an
SVN repository.
  
- Example usage of the Registry within the Synapse configuration laguage
+ Example usage of the Registry within the Synapse configuration language
  
  '''Define one or more registries'''
  
@@ -14, +14 @@

    </registry>
  }}}
  	
- Registry name would be a name local to the Synapse configuration, to refer to something
defined within this particular registry. The provider class and the properties would create
the registry (or client proxy) required.
+ Registry name would be a name local to the Synapse configuration, to refer to something
defined within this particular registry. The provider class will implement the Registry interface.

  
- One registry definition could be marked as "default" and if a usage does not explicitly
specify the name of a registry, this would be used by default.
+ One registry definition can be marked as "default" and if a usage does not explicitly specify
the name of a registry, then this will be used by default.
  
- Within a Synapse configuration, it would now be possible to refer to items defined in the
above registry.
+ Within a Synapse configuration, you can refer to items defined in the above registry.
  
  e.g. 
  
@@ -58, +58 @@

    </transform>
  }}}
  
- The interface would define the following key operations
+ '''# 4. Lookup a sequence dynamically'''
  
+ {{{
+ <registry-sequence key="getProperty('to-address')" [registry="reg-name"] content-type="synapse/xml"/>
+ }}}
+ 
+ This will lookup a <sequence> in the registry based on a dynamic lookup of the key.
This makes it easy to add a new service or flow to a running synapse by publishing in the
registry.
+ 

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message