Announcement Announcement Module
Collapse
No announcement yet.
Declaring a Simple Gateway in XML Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Declaring a Simple Gateway in XML

    I have a gateway interface
    Code:
    public interface MyGateway {
    
         @Gateway(requestChannel="myOperation1.channel")
         void myOperation1(MyMessage1 myMessage1);
    
         @Gateway(requestChannel="myOperation2.channel")
         void myOperation2(MyMessage2 myMessage2);
    }
    Simply declared
    Code:
    <gateway id="myGateway" service-interface="org.example.MyGateway"/>
    Now the gateway interface doesn't belong to me, how can I do to the same without @Gateway annotations? That is to say declare a gateway in XML and map each operation on a different channel.

  • #2
    Can you please open an issue in JIRA?

    We could add support for methodName-to-channel mapping as sub-elements.

    Thanks,
    Mark

    Comment


    • #3
      Done. INT-707

      Comment


      • #4
        Thank you. I've assigned it for the first milestone of 2.0 which we will begin developing as soon as 1.0.3 is released (very soon).

        The only thing I can think of initially that might be tricky is dealing with methods of the same name and different type. However, I guess in the worst, case those methods could share a channel and that channel could have a PayloadTypeRouter on the other side.

        Comment

        Working...
        X