Profile cover photo
Profile photo
Shan Arshad
About
Shan's posts

Post has attachment
Adding request Interceptor in Spring
In web applications/projects, we came across different scenarios where we need to check the request first before serving it or passing it to our main system or code. For example in a MVC project we need to check every request that if it contains particular ...

Post has attachment
Integrating RabbitMQ with Spring
RabbitMQ is a popular message broker application which is widely used to transfer messages among different systems. Its all being done with the help of specifically designed protocol called AMQP. Most of the people confuse it with JMS but as for now its und...

Post has attachment
Spring Security - Database based Authentication and Authorization
Below is an example of Spring Security using Database. In my case i have used mySql as primary database for authentication and authorization. A Filter proxy must be defined in web.xml file. This will implement/delegate filters and started intercepting the U...

Post has attachment
Spring Security - XML based Authentication and Authorization
Spring is offering extensive tools for implementing security. Users can use a no of techniques depending upon their problems. Below is a simple spring application in which xml based authentication and authorization is being implemented. A Filter proxy must ...

Post has attachment
Implementing Internationalization in Spring
Spring provides us a flexible way to hook up internationalization in our framework/application at any time. It can be hook up in spring while loading the context. Spring provides us two kinds of locale resolvers. Session based and Cookies based. Session Bas...

Post has attachment
Overriding messages of annotation based validation
I was doing a project and it was almost completed. Now i was asked to implement Internationalization in it and i successfully implemented that. After that i came across a challenge where i have to remove the messages from validation beans in which annotatio...

Post has attachment
Adding C3PO Connection Pooling in Spring JDBC.
Connection pooling is an operation in which system pre-initializes the connection for use as creating connections at the time of use is an expensive operation. In this post we will learn how we can punch C3P0 connection pooling in Spring JDBC(somebody is no...

Post has attachment
Integrating RabbitMQ with Spring
RabbitMQ is a popular message broker application which is widely used to transfer messages among different systems. Its all being done with the help of specifically designed protocol called AMQP. Most of the people confuse it with JMS but as for now its und...

Post has attachment
Hooking Up HTTPSessionListener with Tomcat
<p>We have got a use case in project where we need to identify the time when Tomcat expires any user's session. Basically we need to flush some persisted values of that user from DB.</p> <p>For that i have hooked up sessionListener at application load(web.x...

Post has attachment
C3P0 Connection Pooling
Wait while more posts are being loaded