Skip to main content

Posts

Showing posts from November, 2015

Red Hat JBoss Fuse - Integrating Database, Java Bean and Restful Services in EAP, Spring DSL

We have talked about how to start develop application in EAP with Spring DSL, out of all the three ways of developing Camel in EAP, this is probably easiest to do to. And in this post we are going to take that example a bit more further, show you how to integrate with Databases, Java beans in the application, creating a servlet and lastly setup a Restful webservice. If you would like to know how to do it in Java DSL with CDI, please go to this blogpost.

For this currency exchange project, I have store the exchange rate in the h2 database. What we are going to do is to display the entire exchange rate on the webpage provided by a restful web service and provide a servlet that takes in the amount of money and the currency to exchange to, send them back to server, calculated and return the result. So here are the things I am going to do


DatabaseJava BeanServletRestful Web Services
Database
Of course we want to use the datasources in EAP. So first thing first, create the datasource in EAP. …

Red Hat JBoss Fuse - Integrating Database, Java Bean and Restful Services in EAP, XML route with JNDI

We have talked about how to start develop application in EAP without the need of Spring or CDI libraries. And in this post we are going to take that example a bit more further, show you how to integrate with Databases, Java beans in the application, creating a servlet and lastly setup a Restful webservice. We have a choice of using simple or JNDI registry, and I choose the JNDI, you will see why in a minute. If you would like to know how to do it in Java DSL with CDI or Spring XML, please go to this blogpost.

For this currency exchange project, I have store the exchange rate in the h2 database. What we are going to do is to display the entire exchange rate on the webpage provided by a restful web service and provide a servlet that takes in the amount of money and the currency to exchange to, send them back to server, calculated and return the result. So here are the things I am going to do
DatabaseJava BeanServletRestful Web Services
Database
Of course we want to use the datasources in …

Red Hat JBoss Fuse - 3 ways to develop you Fuse application in JBoss EAP, Spring DSL

Last post we talked about how to get your EAP Fuse ready, now it's time to start developing, there are several ways to do this
Spring FrameworkCDI with Java DSLXML without Spring In this series post I am going to show the above ways of creating a web application running in JBoss EAP. To make things clear and easy, I will be using the exact same Camel route for all there different methods.What this Camel route does, is it starts up a timer that will log every 5 second, simple, easy, not much going on.
Before we start develop our simple camel route, we need to a base WAR project to work on, so first we need to create a WAR file, I am sure you must have a million way to create that, every one sort of have their own best practice for this. For me, in the example, I will create one with maven, using the webapp-javaee6 artifact. 
A. Create Project, select Maven Project, 
B. Click Next when you are at New Maven Project, and it will take you to the next step, select the webapp-javaee6 arti…

Red Hat JBoss Fuse - 3 ways to develop you Fuse application in JBoss EAP, Java DSL

In this series post I am going to show the different ways of developing a Camel web application running in JBoss EAP.
Spring FrameworkCDI with Java DSLXML without Spring To make things clear and easy, I will be using the exact same Camel route for all there different methods.What this Camel route does, is it starts up a timer that will log every 5 second, simple, easy, not much going on.
Before we start develop our simple camel route, we need to a base WAR project to work on, so first we need to create a WAR file, I am sure you must have a million way to create that, every one sort of have their own best practice for this. For me, in the example, I will create one with maven, using the webapp-javaee6 artifact. 
A. Create Project, select Maven Project, 
B. Click Next when you are at New Maven Project, and it will take you to the next step, select the webapp-javaee6 artifact.

C. Add your project name, and then click Next, you will have a ready to go WAR project in your JBoss Developer S…