Announcement Announcement Module
Collapse
No announcement yet.
Gateway with no payload Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Gateway with no payload

    Hi,

    I have created the following SI configuration:
    Code:
    <int:gateway
    		service-interface="com.test.PayoutButtonGateway"
    		id="payoutButtonGateway"
    		default-request-channel="payoutPressedChannel">
    </int:gateway>
    <int:channel id="payoutPressedChannel">
    	<int:interceptors>
    	         <int:wire-tap channel="logger"/>
    	</int:interceptors>
    </int:channel>
    <int:outbound-channel-adapter channel="payoutPressedChannel" ref="payoutService" method="payout"/>
    The PayoutButtonGateway interface looks like this:
    Code:
    public interface PayoutButtonGateway {
    
    	void payout();
    
    }
    I call the gateway in the following way:
    Code:
    @Autowired
    private PayoutButtonGateway payoutGateway;
    
    public void callGateway() {
    	payoutGateway.payout();
    }
    My problem is that nothing happens. The logger doesn't log any messages.

    If I change the gateway interface to:
    Code:
    public interface PayoutButtonGateway {
    
    	void payout(String msg);
    
    }
    Then I can send messages through the channel.

    Why can't I use a method on the gateway with no parameters?

    My goal is to simply send a "signal" that some event happened.
Working...
X