But if we use a LinkedHashMap, the map keeps the
order of keys as they were inserted:
"This linked list defines the iteration ordering,
which is normally the order in which keys were
inserted into the map".
So it should be safe to use this implementation.
The map does not sort on key values like a TreeMap does.

On 10/9/06, Fabrice Dewasmes <[EMAIL PROTECTED]> wrote:


gnodet wrote:
>
> Endpoints order should be kept inside an SU.
> Could you raise a JIRA for that, it should be easy
> to fix by replacing the used map implementation by
> an ordered map.
>

In fact, endpoints are stored in a HashMap with keys generated by
EndpointSupport class and which are Strings that look like :
{namespace}servicename:endpointname

using an ordered map won't solve anything as you've got no indication of
ordering except the natural order, and I don't know if we can safely prefix
the key string with the order number or even use an object as a key as the
string is used to build destination for routing.

Fabrice

--
View this message in context: 
http://www.nabble.com/http-endpoint-activation-ordering-tf2395343.html#a6718919
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.




--
Cheers,
Guillaume Nodet

Reply via email to