Home » Tag Archives: Spring (page 82)

Tag Archives: Spring

RESTful Web Service Discoverability, part 4

spring-interview-questions-answers

This is the fourth of a series of articles about setting up a secure RESTful Web Service using Spring 3.1 and Spring Security 3.1 with Java based configuration. The article will focus on Discoverability of the REST API, HATEOAS and practical scenarios driven by tests. Introducing REST Discoverability Discoverability of an API is a topic that doesn’t get enough well ...

Read More »

From Spring to Java EE 6

spring-interview-questions-answers

I recently worked on a quite complex project mixing many Java EE 6 technologies (such as JPA, JAXB, JMS, JTA, JAX-RS, etc…). For productivity and planning reasons, the prototyped application was designed as a standalone pure Spring application. When the development of the real application started, we re-challenged our initial choice (i.e. Spring v3) and analyzed the interest of switching ...

Read More »

Spring Pitfalls: Proxying

Being a Spring framework user and enthusiast for many years I came across several misunderstandings and problems with this stack. Also there are places where abstractions leak terribly and to effectively and safely take advantage of all the features developers need to be aware of them. That is why I am starting a Spring pitfalls series. In the first part ...

Read More »

Bootstrap a Web Application with Spring 3

spring-interview-questions-answers

1. Overview This is the first of a series of tutorials about setting up a RESTfull web application using Spring 3.1 with Java based configuration. The article will focus on bootstrapping the web application, discussing how to make the jump from XML to Java without having to completely migrate the entire XML configuration. 2. The Maven pom.xml     <project ...

Read More »

Securing a RESTful Web Service with Spring Security 3.1, part 3

1. Overview This tutorial shows how to Secure a REST Service using Spring and Spring Security 3.1 with Java based configuration. The article will focus on how to set up the Security Configuration specifically for the REST API using a Login and Cookie approach. 2. Spring Security in the web.xml The architecture of Spring Security is based entirely on Servlet ...

Read More »

Building a RESTful Web Service with Spring 3.1 and Java based Configuration, part 2

spring-interview-questions-answers

1. Overview This article shows how to set up a REST in Spring – the Controller and HTTP response codes, configuration of payload marshalling and content negotiation. 2. Understanding REST in Spring The Spring framework supports 2 ways of creating RESTful services: using MVC with ModelAndView using HTTP message converters The ModelAndView approach is older and much better documented, but ...

Read More »

Spring Singleton, Request, Session Beans and Thread Safety

spring-interview-questions-answers

The Spring framework ecosystem comprising of so many useful frameworks has become the backbone of many Java EE application. But at the core of all the spring products we still have the Spring DI/IOC framework which has catapulted Spring to all new heights. As more people are adopting Spring MVC or a JSF-Spring integration for their application, the Spring beans ...

Read More »

Everybody Knows About MVC…

spring-interview-questions-answers

From a recent blog, you may have gathered that I’ve recently been conducting some interviews and as they were for web application developers a question I asked was “can you explain what the MVC pattern is?”, and to their credit, every candidate knew the answer. For those of you who don’t know, MVC stands for Model, View, Controller and is ...

Read More »

Spring & Quartz Integration with Custom Annotation, the SPANN way

In a previous post, we demonstrated how to create and configure Quartz jobs with annotations in a Spring container. We used a class-level annotation to add some metadata to a bean which implements Quartz’s Job; the annotation defines the job’s name, group, and its cron-expression. Later, a big portion of the code is dedicated to handling that annotation: find the ...

Read More »