This is a great little tutorial that takes you from scratch to a full blown Camel and SEDA application, with some good discussion and explanation as you go along. http://vrtoonjava.wordpress.com/category/apache-camel-tutorial
EAP Webservice with Camel on Openshift – part 3
This post follows on from EAP Webservice with Camel on Openshift – part 1EAP 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 all... Continue Reading →
EAP Webservice with Camel on Openshift – part 2
This post follows on from EAP Webservice with Camel on Openshift – part 1Part3 – 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 relatively... Continue Reading →
EAP Webservice with Camel on Openshift – part 1
Part2 - Deploying to EAP can be found herePart3 – 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 new... Continue Reading →
Downloading Files using Camel and SFTP
In this example, we will download files from a Server using SFTP and store them in a local directory. Create a Maven Project Create a Maven Project groupId: com.skills421.examples.camelartifactId: CamelBasicsversion: 0.0.1-SNAPSHOT Update Pom.xml pom.xml Edit FTPCopier.java Edit ftpCopier.java to add the method sftpDownload as follows: FTPCopier.java Edit FTPCopierTest.java Edit FTPCopierTest.java to @Ignore the ftp test and add... Continue Reading →
Downloading Files using Camel and FTP
In this example, we will download files from a Server using FTP and store them in a local directory Create a Maven Project Create a Maven Project groupId: com.skills421.examples.camelartifactId: CamelBasicsversion: 0.0.1-SNAPSHOT Update Pom.xml pom.xml Edit FTPCopier.java Create the FTPCopier.java code as follows: FTPCopierTest.java Note that you will need to define your own FTP Server to use to... Continue Reading →
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... Continue Reading →
@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... Continue Reading →
@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... Continue Reading →
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... Continue Reading →