Skip to main content

Posts

Showing posts from July, 2015

JBoss Fuse - Updates of Fuse 101 Labs

I have been updating my previous demos and lab so they can be all up to date and applies to the latest Fuse 6.2 version. And now I am starting to regret why I have created so many demos … But when every time I go back to previous work, there are always something that can be worked on or improve. It's actually a good thing. So don't be surprised if I end up re-writing the entire demo.

I spent a few days updating My Camel 101 Labs, so here are the links to my labs and things I've changed when migrating to Fuse 6.2, summarizing for those of you who has already done the lab, and wants to see what has been updated in a quick glance. (Note, the page counts in things I've changed, does not include the title page.)

Lab 1. Camel basic and components



Things I update: 
Page 2, updated to new Camel version : 2.15.1.redhat-620133
Page 6,7, new JBDS tooling, with a lot more built-in component, before I ask people to fill in the uri of each component, but now we can take advantage of u…

Red Hat JBoss Fuse - Getting Started Home Loan Demo version 6.2 Part 2

This is the 2nd part of my getting started demo for JBoss FUSE 6.2, an update from my old demo project.  For people that are getting started to know Fuse, and wants to get their hands dirty and develop a JBoss Fuse project.

There is a series of blogs/videos, we will focus on playing with the integration framework in JBoss Fuse, which base on the open source project Apache Camel. And in the last video of the series I will deploy the integration projects onto the OSGi container and manage it with Fuse Fabric. You can find the post about receiving data here : Part one

The story behind the home loan demo is to prepare housing appraisals base on the content given real estate vendor. The appraisal needs to talk to local database, external google map API and also provide information through a web Restful API. We have divided this project into 4 independent integration applications, deploy in a distrusted environment, each handle single functions, and using message broker as the asynchronous …

Red Hat JBoss Fuse - Getting Started Home Loan Demo version 6.2 Part 1

This is a update to my existing demo for people that are getting started to know Fuse, and wants to get their hands dirty and develop a JBoss Fuse project for the first time.

There will be a series of blogs with video coming after this one, it is focus on playing with the integration framework in JBoss Fuse, which base on the open source project Apache Camel. And in the last video of the series I will deploy the integration projects onto the OSGi container and manage it with Fuse Fabric.

The story behind the home loan demo is to prepare housing appraisals base on the content given real estate vendor. The appraisal needs to talk to local database, external google map API and also provide information through a web Restful API.

For those of you have been following my work may know, I have made some changes to the demo, the old demo has place all integration functions in a single project and deploy on single container. But when I started to maintain, because it's been a while from wh…

JBoss Fuse - Enterprise application architecture with JBoss Fuse and JBoss BPM suite

Modern enterprise application consists of cross-communication between departments, dealing with multiple type of technologies from different era. Having a complete well design application in today's enterprise requires more then just tying up all the nots, that is, connecting all the systems, application together. One simple missed decision can lead to disastrous results of having to adjust every single application for every small changes. So it is important to define different role and responsibility of what each individual module of the application should do, and making sure they are independent form each other, so we can limit the impact of changes needed, but also flexible enough to cope with enhancements.

With JBoss BPM suite and JBoss Fuse,they are great when it comes to helping developer who wants to build an enterprise application. JBoss BPM Suite allows developers to create and monitor business process and rules. And JBoss Fuse can help with the application integration. T…

JBoss Fuse/A-MQ - Achieve fault tolerant messaging with MQ Gateway

Sometime ago I posted a blog about achieve fault tolerant messaging, in the article I mention using the fabric registry discovery to hide all the IP address and port detail in the client side. With new Fuse 6.2 you will not be able to find this anymore.  So how do we achieve fault tolerant messaging in the new Fuse?

In JBoss Fuse 6.2, we can do it by starting up a MQ Gateway. What it does is it provides a single IP and port to accept connections from clients.  All the individual IPs and Port of the broker are hidden away tothe client, the client only needs to know the IP and port of the MQ Gateway (Default Port: 61616). The gateway will discover all the brokers in the fabric, and no matter what the incoming protocol is, it can be OpenWire, MQTT, STOMP and AMQP. The gateway will see which broker is available in the host specified for the protocol, and connect the client to the broker. If multiple brokers are available in the host group, gateway can dispatch request to them, by this we …

JBoss Fuse - Tips, Deploying Profile without Fabric8 maven plugin

If you want to take advantage of the Fuse Fabric deploy plugin, with new JBoss Fuse 6.2 requires you need to have Apache Maven 3.1.1 - 3.2.4. Otherwise, you may bump into error. The reason is because there has been a major API change in maven after 3.2.4. 
Here is the exception you might see if you don't have the correct maven version. 

No implementation for org.eclipse.aether.connector.wagon.WagonProvider was bound. while locating org.eclipse.aether.connector.wagon.WagonRepositoryConnectorFactory
1 error at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1018) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1044) at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48) at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86) at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:54) at com.google.inject.internal.Provi…

JBoss Fuse - Tips, Display Camel counter in Fuse 6.2

This is a frequently asked questions, in previous version of JBoss Fuse, when you have Camel route deployed in the Fabric container, in the container you will see a complete diagram of your camel route and on top of it you will also find the number of messages flow through it. But when JBoss Fuse 6.2 comes out, you will find the counter in the route are missing.


Here is what you have to do to turn the counter back on again, under etc/auth/jmx.acl.whitelist.cfg add the following

#Camel Counter
org.apache.camel;getIndex=bypass
org.apache.camel;getRouteId=bypass
org.apache.camel;getState=bypass
org.apache.camel;dumpStatsAsXml=bypass
org.apache.camel;getExchangesInflight=bypass
org.apache.camel;getProcessorId=bypass

This will work if you do not turn your fabric on, but once the fabric is create, you will need to update the jmx.acl.whitelist.cfg under your default profile.




Here is the result,



This problem will go away by Fuse 6.2.1.