本周 Spring 动态,2012 年 1 月 3 日

工程 | Josh Long | 2012 年 1 月 4 日 | ...

新年快乐!希望您的新年和假期过得愉快。欢迎回来,继续阅读本期《本周 Spring 动态》。

This year is going to be <EM>incredible</EM>, so let's dive right into it.  



This week's  roundup features some content from the last few weeks. Particularly, we've got content that InfoQ   put up     
from the <a href = "http://www.springone2gx.com">SpringOne2GX 2011</a> conference.  

感谢 InfoQ 一如既往地分享精彩内容。

  1. Garry Russel 和 David Turanski 在 SpringOne2GX 的演讲“使用 Spring Integration 实现高可用架构”现已在 InfoQ 上发布。
  2. <LI> Rob Winch demoes some of the <A href = "http://www.infoq.com/presentations/Spring-Security-3-1">new features in Spring Security 3.1</a>: multiple http elements, stateless authentication mode for RESTful services, Debug Filter, CAS support for proxy tickets, JAAS, etc.  This is another great presentation from SpringOne2GX 2011. 
       </LI>
    
    <LI> 
    	Rossen Stoyanchev's presentation at SpringOne2GX 2011 on the <a href = "http://www.infoq.com/presentations/Spring-MVC-3-1-Update">new features in Spring MVC 3.1 is now up over at InfoQ</a>.
    	 </LI>
    
    	<LI> Community member and DevNexus organizer Gunnar Hillert has put together an awesome blog on a powerful, if underrated new feature in Spring 3.1: <a href = "http://hillert.blogspot.com/2011/12/method-validation-with-hibernate.html">support for validating business service methods using JSR 303 and Spring</a>. This support is manifest in the Spring MVC REST support for validating marshalled entities that are part of the request. But, as Gunnar explains, the 
    		 facility can be used generically in any service tier.   </LI> 
    
    <LI>  Blogger <EM>Mrabti</EM> has the second part of his series
    	<a href = "http://crazygui.wordpress.com/2012/01/02/spring-gwt-software-architecture-for-scalable-applications-part-2/">on using Spring and GWT together</a>. Check it out to learn about his architecture and how he used <a href ="http://www.springsource.org/spring-roo">Spring Roo</a> and <a href ="http://www.springsource.org/spring-data">Spring Data</a> together. 
    	
    	  </LI>
    <LI> <EM>Pro Spring</EM> co-author and Spring community member  Jan Machacek  
    	has put together a great blog on  <a href= "http://www.javaworld.com/javaworld/jw-12-2011/111228-learn-scala-with-specs2spring.html">using the Specs2 Spring testing framework to test your Spring applications</a>. Specs2 is a good way to
    					learn Scala, and to test your application.
    	 
    	   </LI>
    <LI>  
    	Tomasz Nurkiewicz has  put together a post on <a href="http://nurkiewicz.blogspot.com/2011/12/enabling-jmx-in-hibernate-ehcache-qurtz.html">exposing Hibernate's 
    	
     and EhCache's statistics using Spring's JMX exporters</a>. The code's written in Scala, but should translate 
     naturally for those conversant in Java. One little niggle is that he subclasses classes	
    	to expose them, which doesn't quite feel right. Sure, it works, but it's probably not required. 
    	
    	In the case of the <CODE>javax.sql.DataSource</CODE>, you can simply  reference it when configuring a <a href="http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/htmlsingle/spring-framework-reference.html#jmx"><CODE>org.springframework.jmx.export.MBeanExporter</CODE></a>.   Obtaining the <EM>native</EM> <CODE>EntityManagerFactory</CODE> isn't difficult, either and shouldn't require a subclass, as the <CODE>AbstractEntityManagerFactoryBean</CODE> base class exposes a public <CODE>nativeEntityManagerFactory</CODE> field which might have worked instead. Anyway,  the concepts are interesting, and - in the end - the blog <EM>does</EM> demonstrate  how to expose JMX information from objects that don't already expose them, so that's very cool. Nice job!
    	
    	 </LI>
    <LI> JavaCodeGeeks has an interesting post on using Spring to <a href = "http://www.javacodegeeks.com/2011/12/spring-mvc-and-rest-at-google-app.html">build RESTful services on Google App Engine</a>.  There's very little specific to Spring here (as that just works - after all, Spring's unparalleled in its ability to work on any cloud). Instead, this post covers the minutae of configuring Google App Engine and of configuring Maven, and so on. A worthy read if you're looking for the details.
    	 </LI>
    	
    	
    
     <LI> Blogger  John Varghese has an interesting (if slightly not technical) write up 
    	 of  <A href = "http://softthoughtsbyjohn.blogspot.com/2011/12/enterprise-application-development.html">enterprise application development with Spring Roo</a>. 
    		</LI>
    		
    <LI> 	SpringSource founder and all around great guy Rod Johnson's presentation at QCon, 
    		<A href="http://www.infoq.com/presentations/Things-I-Wish-I-d-Known">Things I'd Wish I'd Known</A>, 
    		is also up on InfoQ. Rod is a charming presenter and it's great to hear him talk about the  exhilarating  (if sometimes nerve-wracking) development of  SpringSource. 
    	 </LI>
    

获取 Spring 新闻通讯

通过 Spring 新闻通讯保持联系

订阅

领先一步

VMware 提供培训和认证,助您加速进步。

了解更多

获得支持

Tanzu Spring 提供 OpenJDK™、Spring 和 Apache Tomcat® 的支持和二进制文件,只需一份简单的订阅。

了解更多

即将举行的活动

查看 Spring 社区所有即将举行的活动。

查看所有