diff --git a/doc/reference/src/index.xml b/doc/reference/src/index.xml
index 66d546b3..747d1beb 100644
--- a/doc/reference/src/index.xml
+++ b/doc/reference/src/index.xml
@@ -42,6 +42,7 @@
+
@@ -362,6 +363,9 @@
+
+
+
&quickstarts;
@@ -371,6 +375,7 @@
&springair;
&data-quickstart;
&tx-quickstart;
+ &quartz-quickstart;
Spring.NET for Java developers
diff --git a/examples/Spring/Spring.Scheduling.Quartz.Example/Spring.Scheduling.Quartz.Example.2005.sln b/examples/Spring/Spring.Scheduling.Quartz.Example/Spring.Scheduling.Quartz.Example.2005.sln
index a36f3801..52a7437b 100644
--- a/examples/Spring/Spring.Scheduling.Quartz.Example/Spring.Scheduling.Quartz.Example.2005.sln
+++ b/examples/Spring/Spring.Scheduling.Quartz.Example/Spring.Scheduling.Quartz.Example.2005.sln
@@ -1,12 +1,6 @@
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Scheduling.Quartz.2005", "..\..\..\src\Spring\Spring.Scheduling.Quartz\Spring.Scheduling.Quartz.2005.csproj", "{E823D54C-CE82-4868-929F-5F95A999F61E}"
- ProjectSection(WebsiteProperties) = preProject
- Debug.AspNetCompiler.Debug = "True"
- Release.AspNetCompiler.Debug = "False"
- EndProjectSection
-EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Scheduling.Quartz.Example.2005", "src\Spring.Scheduling.Quartz.Example.2005.csproj", "{0C0D8C65-90DE-4914-9940-4C684C54971B}"
ProjectSection(WebsiteProperties) = preProject
Debug.AspNetCompiler.Debug = "True"
@@ -19,10 +13,6 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {E823D54C-CE82-4868-929F-5F95A999F61E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {E823D54C-CE82-4868-929F-5F95A999F61E}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {E823D54C-CE82-4868-929F-5F95A999F61E}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {E823D54C-CE82-4868-929F-5F95A999F61E}.Release|Any CPU.Build.0 = Release|Any CPU
{0C0D8C65-90DE-4914-9940-4C684C54971B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0C0D8C65-90DE-4914-9940-4C684C54971B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0C0D8C65-90DE-4914-9940-4C684C54971B}.Release|Any CPU.ActiveCfg = Release|Any CPU
diff --git a/examples/Spring/Spring.Scheduling.Quartz.Example/src/AdminService.cs b/examples/Spring/Spring.Scheduling.Quartz.Example/src/AdminService.cs
new file mode 100644
index 00000000..f0bdefb9
--- /dev/null
+++ b/examples/Spring/Spring.Scheduling.Quartz.Example/src/AdminService.cs
@@ -0,0 +1,44 @@
+#region License
+
+/*
+ * Copyright 2002-2008 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.
+ */
+
+#endregion
+
+using System;
+
+namespace Spring.Scheduling.Quartz.Example
+{
+
+ ///
+ /// A 'plain' object (no inheritance of any infrastructure base class) whose method will
+ /// be invoked by Quartz.
+ ///
+ public class AdminService
+ {
+ private string userName;
+
+ public string UserName
+ {
+ set { userName = value; }
+ }
+
+ public void DoAdminWork()
+ {
+ Console.WriteLine("{0}: DoAdminWork called, user name: {1}", DateTime.Now, userName);
+ }
+ }
+}
\ No newline at end of file
diff --git a/examples/Spring/Spring.Scheduling.Quartz.Example/src/App.config b/examples/Spring/Spring.Scheduling.Quartz.Example/src/App.config
index b08a3419..8bbceac3 100644
--- a/examples/Spring/Spring.Scheduling.Quartz.Example/src/App.config
+++ b/examples/Spring/Spring.Scheduling.Quartz.Example/src/App.config
@@ -1,5 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/Spring/Spring.Scheduling.Quartz.Example/src/ExampleJob.cs b/examples/Spring/Spring.Scheduling.Quartz.Example/src/ExampleJob.cs
index 4aadf821..dc815cee 100644
--- a/examples/Spring/Spring.Scheduling.Quartz.Example/src/ExampleJob.cs
+++ b/examples/Spring/Spring.Scheduling.Quartz.Example/src/ExampleJob.cs
@@ -11,14 +11,15 @@ namespace Spring.Scheduling.Quartz.Example
///
public class ExampleJob : QuartzJobObject
{
- private int timeout;
+
+ private string userName;
///
/// Simple property that can be injected.
///
- public int Timeout
+ public string UserName
{
- set { timeout = value; }
+ set { userName = value; }
}
///
@@ -27,15 +28,9 @@ namespace Spring.Scheduling.Quartz.Example
///
protected override void ExecuteInternal(JobExecutionContext context)
{
- Console.WriteLine("{0}: ExecuteInternal called, timeout: {1}", DateTime.Now, timeout);
+ Console.WriteLine("{0}: ExecuteInternal called, user name: {1}, next fire time {2}",
+ DateTime.Now, userName, context.NextFireTimeUtc.Value.ToLocalTime());
}
- ///
- /// Custom job execution method.
- ///
- public void DoIt()
- {
- Console.WriteLine("{0}: DoIt called, timeout: {1}", DateTime.Now, timeout);
- }
}
}
diff --git a/examples/Spring/Spring.Scheduling.Quartz.Example/src/Program.cs b/examples/Spring/Spring.Scheduling.Quartz.Example/src/Program.cs
index 6d71ac7a..7991dcb0 100644
--- a/examples/Spring/Spring.Scheduling.Quartz.Example/src/Program.cs
+++ b/examples/Spring/Spring.Scheduling.Quartz.Example/src/Program.cs
@@ -11,12 +11,15 @@ namespace Spring.Scheduling.Quartz.Example
try
{
XmlApplicationContext ctx = new XmlApplicationContext("spring-objects.xml");
- Console.WriteLine("Spring configuration succeeded.");
+ Console.WriteLine("Spring configuration succeeded, quartz jobs running.");
}
catch (Exception ex)
{
Console.WriteLine(ex);
+ Console.Out.WriteLine("--- Press to quit ---");
+ Console.ReadLine();
}
+ Console.Out.WriteLine("--- Press to quit ---");
Console.ReadLine();
}
}
diff --git a/examples/Spring/Spring.Scheduling.Quartz.Example/src/Spring.Scheduling.Quartz.Example.2005.csproj b/examples/Spring/Spring.Scheduling.Quartz.Example/src/Spring.Scheduling.Quartz.Example.2005.csproj
index cfc85a13..21583081 100644
--- a/examples/Spring/Spring.Scheduling.Quartz.Example/src/Spring.Scheduling.Quartz.Example.2005.csproj
+++ b/examples/Spring/Spring.Scheduling.Quartz.Example/src/Spring.Scheduling.Quartz.Example.2005.csproj
@@ -85,6 +85,10 @@
False
..\..\..\..\bin\net\2.0\debug\Spring.Core.dll
+
+ False
+ ..\..\..\..\bin\net\2.0\debug\Spring.Scheduling.Quartz.dll
+
System
@@ -92,6 +96,7 @@
+
Code
@@ -99,12 +104,6 @@
Code
-
-
- {E823D54C-CE82-4868-929F-5F95A999F61E}
- Spring.Scheduling.Quartz.2005
-
-
diff --git a/examples/Spring/Spring.Scheduling.Quartz.Example/src/spring-objects.xml b/examples/Spring/Spring.Scheduling.Quartz.Example/src/spring-objects.xml
index 23afe636..e10e05e4 100644
--- a/examples/Spring/Spring.Scheduling.Quartz.Example/src/spring-objects.xml
+++ b/examples/Spring/Spring.Scheduling.Quartz.Example/src/spring-objects.xml
@@ -7,26 +7,25 @@
-
+
-
@@ -54,7 +53,6 @@
-
\ No newline at end of file