2012-12-12 42 views

回答

3

使用短信網關發送一個消息傳遞到控制總線...

public interface Gateway { 
    boolean controlBusBooleanMethod(String command); 
} 

... 

<int:gateway service-interface="foo.Gateway" default-request-channel="toControlBus" /> 

... 

@Autowired 
Gateway gateway; 

... 

boolean isRunning = gateway.controlBusBooleanMethod("@adapter.isRunning()"); 

.... 

HTH

相關問題