EAP Webservice with Camel on Openshift – part 3

This post follows on from EAP Webservice with Camel on Openshift – part 1 EAP Webservice with Camel on Openshift – part 2 Part 3 – Moving our EAP to Openshift Overview For the last few days I have been getting to grips with JBoss Openshift, which is JBoss’ answer to PAAS – Platform as a Service. Like…

EAP Webservice with Camel on Openshift – part 2

This post follows on from EAP Webservice with Camel on Openshift – part 1 Part3 – Moving our EAP to Openshift can be found here Part 2 – Deploying to JBoss EAP Overview For the last few days I have been getting to grips with JBoss Openshift, which is JBoss’ answer to PAAS – Platform as a Service. Like all…

EAP Webservice with Camel on Openshift – part 1

Part2 – Deploying to EAP can be found here Part3 – Moving our EAP to Openshift can be found here Part 1 – Establishing a Simple Camel Route Overview For the last few days I have been getting to grips with JBoss Openshift, which is JBoss’ answer to PAAS – Platform as a Service. Like all relatively…

Spring context:annotation-config

In our previous examples we have to define a bean for each BeanPostProcessor we wanted to use. Spring provides a shortcut to do this in the context namespace. We simply need to add the context namespace to our declared namespaces at the top of our config xml file and add the context:annotation-config to our bean…

@Autowired and @Qualifier Annotations for Spring

We use @Autowired to automatically wire our bean dependencies. Example In the following example, we have autowired the home address for our student from the previous example. Spring will look for a single bean with a type that matches the type for home. If it finds this bean then it will automatically inject that bean…

@Required Spring Annotation

@Required We use the @Required annotation to tell Spring that a property on a bean is required. Student.java Here we have applied the @Required annotation to the method setStudentId. student1.xml This will do nothing if we do not add the RequiredAnnotationBeanPostProcessor bean to our Spring config xml file. TestStudent1.java Now we can bring it all…

Spring 3 – Injecting Values with XML Config

Overview This post demonstrates setting Spring Bean property values using an xml config file. The example demonstrates the following principles: setter injection constructor injection (by index) multiple argument injection (by name) bean injection by reference list injection (by value and by reference) aliases Example The following example is presented as a Maven Project.  The Spring…