File tree 2 files changed +34
-2
lines changed
spring-capgemini-web/src/main
java/pl/altkom/spring/capgemini/web/ws
2 files changed +34
-2
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2014-11-20 the original author or authors.
3
+ */
4
+
5
+ package pl .altkom .spring .capgemini .web .ws ;
6
+
7
+ /**
8
+ *
9
+ * @author Adrian Lapierre <[email protected] >
10
+ */
11
+ public class RaportServiceImpl {
12
+
13
+ public void sendReport () {
14
+ System .out .println ("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" );
15
+
16
+ }
17
+
18
+ }
Original file line number Diff line number Diff line change 11
11
xmlns : context =" http://www.springframework.org/schema/context"
12
12
xmlns : ehcache =" http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring"
13
13
xmlns : jpa =" http://www.springframework.org/schema/data/jpa"
14
+ xmlns : task =" http://www.springframework.org/schema/task"
15
+
14
16
xsi : schemaLocation ="
15
17
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
16
18
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd
22
24
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
23
25
http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring/ehcache-spring-1.1.xsd
24
26
http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa-1.3.xsd
25
- " >
26
-
27
+ http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd
28
+ " >
29
+
30
+
31
+ <task : scheduler id =" scheduler" pool-size =" 10" />
32
+
33
+ <task : scheduled-tasks scheduler =" scheduler" >
34
+ <task : scheduled ref =" reportService" method =" sendReport" cron =" 0/10 * * * * *" />
35
+ </task : scheduled-tasks >
36
+
37
+ <bean id =" reportService" class =" pl.altkom.spring.capgemini.web.ws.RaportServiceImpl" >
38
+
39
+ </bean >
40
+
27
41
<!-- Placeholder config -->
28
42
<context : property-placeholder location =" classpath:system.properties" />
29
43
<context : component-scan base-package =" pl.altkom.spring.spring.capgemini.core.service" />
You can’t perform that action at this time.
0 commit comments