Issue Details (XML | Word | Printable)

Key: MULE-3638
Type: New Feature New Feature
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Dimitar Dimitrov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Mule

Allow global endpoints to extend other global endpoints

Created: 27/Aug/08 04:41 AM   Updated: 09/Nov/08 10:22 AM
Component/s: Core: Configuration
Affects Version/s: 2.0.2
Fix Version/s: 2.x Product Backlog

Time Tracking:
Not Specified

Labels:
User impact: High
Configuration:
<endpoint name="abstract.foo" address="protocol://user:pass@blah.blah/foo/bar?key=value#fragment"/>

<endpoint name="foo" ref="abstract.foo" transformer-refs="FOO BAR" remoteSync="true">
<property key="cache" value-ref="cache.foo"/>
</endpoint>

Migration Impact:
None - the schema allows the ref attribute and the schema docs say:

                    A reference to a global endpoint.
                    If this attribute is used then the endpoint is used as a template to construct this endpoint.
                    A template fixes the address (protocol, path, host, etc), and may specify initial values for
                    various properties, but further properties can be defined locally (as long as they don't
                    change the address in any way).


 Description  « Hide
In the configuration bellow, I am trying to define a minimal "abstract" endpoint, defining only the address; and use it as a base for a service endpoint (defining everything else). Mule fails with error that the EndpointBuilder does not have a "ref" property.

In my real scenario, both definitions reside in different files. I have multiple versions of the file containing abstract endpoints - one for unit testing, one for QA (where some systems are stubbed, some are real) and a third one for UAT and PROD. Right now I repeat the transformers and filter deffinitions in all three files, but it's getting annoying.



 All   Comments   Work Log   Change History   Transitions   FishEye      Sort Order: Ascending order - Click to sort in descending order
Daniel Feist added a comment - 27/Aug/08 07:05 PM
Hi,
If I understood correctly this is more like a feature request than a bug I think. You want to be able to have one global endpoint extend another global endpoint. The reference you are using fails because it's a reference from a global endpoint rather than from a concrete endpoint.

Dimitar Dimitrov added a comment - 27/Aug/08 07:15 PM
Hi Daniel,

Right now, nothing in the documentation or the XSD tells me that it's not valid to extend one global endpoint from another.

If that is by design, then please consider this a feature request. The use case is described above (I can elaborate if needed) and the impact to the documentation and existing users is none.