Category Archives: Spring

Spring Web – Four Day Workshop

IMG_2300This post is a short overview of the Four day workshop about Spring Web. The full name of this course is Building Enterprise Web Applications using Spring MVC. I participated in the course this week. This is the latest version of the course. An exam aligned to this edition should be available soon.  

Continue reading

Spring I/O 2015 conference in Barcelona

IMG_0676I had an opportunity to participate in the Spring I/O 2015 conference in Barcelona [1]. I was there with some guys from my work. This was a 2-day conference. The event was mainly focused on spring-related products. It was expected ;) Organizers say about it 2 days full of Spring, Groovy, Grails and Cloud. In general, opinions expressed in this post are based on my observations of facts and presentations which I saw. I can say that the atmosphere was good enough. My general feeling is positive. We should take into account the duration, organization, purpose and price in order to evaluate the event.

Continue reading

Spring and EJB integration

springejbEJB components differ from Spring beans on the technical background whereas their concept is quite similar. The technical diversity might be an issue when composing dependencies between these two bean types. The purpose of this post it to give an idea to design solutions based on a mutual EJB and Spring beans interoperability. There are taken into account two main concerns: accessing EJB components from Spring beans and accessing Spring beans from EJB components. The post introduces technical aspects referring to a simple enterprise application implementing beans cooperation.

Continue reading

Bootstrapping a Spring Application Context in a JEE RAR/EAR

The way of loading a Spring Application Context in Java Web Applications and JSE applications is commonly known. For web applications packaged in WAR files, in a web.xml file need to be declared a ContextLoaderListener and a contextConfigLocation context parameter which refers to XML Spring Application Context configurations. On the other hand, for JSE applications a Spring Application Context is loaded manually in code.
This article tries to present how to design a Java EE application that gives a possibility to load a Spring Application Context without using a WebApplicationContext. It is not always required to have a web nature of a Java enterprise application.

Continue reading