ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • spring3 task namespace
    personal study 2011. 1. 24. 19:51
    spring framework을 쓴지 어언 몇년인데 아직도
    네임스페이스를 못잡아서 헤메냐 - -;;

    * namespace 설정
    <beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://www.springframework.org/schema/beans"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:task="http://www.springframework.org/schema/task"
    xsi:schemaLocation="http://www.springframework.org/schema/task
            http://www.springframework.org/schema/task/spring-task-3.0.xsd">


    * tag 설정 예제
    <task:scheduler id="myScheduler"/>
    <task:scheduled-tasks scheduler="myScheduler">
       <task:scheduled ref="pushService" method="excute" fixed-delay="5000"/>
    </task:scheduled-tasks>
    <bean id="pushService" class="com.PushService" autowire="byName"/>

Designed by Tistory.