AOP in Java with AspectJ & Annotation – Part 2

Sep 03

This is the second part of a the AOP tutorial in Java. This tutorial mainly aims to introduce Aspect Oriented Programming (AOP). I’m trying to cover AOP concepts and how to apply it in Java using AspectJ & AspectJ Development Tools (AJDT). Through this part I will cover: What is AspectJ Development Tools (AJDT)? Installing AJDT An example using AJDT More...

Read More

AOP in Java with AspectJ & Annotation – Part 1

Jul 28

This is the first part of a tutorial aims to introduce Aspect Oriented Programming (AOP). It will cover AOP concepts how to apply it in Java using AspectJ. Through this part I will cover: AOP: What, Why and when? AOP terminologies AspectJ The main idea here is to cover AOP & AspectJ as FAST as possible, so let’s start. AOP: What, Why and when? AOP as...

Read More

How to make Spring initialize a static variable

Jul 08

Two days ago, I faced a tricky situation while coding. Mainly I was using Spring to read database parameters into a variable so I’d never need to open the code to change database parameters. This is simply done by adding this to your applicationContext.xml file: XHTML <util:properties id="databaseConfig"...

Read More

Introduction To JDBC

Feb 07

This tutorial aims to give you a quick intro to Java Database Connectivity (JDBC) API. JDBC technology was designed to keep simple things simple. This means that the JDBC API makes everyday database tasks, such as simple SELECT statements, very easy. After this you should be able to use the API to do basic and some advanced Database related tasks. I will use MySQL...

Read More

Introduction To JAXB

Jan 25

This is the perfect place to start learning about JAXB even if you don’t have any knowledge about this topic. First of all JAXB stands for Java Architecture for XML Binding which is an easy way to convert your Java objects to XML and vice versa. JAXB is a part of Java SE 6 API so you don’t need anything except eclipse and this page. Before starting you...

Read More