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 →

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 →

@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 →

Up ↑

%d bloggers like this: