spring

Spring Beanfactory and ApplicationContext

Spring BeanFactory and ApplicationContext are interfaces responsible for configuring a Spring application. BeanFactory is the main interface for accessing the spring container and acts as a central registry of all components. BeanFactory along with its subinterfaces are also responsible for implementing dependency injection. An ApplicationContext extends the functionality of a BeanFactory and provides additional methods. […]

Spring Remoting: HTTP Invoker

Concept Overview In the earlier articles we saw an introduction to spring remoting and its support for RMI, Hessian and Burlap. In this tutorial we look at one more support for remoting – HttpInvoker. HttpInvoker combines the ease of Hessian and Burlap, in that it is very easy to set up. It serializes and deserializes […]

Spring Remoting: Burlap

Concept Overview In the earlier tutorials we saw an introduction to Spring remoting and its support for RMI and Hessian. In this tutorial we look at another remoting protocol supported by Spring – Burlap. Burlap is an XML based protocol for web services. It has been developed by Caucho. It is similar to Hessian, the […]

Spring Remoting: Hessian

Concept Overview The previous tutorial presents an overview of spring remoting and lists down various remoting protocols supported by Spring. In this tutorial we look at Spring support for Hessian. Hessian is a web service protocol that transfers binary data between a remote service and its client. Hessian has been released by Caucho Technology. It […]

Spring Remoting: Remote Method Invocation (RMI)

Concept Overview Spring provides four ways to develop remote services. Remote services are services hosted on remote servers and accessed by clients over the network. For example, lets say you are developing a desktop application that needs to connect to a central server. The desktop application can be on various machines. you can use spring […]

Spring Security: Securing Methods Using JSR-250 @RolesAllowed Annotation

Concept Overview In the previous tutorial we looked at an introduction to spring method level security and ways to implement it. we also looked at an example that used Spring’s @Secured annotation to implement method level security. In this example we look at JSR-250’s equivalent annotation. Sample Program Overview We demonstrate method level annotation using […]

Spring Security: Securing Methods Using @Secured Annotation

Concept Overview Spring provides a way to implement method level security. Only users authenticated with particular roles may be allowed to access a method. There are four ways to implement method level security. Annotate method using @Secured Annotate method using JSR-250 @RolesAllowed Use Spring’s Pre and Post invocation Annotations Match method using Pointcuts In this […]

Spring Security: Authentication and Authorization Using Custom Login Page

Concept Overview In the Earlier tutorial we got an introduction to Spring security using XML. Spring can be configured to provide login and logout capabilities to an application. Spring provides a default login page that can be made available by simply turning on a variable in the spring configuration file. However, in most cases we […]

Spring Security: Authentication and Authorization Using Database

Concept Overview In the previous tutorial we saw an introduction to Spring security and how to achieve spring security using XML configuration. Spring security provides an ability for declarative authentication and authorization. To achieve this it is possible to store the list of users and their roles in the database. The database information can then […]

Spring Security: Authentication and Authorization Using XML

Concept Overview Spring provides a configurable framework for implementing authentication and authorization for an application. The security framework provides ways to login and logout from an application. It also provides authentication at view level and method level. What’s more, it can also provide you with a login page! Here are some things that it provides […]

Scroll to top
Bitnami