You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Gert Vanthienen (JIRA)" <ji...@apache.org> on 2010/07/02 12:14:51 UTC
[jira] Created: (SMX4NMR-200) Add support for building Wires with a
matcher at the from end and dynamic endpoint properties at the to end
Add support for building Wires with a matcher at the from end and dynamic endpoint properties at the to end
-----------------------------------------------------------------------------------------------------------
Key: SMX4NMR-200
URL: https://issues.apache.org/activemq/browse/SMX4NMR-200
Project: ServiceMix NMR
Issue Type: Improvement
Affects Versions: 1.4.0
Reporter: Gert Vanthienen
Assignee: Gert Vanthienen
Fix For: 1.6.0
Currenty, when defining an NMR wire, we explicitly define the from end with all the endpoint properties. If we change the API for the Wire interface to allow matching a property set, we can create multi-ended wires, which can be useful for generically handling/redirects some requests, e.g. while migrating namespaces/service names
`
For example:
{code}
public interface Wire {
public boolean matches(Map properies);
public Map getTarget(Map properties);
}
{code}
If we keep the existing ServiceHelper.createWire() method, we can even do this without breaking the existing use of Wires .
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.