Created
November 25, 2015 14:17
-
-
Save garyrussell/0df4a69546e93228c8d9 to your computer and use it in GitHub Desktop.
INT-3898 Refute
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2015 the original author or authors. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, | |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
* See the License for the specific language governing permissions and | |
* limitations under the License. | |
*/ | |
package org.foo.int3898; | |
import org.springframework.context.ConfigurableApplicationContext; | |
import org.springframework.context.support.ClassPathXmlApplicationContext; | |
/** | |
* @author Gary Russell | |
* | |
*/ | |
public class App { | |
public static void main(String[] args) { | |
ConfigurableApplicationContext ctx = new ClassPathXmlApplicationContext("context.xml"); | |
ctx.getBean(Gate.class).processAsyncMsgExcution("+++++foo+++++"); | |
ctx.close(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" | |
xmlns:jms="http://www.springframework.org/schema/jms" xmlns:jee="http://www.springframework.org/schema/jee" | |
xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" | |
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:amq="http://activemq.apache.org/schema/core" | |
xmlns:int="http://www.springframework.org/schema/integration" | |
xmlns:int-jms="http://www.springframework.org/schema/integration/jms" | |
xmlns:int-stream="http://www.springframework.org/schema/integration/stream" | |
xmlns:int-groovy="http://www.springframework.org/schema/integration/groovy" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd | |
http://www.springframework.org/schema/context | |
http://www.springframework.org/schema/context/spring-context-3.0.xsd | |
http://www.springframework.org/schema/tx | |
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd | |
http://www.springframework.org/schema/aop | |
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd | |
http://www.springframework.org/schema/jms | |
http://www.springframework.org/schema/jms/spring-jms-3.1.xsd | |
http://www.springframework.org/schema/jee | |
http://www.springframework.org/schema/jee/spring-jee-3.0.xsd | |
http://www.springframework.org/schema/integration | |
http://www.springframework.org/schema/integration/spring-integration.xsd | |
http://www.springframework.org/schema/integration/jms | |
http://www.springframework.org/schema/integration/jms/spring-integration-jms.xsd | |
http://www.springframework.org/schema/integration/stream | |
http://www.springframework.org/schema/integration/stream/spring-integration-stream.xsd | |
http://www.springframework.org/schema/integration/groovy | |
http://www.springframework.org/schema/integration/groovy/spring-integration-groovy.xsd"> | |
<int:channel id="outputChannel" /> | |
<int:gateway id="reportEngineGateway" service-interface="org.foo.int3898.Gate" | |
default-reply-channel="outputChannel"> | |
<int:method name="processAsyncMsgExcution" request-channel="executeMsgChannel" /> | |
</int:gateway> | |
<int:service-activator input-channel="executeMsgChannel" | |
output-channel="nullChannel" ref="reportEngineADHRestHelper" method="execute"> | |
</int:service-activator> | |
<bean id="reportEngineADHRestHelper" class="org.foo.int3898.Helper" /> | |
<int:channel id="outputChannel"> | |
<int:queue capacity="10" /> | |
</int:channel> | |
</beans> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2015 the original author or authors. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, | |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
* See the License for the specific language governing permissions and | |
* limitations under the License. | |
*/ | |
package org.foo.int3898; | |
/** | |
* @author Gary Russell | |
* | |
*/ | |
public interface Gate { | |
void processAsyncMsgExcution(String foo); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2015 the original author or authors. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, | |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
* See the License for the specific language governing permissions and | |
* limitations under the License. | |
*/ | |
package org.foo.int3898; | |
/** | |
* @author Gary Russell | |
* | |
*/ | |
public class Helper { | |
public void execute(String foo) { | |
System.out.println(foo); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.foo</groupId> | |
<artifactId>int3898</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<packaging>jar</packaging> | |
<name>int3898</name> | |
<url>http://maven.apache.org</url> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>4.12</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.integration</groupId> | |
<artifactId>spring-integration-core</artifactId> | |
<version>2.2.4.RELEASE</version> | |
</dependency> | |
</dependencies> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment