Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想创建一个自定义消息侦听器,它也发回响应,我正在实现 MessageListener ,但它只有 void 类型方法 public void receive(Message arg0) throws MessageListenerException 我试图做 arg0.setResponse("Test");
但它导致了一个例外。
MessageListener 仅用于侦听消息而不响应。对于响应,您可以再次使用MessageProducer。
MessageProducer
我在 ant 脚本中有简单的用户输入元素(从 maven antrun 插件运行):
<input addproperty="myprop" validargs="y,n" defaultvalue="y">
这