Spring IOC Hello World Example.

Today we will share a simple Spring 3 inversion of control hello world example program. What is Inversion of Control (IOC) or Dependency Injection (DI)? Inversion of control or dependency injection is an object oriented programming technique, in which the object coupling is done at runtime instead of compile time. The responsibility of creating, injecting [...]
Continue reading…

 

How to create a data source/connection pool in JBoss?

Today we shall talk about creating data source in JBoss. You can create a data source in JBoss for any RDBMS in five simple steps. 1. Find your RDBM’s data source xml from JBOSS_HOME\docs\examples\jca, for example if you wanted to create a data source for DB2 then pick db2-ds.xml. 2. Edit the db2-ds.xml file and [...]
Continue reading…

 

JSR 303 – How to write a custom validator?

Bean validation specifications. JSR 349 is the specification for Bean Validation 1.1. JSR 303 is the specification for Bean Validation 1.0 Bean validation is an important task irrespective of the architecture (enterprise web application or thick client-server) of the application. JSR 303 specification standardize the bean validation process. JSR 303 is not intended for use [...]
Continue reading…