INT-1240, removed 'default' from 'operation-name' and 'object-name', since 'operation-name' and 'object-name' is now required on adapters/gateway, there is no reason calling them 'default'
This commit is contained in:
@@ -69,9 +69,9 @@ public class OperationInvokingMessageHandlerTests {
|
||||
QueueChannel outputChannel = new QueueChannel();
|
||||
OperationInvokingMessageHandler handler = new OperationInvokingMessageHandler();
|
||||
handler.setServer(this.server);
|
||||
handler.setDefaultObjectName(this.objectName);
|
||||
handler.setObjectName(this.objectName);
|
||||
handler.setOutputChannel(outputChannel);
|
||||
handler.setDefaultOperationName("x");
|
||||
handler.setOperationName("x");
|
||||
handler.afterPropertiesSet();
|
||||
Map<String, Object> params = new HashMap<String, Object>();
|
||||
params.put("p1", "foo");
|
||||
@@ -88,9 +88,9 @@ public class OperationInvokingMessageHandlerTests {
|
||||
QueueChannel outputChannel = new QueueChannel();
|
||||
OperationInvokingMessageHandler handler = new OperationInvokingMessageHandler();
|
||||
handler.setServer(this.server);
|
||||
handler.setDefaultObjectName(this.objectName);
|
||||
handler.setObjectName(this.objectName);
|
||||
handler.setOutputChannel(outputChannel);
|
||||
handler.setDefaultOperationName("y");
|
||||
handler.setOperationName("y");
|
||||
handler.afterPropertiesSet();
|
||||
Message<?> message = MessageBuilder.withPayload("foo").build();
|
||||
handler.handleMessage(message);
|
||||
@@ -101,9 +101,9 @@ public class OperationInvokingMessageHandlerTests {
|
||||
QueueChannel outputChannel = new QueueChannel();
|
||||
OperationInvokingMessageHandler handler = new OperationInvokingMessageHandler();
|
||||
handler.setServer(this.server);
|
||||
handler.setDefaultObjectName(this.objectName);
|
||||
handler.setObjectName(this.objectName);
|
||||
handler.setOutputChannel(outputChannel);
|
||||
handler.setDefaultOperationName("x");
|
||||
handler.setOperationName("x");
|
||||
handler.afterPropertiesSet();
|
||||
Map<String, Object> params = new HashMap<String, Object>();
|
||||
params.put("p1", "foo");
|
||||
@@ -119,9 +119,9 @@ public class OperationInvokingMessageHandlerTests {
|
||||
QueueChannel outputChannel = new QueueChannel();
|
||||
OperationInvokingMessageHandler handler = new OperationInvokingMessageHandler();
|
||||
handler.setServer(this.server);
|
||||
handler.setDefaultObjectName(this.objectName);
|
||||
handler.setObjectName(this.objectName);
|
||||
handler.setOutputChannel(outputChannel);
|
||||
handler.setDefaultOperationName("x");
|
||||
handler.setOperationName("x");
|
||||
handler.afterPropertiesSet();
|
||||
List<Object> params = Arrays.asList(new Object[] { "foo", new Integer(123) });
|
||||
Message<?> message = MessageBuilder.withPayload(params).build();
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
<context:mbean-server/>
|
||||
|
||||
<jmx:operation-invoking-channel-adapter id="input"
|
||||
default-object-name="org.springframework.integration.jmx.config:type=TestBean,name=testBeanAdapter"
|
||||
default-operation-name="test"/>
|
||||
object-name="org.springframework.integration.jmx.config:type=TestBean,name=testBeanAdapter"
|
||||
operation-name="test"/>
|
||||
|
||||
<bean id="testBeanAdapter" class="org.springframework.integration.jmx.config.TestBean"/>
|
||||
|
||||
|
||||
@@ -30,12 +30,12 @@
|
||||
|
||||
<jmx:operation-invoking-outbound-gateway request-channel="withReplyChannel"
|
||||
reply-channel="withReplyChannelOutput"
|
||||
default-object-name="org.springframework.integration.jmx.config:type=TestBean,name=testBeanGateway"
|
||||
default-operation-name="testWithReturn"/>
|
||||
object-name="org.springframework.integration.jmx.config:type=TestBean,name=testBeanGateway"
|
||||
operation-name="testWithReturn"/>
|
||||
|
||||
<jmx:operation-invoking-outbound-gateway request-channel="withNoReplyChannel"
|
||||
default-object-name="org.springframework.integration.jmx.config:type=TestBean,name=testBeanGateway"
|
||||
default-operation-name="testWithReturn"/>
|
||||
object-name="org.springframework.integration.jmx.config:type=TestBean,name=testBeanGateway"
|
||||
operation-name="testWithReturn"/>
|
||||
|
||||
<bean id="testBeanGateway" class="org.springframework.integration.jmx.config.TestBean"/>
|
||||
</beans>
|
||||
|
||||
Reference in New Issue
Block a user