I’m in the process of skilling up on the spring framework used within the Websphere application server container. What I have amassed so far are a ton of links to various tutorials and developerWorks articles that answer a few questions:
- What is Spring?
- Why do I want to use it?
- How do I use it?
- How do I use it such that the WebSphere Container can manage connections to resources?
- How do I control transactionality?
My links so far:
- Using Spring and Hibernate with WebSphere Application Server
- Enterprise Java Community: Introduction To The Spring Framework 2.5
- The Spring Framework – Reference Documentation
- Asynchronous Messaging Made Easy With Spring JMS
- The Spring Framework Forum
- A Primer on Spring’s Data Access Object (DAO) Framework
- ZK Spring DAO Example
- Twelve Best Practices for Spring
- Develop Spring applications for WebSphere Application Server Community Edition, Part 1: Spring MVC
- Spring and WebSphere – fish and chips, or fish on a bike?
Luckily, my scenario is relatively straight forward, I get a message from a queue and then need to persist it into a database without any need for transformation.
I took a brief look at Spring JMS for the message listener, but the documentation confused me. There is an attribute that states how long Spring will wait for a message to arrive. In my case, I want it to behave like a listener “Stay up forever”. So I don’t understand if Spring can be used with activation specifications or not.
For a while, I got confused by the ‘DAO’ pattern. I kept thinking that it was the equivalent of a Process Server Business Object (ie just contains data) but it’s really more of “the object that controls serialization to the back end”. I’m also viewing Spring as a framework that initializes classes based on information contained in an XML file.
I find that it’s harder to understand the benefits of Spring when working inside the application server. WAS already has all of this abstraction contained via JNDI lookups.
Anyway, I’m still ramping up the Spring learning curve, so take anything I say about how it works with a huge grain of salt. I’m likelier to be wrong than right.