background preloader

Spring

Facebook Twitter

Xdoclet

Maven. Engine. It’s Only Software » 5 Minute Guide to Spring and JMX. I recently augmented a Spring-based project to expose some of the Spring-managed beans via JMX. Spring makes this very easy, and even if you’ve never used JMX before, this quick tutorial will let you set up your Spring beans to be viewed (and edited!) Through a JMX console. Prerequisites Make sure you have a recent version of Spring (I used Spring 2.5 RC 1, but Spring 2.0.x will do).Make sure you have a recent version of Java, ideally Java 6.You should try to have an existing Spring application that you can follow along with, deployed in an app server that has built-in JMX support (i.e. has an MBean server that you can reuse).

I use Tomcat 6 in this walk-through. Cook-Along Add the following to your Spring XML configuration file: This will set up a Spring-managed JMX configuration with the following attributes: Using an existing MBean serverAuto-detecting beans with the @ManagedResource annotationMBean naming defined by the “objectName” attribute of the @ManagedResource annotation. Chrishulbert/JavaTutorial - GitHub. Java & Struts2 & Spring & Hibernate & Eclipse Tutorial (Building a web app from scratch) » New IT Farmer. Bienvenue sur "Spring par la pratique" Développement web avec MAVEN - SRING 2.5 – HIBERNATE « Architecture - Projet - Open Source - JAVA.

Get a better handle on Struts actions, with Spring. Karl Baum's Weblog. Wednesday April 06, 2005 Lazy Initialization and the DAO pattern with Hibernate and Spring Hibernate and Lazy Initialization Hibernate object relational mapping offers both lazy and non-lazy modes of object initialization. Non-lazy initialization retrieves an object and all of its related objects at load time. This can result in hundreds if not thousands of select statements when retrieving one entity.

The problem is compounded when bi-directional relationships are used, often causing entire databases to be loaded during the initial request. Of course one could tediously examine each object relationship and manually remove those most costly, but in the end, we may be losing the ease of use benefit sought in using the ORM tool. The obvious solution is to employ the lazy loading mechanism provided by hibernate. Being Lazy in the Web Layer Fortunately for us, the Spring Framework has developed an out of box web solution for using the DAO pattern in combination with Hibernate lazy loading. Acegi Security System for Spring - Acegi Security System for Spring.