Technical Article

A link to a technical article about Spring

Blog Entries: Using Spring 2.0 to Save and Load Script Beans to/from the Database

In two blog entries, Chris Tam shows demonstrates using Spring 2.0 dynamic language support and iBatis to save any bean written as a script in Beanshell, Groovy or JRuby into database, and then how to load them back.

Using Spring 2.0 Dynamic Language to Save Script Bean Into Database

Using Spring 2.0 Dynamic Language to Load Record from Database to a Scripted Bean

Blog Entry: Dynamic DataSource Routing

Mark Fisher has written a blog entry on Dynamic DataSource Routing with Spring 2.0's AbstractRoutingDataSource. In most Java applications using DataSources (usually equating to a connection pool), there is one static DataSource, or if there are multiple DataSources, they are static to the DAOs using them. However it is sometimes desireable to be able to dynamically select a DataSoure based on some sort of environmental context, and this article shows one way to achive this.

Blog Entry: Spring IDE powering ahead

In Spring IDE, powering ahead, Rod Johnson blogs about some of the great Spring 2.0 specific enhancements coming to Spring IDE, the Spring-specific plugin for Eclipse.

Article: Spring 2.0: What's New and Why it Matters

Spring 2.0: What's New and Why it Matters is an infoQ article by Rod Johnson, the first of two part. This in-depth piece is well worth reading for anybody wishing to understand the evolution of Spring 2.0 as it introduces significant new features, and how these combine to provide the simplicity and power that is the central theme of this release.

Blog Entry: The Beauty Of Webwork & Spring - Reusing code in a non-web application

In a blog entry, Jeff C discusses what steps where necessary to convert a web application into a standalone application.  He attributes the ease with which this was accomplished to the design of the frameworks he used -- WebWork, Spring and iBATIS.

Blog Entry: More fun with Spring scopes / Java

In his blog entry, More fun with Spring scopes / Java, Eugene Kuleshov shows another potentially interesting use of the custom scope capability introduced in Spring 2.0. He creates a custom scope which binds to specific request URLs. Effectively this allows any data to be bound to a specific page or whatever request specific artifact the current request URL represents, accessible as a regular Spring bean. Think of it as a permanent Page/Request scope, as opposed to the Servlet spec's regular Page/Request scope, which lives only for the lifetime of the current request.

Article: Implementing an efficient Id generator with Spring framework / Java

In his detailed blog entry, Implementing an efficient Id generator with Spring framework / Java, Eugene Kuleshov shows how to implement a high performance ID generator for database-driven Spring applications, with the novel approach of utilizing a Spring 2.0 custom scope as part of the implementation.

Oracle Article Blitz: Spring Soup with OC4J and MBeans

Spring Soup with OC4J and MBeans, by Steve Button, is a wll illustrated article which steps throught the process of exposing a Spring service as a JMX managed MBean, in an OC4J environment, by using Spring transparent JMX support. It then shows how the MBean can be viewd and managed in the Application Server Control management console supplied with OC4J.

The Oct. 2006 Oracle monthly newsletter for Java developers is dedicated to Spring framework, and this is just one article linked to from this issue of the newsletter.

Oracle Article Blitz: How-To : Using EJB 3.0 Session beans in Spring Beans

How-To : Using EJB 3.0 Session beans in Spring Beans, by Debu Panda, is an article showing an example application that demonstrates the use of EJB 3.0 Session beans from Spring Beans.

The Oct. 2006 Oracle monthly newsletter for Java developers is dedicated to Spring framework, and this is just one article linked to from this issue of the newsletter.

From the introduction: This sample uses a EJB 3.0 Session bean (EmployeeFacade EJB) that uses JPA to persist an entity. The EJB 3.0 Session bean is injected into a Spring bean (EmployeeFacadeServiceBean). The web module uses the Spring bean to persist the entity instance. The application uses declarative transaction with EJB 3.0. For simplicity we have used a Servlet (InsertServlet) as a controller and it uses EmployeeServiceFacadeBean

Oracle Article Blitz: How-To : Using EJB 3.0 and Java Persistence API with Spring in OC4J

How-To : Using EJB 3.0 and Java Persistence API with Spring in OC4J, by Debu Panda, is an article which show an application combining the use of Spring Framework, Java Persistence API (JPA), and EJB 3.0 Sesion beans.  

The Oct. 2006 Oracle monthly newsletter for Java developers is dedicated to Spring framework, and this is just one article linked to from this issue of the newsletter.

From the introduction: This example application demonstrates Oracle's support for Spring with EJB 3.0 Session beans, and a container-managed entity manager with Spring's JpaTemplate. This sample uses a Spring-enabled EJB 3.0 Session bean (EmployeeFacade EJB) that uses a Spring bean(EmployeeService bean). The Spring bean uses a Data Access Object (EmployeeDAO) that uses Spring's JpaTemplate to manipulate entities. The persistence unit is managed by the EJB container by using a container-managed entity manager and passing it to Spring using setter injection. The application uses declarative transaction with EJB 3.0. For simplicity and to demonstrate the dependency injection support in the web container we have used a Servlet (InsertServlet) as a controller and it uses dependency injection to inject an instance of EmployeeFacade. 

 

 

Syndicate content