Tuesday, November 8, 2011
Spring Introduce Environment Profile
Friday, November 19, 2010
What's new in Spring 3.1 - Part II
Saturday, October 16, 2010
What's new in Spring 3.1?
With all of the good stuff in Spring 3.0, it's hard to imagine what could possibly follow in Spring 3.1.
I just got this news from Spring2GX event side that they are introducing a number of often-requested configuration features. Need a standalone datasource in dev, but one from JNDI in production? Environment-Specific Bean Definitions are a first-class approach to solving this very common kind of problem. Love code-based configuration, but need the power and concision of Spring XML namespaces?
I'm guessing they will have support or integration for other languages like Scala, Groovy etc....well this event is one week away and will update more as i get more info about this...
Just to see what we have so far from spring, here are some points from Spring 3.0 enhancements
Full-scale REST support in Spring MVC, including Spring MVC controllers that respond to REST-style URLs with XML, JSON, RSS, or any other appropriate response. We'll look into Spring 3's new REST support in chapter 12.
A new expression language that brings Spring dependency injection to a new level by enabling injection of values from a variety of sources, including other beans and system properties. We'll dig into Spring's expression language in the next chapter.
New annotations for Spring MVC, including @CookieValue and @RequestHeader, to pull values from cookies and request headers, respectively. We'll see how to use these annotations as we look at Spring MVC in chapter 7.
A new XML namespace for easing configuration of Spring MVC.
Support for declarative validation with JSR-303 (Bean Validation) annotations.
Support for the new JSR-330 dependency injection specification.
Annotation-oriented declaration of asynchronous and scheduled methods.
A new annotation-based configuration model that allows for nearly XML-free Spring configuration. We'll see this new configuration style in the next chapter.
The Object-to-XML (OXM) mapping functionality from the Spring Web Services project has been moved into the core Spring Framework.
Thursday, August 12, 2010
Spring RestTemplate
Clearly one has many choices in selecting a client side framework for RESTful HTTP. In most cases it probably makes sense to use the same framework for the service and client end. Then again, if you are only a consumer of a service you have multiple choices among those shown above as well as the option of using Apache HTTP Client or Components directly and bypassing the higher level frameworks. For some, integrating with the spring framework is important and all the above frameworks have means of integration points, both on the service and client sides. Support for Client Proxies is something one might want to consider as they tend to simplify the programming model. Further if Resource definitions can be shared among client server, that can be quite useful in being DRY (Don't repeat yourself) and provide means for contract definition. For those interested in performance and tuning of the HTTP Connections, using a framework that allows you to manage connection pooling and other parameters is definitely the way to go.
For more information on Spring RestTemplate, visit Spring blog
Spring RestTemplate Example: