<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=stevewickii" rel="nofollow">Stephen M. Wick</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3797?redirect=false" rel="nofollow">SPR-3797</a></strong> and commented</p>
<p dir="auto">Through Spring v2.0.2, MethodInvokingJobDetailFactoryBean cannot be used within a clustered Quartz deployment.</p>
<p dir="auto">I am attaching a cluster-safe version of Spring's MethodInvokingJobDetailFactoryBean, and a new BeanInvokingJobDetailFactoryBean for your review and possible inclusion in the Spring framework offering.</p>
<p dir="auto">MethodInvokingJobDetailFactoryBean can be used to invoke a method on a Java Object. The Object and method arguments must be Serializable. Alternatively, you can configure this FactoryBean to invoke a Static method on any Class by specifying the name of the Class, as a String, and the name of the Static Method to invoke. Again, the method arguments must be Serializable. (See the JavaDoc within the source for more information)</p>
<p dir="auto">BeanInvokingJobDetailFactoryBean can be used to invoke a method on any bean defined within the Spring ApplicationContext. The method arguments must be Serializable. (See the JavaDoc within the source for more information)</p>
<p dir="auto">Note : As of Quartz 1.6.0 there is a bug that prevents Objects from being Serialized to the MS SQL Server (required for Quartz Clustering). (See <a href="http://forums.opensymphony.com/messa...ssageID=128249" rel="nofollow">http://forums.opensymphony.com/messa...ssageID=128249</a>)<br>
Therefore, the following limitations apply to those using MS SQL Server until Quartz 1.6.1 is released:<br>
MethodInvokingJobDetailFactoryBean is restricted to Static No-Arg Method Invocation.<br>
BeanInvokingJobDetailFactoryBean is restricted to No-Arg Method Invocation.</p>
<p dir="auto">Please let me know if you have issues with these FactoryBeans. I am also looking for feedback on how useful, or not, these components are.</p>
<p dir="auto">I hope these components save you time and effort!</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 1.0 RC1, 1.0 RC2, 1.0 final, 1.0.1, 1.0.2, 1.1 RC1, 1.1 RC2, 1.1 final, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.2 RC1, 1.2 RC2, 1.2 final, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 1.2.8, 2.0 M1, 2.0 M2, 2.0 M3, 2.0 M4, 2.0 M5, 2.0 RC1, 2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 final, 2.0.1, 2.0.2, 1.2.9</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/12821/BeanInvokingJobDetailFactoryBean.java" rel="nofollow">BeanInvokingJobDetailFactoryBean.java</a> (<em>18.93 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/12820/MethodInvokingJobDetailFactoryBean.java" rel="nofollow">MethodInvokingJobDetailFactoryBean.java</a> (<em>19.47 kB</em>)</li>
</ul>
<p dir="auto">3 votes, 4 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=juergen.hoeller" rel="nofollow">Juergen Hoeller</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-69?redirect=false" rel="nofollow">SPR-69</a></strong> and commented</p>
<p dir="auto">Support for defining validation rules on beans via source markup.</p>
<p dir="auto">Support for declarative assignment of PropertyValidationRules to bean properties via Spring-IoC, through a scripting environment such as Groovy/Beanshell, or programatically in plain Java.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 1.2 RC1</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398097026" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10704" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10704/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10704">#10704</a> Validation: Initial support for dependency injection of a JSR-303 Validator (<em><strong>"depends on"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398086031" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9205" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9205/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9205">#9205</a> Integration of SpringMVC with Hibernate Validator (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398089549" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9650" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9650/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9650">#9650</a> Provide integrated support for validation within <code class="notranslate">@MVC</code> lifecycle (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398088010" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9451" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9451/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9451">#9451</a> <code class="notranslate">@Validator</code>, <code class="notranslate">@Validate</code></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398092800" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10091" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10091/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10091">#10091</a> Integrating validation into the <code class="notranslate">@MVC</code> request lifecycle</li>
</ul>
<p dir="auto">14 votes, 13 watchers</p>