On Wed, 2006-05-17 at 11:34 +0530, Asankha C. Perera wrote:
> 
> The Spring configuration thus would be kept outside of the synapse XML 
> configuration (as the synapse configuration could be created 
> programmatically as well).

+1 for keeping that bit of config outside. However, it'll be good if we
can support inlined configs as well.

So how about:

<synapse>
  <rules>
    <spring id="id-of-bean-to-run-as-mediator" [src="uri-to-config"]>
      optional spring config goes here
    </spring>
  </rules>
</synapse>

That is, we create a new element called "spring" (I'd prefer not to use
the word mediator in any name as we haven't done it for anything else)
and have it identify the spring bean to run and either point to an
external config or inline a config. 

This way you can have it either way; inlined config or external config.

Sanjiva.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to