Blog Archives

CDI annotations @Named and @Inject Dependency Injection in Spring 3.0 Tutorial

In Spring 3.0 the support for the CDI annotations @Named and @Inject are provided. 1) @Inject instead of Spring’s @Autowired to inject a bean. 2) @Named instead of Spring’s @Component to declare a bean. Step 1: Create a simple Maven project. Just press enter for all the prompts.

Step

Read more ›

Posted in Spring Basics Tutorial

♥ Spring lookup-method example to inject prototype scoped bean into a singleton scoped bean

Step 1: You need asm and cgilib libraries in addition to Spring libraries shown below. Step 2: define the Dao (Data Access Object) interface.

Step 3: Define the Dao implementation.

Step 4: Define the service interface.

Step 5: Define the service implementation. Note that the class is

Read more ›

Posted in Spring Basics Tutorial
Tags:

♥ Top 6 Spring wiring via JavaConfig [i.e. @Configuration ] examples

Spring Java Configuration (i.e. JavaConfig) provides a pure-Java means of configuring the Spring IoC container. This is gaining popularity as it gives complete control over instantiation and dependency injection. gives type safety & compile-time check supports refactorable configuration & supported by IDEs Here are some industrial strength wiring examples. #1,

Read more ›

Posted in Spring Basics Tutorial

Spring 3.0 tutorial – part 7 (with JPA, Hibernate & HSQLDB)

This is a very simple Spring tutorial with JPA, Hibernate and HSQLDB. This assumes that you have gone through the tutorials 1) Setting up Java, Maven, and Eclipse 2) The “Course” table is created as per the tutorials “SQL Tutorial with HSQLDB” and “JDBC Tutorial with HSQLDB” 3) Spring 3.0…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Training, 90-Day-Java-JEE-Career-Training, 180-Day-Java-JEE-Career-Training, 365-Day-Java-JEE-Career-Training, 60-Day-Java-JEE-Career-Training, 2-Year-Java-JEE-Career-Training and 10-Day-Java-Interview-Refresher

Evaluate the quality of the contents to see if they will add value to you?

Click Here and check the contents with Try OR look for post titles with ♥

Log In | Register
Posted in JPA Tutorial, member-paid, Spring Basics Tutorial, Spring ORM Tutorial

♥ Spring 3.0 tutorial – part 6 (with Hibernate & HSQLDB)

This is a very simple Spring tutorial with Hibernate and HSQLDB. This assumes that you have gone through the tutorials 1) Setting up Java, Maven, and Eclipse 2) The “Course” table is created as per the tutorials “SQL Tutorial with HSQLDB” and “JDBC Tutorial with HSQLDB” 3) Spring 3.0 tutorial

Read more ›

Posted in Spring Basics Tutorial, Spring ORM Tutorial

Spring 3.0 tutorial – part 5 (Setter DI with Spring AOP and AspectJ)

This is a very simple Spring AOP tutorial using AspectJ. This assumes that you have gone through the “Setting up Java, Maven and Eclipse” tutorial and the other Spring tutorials 1 to 3. This annotation profiles the time taken to execute the annotated methods. You need to have a project

Read more ›

Posted in Spring Basics Tutorial

Spring 3.0 tutorial – part 4 (Setter DI with annotations and Java Config instead of XML)

This is a very simple Spring setter DI (dependency injection tutorial) using annotations. This is using a Java based Spring configuration with @configuration annotation as opposed to an XML based file. This assumes that you have gone through the “Setting up Java, Maven and Eclipse” tutorial. To recap: 1) Java,…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Training, 90-Day-Java-JEE-Career-Training, 180-Day-Java-JEE-Career-Training, 365-Day-Java-JEE-Career-Training, 60-Day-Java-JEE-Career-Training, 2-Year-Java-JEE-Career-Training and 10-Day-Java-Interview-Refresher

Evaluate the quality of the contents to see if they will add value to you?

Click Here and check the contents with Try OR look for post titles with ♥

Log In | Register
Posted in member-paid, Spring Basics Tutorial

Spring 3.0 tutorial – part 3 (Setter DI with annotations)

This is a very simple Spring setter DI (dependency injection tutorial) using annotations. This assumes that you have gone through the “Setting up Java, Maven and Eclipse” tutorial. To recap: 1) Java, Maven, and eclipse are set up. 2) You have run the Maven archetype:generate command to create a skeleton

Read more ›

Posted in Spring Basics Tutorial
Page 1 of 212

800+ Java Interview Q&As ♥Free | ♦FAQ

open all | close all

200+ Java FAQs – Quick Prep

open all | close all

16 Java Key Areas to be a top-notch

open all | close all

80+ Java Tutorials – Step by step

open all | close all

100+ Java Coding Exercises

open all | close all

How good are your

open all | close all