Posts

Showing posts with the label spring

Spring Util Map Annotation with Enum key

I wanted create java.util.Map in spring context xml file which injects the Map to one of my service class, but i was struggling with this because my Map's key is an enum value , Finally I was able fix that issue as following, in Spring we can specify the key-type and value-type specifically with generics values. That part was the interesting and new part i found time. All it goes as follows. <map      key-type="EnumType">         <entry key="ENUM_VALUE"  value-ref="leastLoadedAssignmentMechanism" /> </map>

Vaadin And Spring Integration

This is my documentation for the steps that i have followed to integrate the Spring with the Vaadin. web.xml changes So first we need to add the Spring Context listener to load the bean configuration file. <listener> <listener-class> org.springframework.web.context.ContextLoaderListener </listener-class> </listener> <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/applicationContext.xml</param-value> </context-param> Add the Spring Servlet to intercept Vaadin requests   <servlet> <servlet-name>VaadinSpringServlet</servlet-name> <servlet-class>com.dhaval.web.vaadin.spring.servlet.SpringApplicationServlet</servlet-class> <init-param> <param-name>applicationBean</param-name> <param-value>testApplication</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name...

Spring 3.0 Article

I have found the following slide show a spring 3.0 is very much interesting and explain most of the features it has in new release. http://www.slideshare.net/sbrannen/whats-new-in-spring-30-2560016 What's New in Spring 3.0 View more presentations from Sam Brannen .

Message Driven POJOs!

Image
Message Driven POJOs! Posted on August 11th, 2006 by Mark Fisher in 2.0 , JMS , Spring . Of all the new Spring 2.0 features and improvements, I must admit that Message-Driven POJOs are one of my personal favorites. I have a feeling that a lot of other Spring users will feel the same way. Here I am providing a quick introduction. There is a lot more to show, and I will follow this up with other posts. For now though - this should provide you with enough information to get up and running with some truly POJO-based asynchronous JMS! I hope you are as excited about that as I am Prerequisites: You will need the following JAR files on your classpath. I've also listed the versions that I am using (any spring-2.x version should be fine. I just dropped RC3 in there about 2 minutes ago in fact): activemq-core-3.2.2.jar concurrent-1.3.4.jar geronimo-spec-j2ee-managment-1.0-rc4.jar commmons-logging-1.0.4.jar log4j-1.2.9.jar jms-1.1.jar spring-2.0-rc3.jar Setup the En...