Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      We need to refine the org.apache.servicemix.api.Reference interface and the way they are build.
      It may be worth defining two interfaces for filtering, selecting, querying and choosing endpoint.
      This could be used to apply policies and/or interceptors to endpoints.

        Activity

        Hide
        Guillaume Nodet added a comment -

        We really need a simple xml syntax to provide endpoint filtering.
        This will be a real need so that a user can add interceptors to the listeners.
        For example something like

        <smx:exchange-listener ref="myListener">
        <smx:from-endpoint="id=myEndpoint" />
        <smx:property name="myHeader" value="toto" />
        </smx:exchange-listener>

        would register a exchange listener with a filter to only accept exchange coming from the endpoint named "myEndpoint" and wich have a header myHeader=toto. This is just an example of course

        Show
        Guillaume Nodet added a comment - We really need a simple xml syntax to provide endpoint filtering. This will be a real need so that a user can add interceptors to the listeners. For example something like <smx:exchange-listener ref="myListener"> <smx:from-endpoint="id=myEndpoint" /> <smx:property name="myHeader" value="toto" /> </smx:exchange-listener> would register a exchange listener with a filter to only accept exchange coming from the endpoint named "myEndpoint" and wich have a header myHeader=toto. This is just an example of course
        Hide
        Guillaume Nodet added a comment -

        Another good way of writing interceptors could also be done with annotations as shown in http://mediacast.sun.com/users/KeithBabo/media/fuji-interceptors.swf

        Show
        Guillaume Nodet added a comment - Another good way of writing interceptors could also be done with annotations as shown in http://mediacast.sun.com/users/KeithBabo/media/fuji-interceptors.swf

          People

          • Assignee:
            Guillaume Nodet
            Reporter:
            Guillaume Nodet
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development