From 6d2edcc80c543290a1695e1eb364ba4ac6c0df1f Mon Sep 17 00:00:00 2001
From: ?? ? <ulysseskao@ximple.com.tw>
Date: Fri, 30 Apr 2010 18:21:18 +0800
Subject: [PATCH] 

---
 xdgnjobs/ximple-jobcarrier/src/main/resources/quartz_jobs.xml |   50 ++++++++++++++++++++++++++++++++------------------
 1 files changed, 32 insertions(+), 18 deletions(-)

diff --git a/xdgnjobs/ximple-jobcarrier/src/main/resources/quartz_jobs.xml b/xdgnjobs/ximple-jobcarrier/src/main/resources/quartz_jobs.xml
index df229a7..91819a3 100644
--- a/xdgnjobs/ximple-jobcarrier/src/main/resources/quartz_jobs.xml
+++ b/xdgnjobs/ximple-jobcarrier/src/main/resources/quartz_jobs.xml
@@ -1,13 +1,26 @@
 <?xml version='1.0' encoding='utf-8'?>
 
-<quartz xmlns="http://www.opensymphony.com/quartz/JobSchedulingData"
-        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-        xsi:schemaLocation="http://www.opensymphony.com/quartz/JobSchedulingData
-        http://www.opensymphony.com/quartz/xml/job_scheduling_data_1_5.xsd"
-        version="1.5">
+<job-scheduling-data xmlns="http://www.quartz-scheduler.org/xml/JobSchedulingData"
+                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+                     xsi:schemaLocation="http://www.quartz-scheduler.org/xml/JobSchedulingData http://www.quartz-scheduler.org/xml/job_scheduling_data_1_8.xsd"
+                     version="1.8">
 
-  <job>
-    <job-detail>
+  <pre-processing-commands>
+    <delete-jobs-in-group>*</delete-jobs-in-group>
+    <!-- clear all jobs in scheduler -->
+    <delete-triggers-in-group>*</delete-triggers-in-group>
+    <!-- clear all triggers in scheduler -->
+  </pre-processing-commands>
+
+  <processing-directives>
+    <!-- if there are any jobs/trigger in scheduler of same name (as in this file), overwrite them -->
+    <overwrite-existing-data>true</overwrite-existing-data>
+    <!-- if there are any jobs/trigger in scheduler of same name (as in this file), and over-write is false, ignore them rather then generating an error -->
+    <ignore-duplicates>false</ignore-duplicates>
+  </processing-directives>
+
+  <schedule>
+    <job>
       <name>ConvertDgn2PostGisIntoPostgre</name>
       <group>DEFAULT</group>
       <description>A job that convert dgn to shapefiles</description>
@@ -15,18 +28,19 @@
       <volatility>false</volatility>
       <durability>false</durability>
       <recover>false</recover>
-      <job-data-map allows-transient-data="true">
+      <!--job-data-map allows-transient-data="true"-->
+      <job-data-map>
         <entry>
           <key>JOBDATA_DIR</key>
-          <value>C:\DBS\XDGNDATA</value>
+          <value>C:\Usr\Projects\XDCAD\nstpcjobs</value>
         </entry>
         <entry>
           <key>PGHOST</key>
-          <value>127.0.0.1</value>
+          <value>192.168.11.99</value>
         </entry>
         <entry>
           <key>PGDDATBASE</key>
-          <value>tpc</value>
+          <value>pgNSTPC</value>
         </entry>
         <entry>
           <key>PGPORT</key>
@@ -38,15 +52,15 @@
         </entry>
         <entry>
           <key>PGUSER</key>
-          <value>spatialdb</value>
+          <value>tpcdb</value>
         </entry>
         <entry>
           <key>PGPASS</key>
-          <value>spatialdb000</value>
+          <value>simple000</value>
         </entry>
         <entry>
           <key>ORAHOST</key>
-          <value>10.206.120.190</value>
+          <value>192.168.11.200</value>
         </entry>
         <entry>
           <key>ORAINST</key>
@@ -109,11 +123,11 @@
           <value>true</value>
         </entry>
         <entry>
-          <key>USEEPSG3826</key>
+          <key>USEZONE121</key>
           <value>true</value>
         </entry>
       </job-data-map>
-    </job-detail>
+    </job>
 
     <trigger>
       <simple>
@@ -129,5 +143,5 @@
       </simple>
     </trigger>
 
-  </job>
-</quartz>
+  </schedule>
+</job-scheduling-data>

--
Gitblit v0.0.0-SNAPSHOT