Skip to content

Commit 3bbb7c8

Browse files
BAEL-80 - removing an obsolete file
(cherry picked from commit 5f6912f)
1 parent a16584c commit 3bbb7c8

2 files changed

Lines changed: 213 additions & 0 deletions

File tree

‎spring-integration/pom.xml‎

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<groupId>com.baeldung.samples.spring.integration</groupId>
6+
<artifactId>baeldungSIsample</artifactId>
7+
<version>1.0.0.BUILD-SNAPSHOT</version>
8+
<packaging>jar</packaging>
9+
10+
<name>Baeldung Spring Intro</name>
11+
<url>http://www.springsource.org/spring-integration</url>
12+
13+
<prerequisites>
14+
<maven>2.2.1</maven>
15+
</prerequisites>
16+
17+
<properties>
18+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19+
<spring.integration.version>2.2.4.RELEASE</spring.integration.version>
20+
<log4j.version>1.2.17</log4j.version>
21+
<junit.version>4.11</junit.version>
22+
</properties>
23+
24+
<repositories>
25+
<repository>
26+
<id>repo.springsource.org.milestone</id>
27+
<name>Spring Framework Maven Milestone Repository</name>
28+
<url>https://repo.springsource.org/milestone</url>
29+
</repository>
30+
</repositories>
31+
32+
<build>
33+
<plugins>
34+
<plugin>
35+
<artifactId>maven-eclipse-plugin</artifactId>
36+
<version>2.9</version>
37+
<configuration>
38+
<additionalProjectnatures>
39+
<projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
40+
</additionalProjectnatures>
41+
<additionalBuildcommands>
42+
<buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
43+
</additionalBuildcommands>
44+
<downloadSources>true</downloadSources>
45+
<downloadJavadocs>true</downloadJavadocs>
46+
</configuration>
47+
</plugin>
48+
<plugin>
49+
<groupId>org.apache.maven.plugins</groupId>
50+
<artifactId>maven-compiler-plugin</artifactId>
51+
<version>3.1</version>
52+
<configuration>
53+
<source>1.6</source>
54+
<target>1.6</target>
55+
<compilerArgument>-Xlint:all</compilerArgument>
56+
<showWarnings>true</showWarnings>
57+
<showDeprecation>true</showDeprecation>
58+
</configuration>
59+
</plugin>
60+
<plugin>
61+
<groupId>org.codehaus.mojo</groupId>
62+
<artifactId>exec-maven-plugin</artifactId>
63+
<version>1.2.1</version>
64+
<configuration>
65+
<mainClass>com.baeldung.samples.Main</mainClass>
66+
</configuration>
67+
</plugin>
68+
</plugins>
69+
</build>
70+
71+
<dependencies>
72+
73+
<!-- Testing -->
74+
75+
<dependency>
76+
<groupId>junit</groupId>
77+
<artifactId>junit</artifactId>
78+
<version>${junit.version}</version>
79+
<scope>test</scope>
80+
</dependency>
81+
<dependency>
82+
<groupId>org.springframework.integration</groupId>
83+
<artifactId>spring-integration-core</artifactId>
84+
<version>4.3.4.RELEASE</version>
85+
</dependency>
86+
<dependency>
87+
<groupId>javax.activation</groupId>
88+
<artifactId>activation</artifactId>
89+
<version>1.1.1</version>
90+
<optional>true</optional>
91+
</dependency>
92+
<dependency>
93+
<groupId>javax.mail</groupId>
94+
<artifactId>mail</artifactId>
95+
<version>1.4.7</version>
96+
</dependency>
97+
<dependency>
98+
<groupId>log4j</groupId>
99+
<artifactId>log4j</artifactId>
100+
<version>${log4j.version}</version>
101+
</dependency>
102+
<dependency>
103+
<groupId>org.springframework.integration</groupId>
104+
<artifactId>spring-integration-twitter</artifactId>
105+
<version>4.3.4.RELEASE</version>
106+
</dependency>
107+
<dependency>
108+
<groupId>org.springframework.integration</groupId>
109+
<artifactId>spring-integration-mail</artifactId>
110+
<version>4.3.4.RELEASE</version>
111+
</dependency>
112+
<dependency>
113+
<groupId>org.springframework.integration</groupId>
114+
<artifactId>spring-integration-ftp</artifactId>
115+
<version>4.3.4.RELEASE</version>
116+
</dependency>
117+
<dependency>
118+
<groupId>org.springframework.social</groupId>
119+
<artifactId>spring-social-core</artifactId>
120+
<version>1.1.4.RELEASE</version>
121+
</dependency>
122+
<dependency>
123+
<groupId>org.springframework.integration</groupId>
124+
<artifactId>spring-integration-file</artifactId>
125+
<version>4.3.4.RELEASE</version>
126+
</dependency>
127+
<dependency>
128+
<groupId>junit</groupId>
129+
<artifactId>junit</artifactId>
130+
<version>4.12</version>
131+
</dependency>
132+
</dependencies>
133+
</project>
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<beans xmlns="http://www.springframework.org/schema/beans"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:int="http://www.springframework.org/schema/integration"
4+
xmlns:file="http://www.springframework.org/schema/integration/file"
5+
xmlns:ftp="http://www.springframework.org/schema/integration/ftp"
6+
xmlns:mail="http://www.springframework.org/schema/integration/mail"
7+
xmlns:twitter="http://www.springframework.org/schema/integration/twitter"
8+
xsi:schemaLocation="http://www.springframework.org/schema/beans
9+
http://www.springframework.org/schema/beans/spring-beans.xsd
10+
http://www.springframework.org/schema/integration
11+
http://www.springframework.org/schema/integration/spring-integration.xsd
12+
http://www.springframework.org/schema/integration/file
13+
http://www.springframework.org/schema/integration/file/spring-integration-file.xsd
14+
http://www.springframework.org/schema/integration/ftp
15+
http://www.springframework.org/schema/integration/ftp/spring-integration-ftp.xsd
16+
http://www.springframework.org/schema/integration/mail
17+
http://www.springframework.org/schema/integration/mail/spring-integration-mail.xsd
18+
http://www.springframework.org/schema/integration/twitter
19+
http://www.springframework.org/schema/integration/twitter/spring-integration-twitter.xsd">
20+
21+
<int:publish-subscribe-channel id="videoChannel" />
22+
23+
<int:bridge input-channel="videoChannel" output-channel="ftpOutbound" />
24+
<int:channel id="ftpOutbound" />
25+
<int:bridge input-channel="videoChannel" output-channel="emailOutbound" />
26+
<int:channel id="emailOutbound" />
27+
28+
29+
<int:bridge output-channel="twitterOutbound" input-channel="videoChannel" />
30+
31+
<int:channel id="twitterOutbound" />
32+
33+
<twitter:outbound-channel-adapter
34+
twitter-template="twitterTemplate" channel="twitterOutbound" />
35+
36+
<bean name="twitterTemplate"
37+
class="org.springframework.social.twitter.api.impl.TwitterTemplate">
38+
<constructor-arg index="0" value="${consumer-key}" />
39+
<constructor-arg index="1" value="${consumer-secret}" />
40+
<constructor-arg index="2" value="${access-token}" />
41+
<constructor-arg index="3" value="${access-token-secret}" />
42+
</bean>
43+
44+
<file:inbound-channel-adapter id="videoFolder"
45+
directory="/studio/edits/video" channel="videoChannel"
46+
prevent-duplicates="true">
47+
<int:poller fixed-rate="1000" />
48+
</file:inbound-channel-adapter>
49+
50+
<mail:outbound-channel-adapter channel="emailOutbound"
51+
mail-sender="mailSender" />
52+
53+
<bean name="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
54+
<property name="host" value="smtp.gmail.com" />
55+
<property name="port" value="587" />
56+
<property name="username" value="yourUsername" />
57+
<property name="password" value="yourPassword" />
58+
</bean>
59+
60+
<ftp:outbound-channel-adapter channel="ftpOutbound"
61+
remote-directory="/news/archive/video/" session-factory="sessionFactory" />
62+
63+
64+
65+
<bean name="sessionFactory"
66+
class="org.springframework.integration.ftp.session.DefaultFtpSessionFactory">
67+
<property name="host" value="localhost" />
68+
<property name="port" value="587" />
69+
<property name="username" value="yourUsername" />
70+
<property name="password" value="yourPassword" />
71+
</bean>
72+
73+
<int:bridge input-channel="videoChannel" output-channel="activatorChannel"/>
74+
<int:channel id="activatorChannel"/>
75+
76+
<int:service-activator input-channel="activatorChannel" method="handleMessage" ref="customActivator"/>
77+
78+
<bean name="customActivator" class="com.baeldung.samples.endpoints.ActivatorImpl"/>
79+
80+
</beans>

0 commit comments

Comments
 (0)