Skip to main content

Posts

Showing posts from November, 2014

JBoss Fuse - Connecting to Twitter and the Aggregator pattern

If you think connecting to Facebook is easy with Camel, try connecting to Twitter! It's every easier!
Before connecting to Twitter, make sure you have register a twitter developer account, and go to https://apps.twitter.com/. Create a new Twitter App.

There are a few mandatory parameter for authentication if you want to play with Twitter, they are :
consumerKey- The consumer keyconsumerSecret - The consumer secret accessToken - The access tokenaccessTokenSecret - The access token secret
Also Twitter has Consumer  as it handle mostly polling functionality, such as search from content, streaming tweets from twitter etc.

timeline/home - read or polls tweet from user homesearch - search specific keywords,streaming/filter - get streaming of data from twitter.
Whereas Producer handles tweeting and calling of twitter API, they might also include searching and timeline polling too.

directmessage - gets the message search - search for keywordstimeline/user - polling from users For more deta…

JBoss Fuse - Connecting to Facebook

Got your camel working? now it's time to have some fun, how about update your Facebook status using Camel? From Camel 2.12 onwards, Facebook endpoint was added, which makes it a lot easier to implement.

So how does it works? Basically, Facebook provides a unofficial Java API called "facebook4j", so Camel uses this API to implement the integration with Facebook. 
Basically, Facebook requires OAuth for all client application authentication, please go to the Facebook developer site and register.  


And create a new application, because Facebook require you to set authority to different function for each application. For instance, with application A, you grant the publish and poll right with all your photos, and application B you grant the location information to it. So click on the "Apps" tab on top of the page. 

Choose website, 
Give a name to your application, and choose the type of your application,

Skip or go through the quick start.  After that, you will arri…

JBoss Fuse/A-MQ - Playing with Insight/Elastic Search Tech Preview of Fuse

This week in Berlin, I met awesome Red Hat SA Roel Hodzelmans , who showed me the "fun stuff" that you can play with in JBoss Fuse, although this is still a Tech Preview function, I think would be great for people to take play with this and give as much testing as possible.

Kibana is an open source browser based analytics and search dashboard for ElasticSearch.

Steps to do an Insight/Elastic Search demo of Fuse, make sure the environment has enough disk space.

1) In the root container add the Kibana profile - this is the management console for Elastic Search.


It will add a new tab next to Runtime, Wiki, Dashboard, Health and Insight. The preparation takes a couple of minutes, depends on your resource.


2) Add the insight core profile to all containers where you want to capture the logging from




3) Create a new profile or profile version to which you want to add insight in the camel parts to,



then add insight-camel feature to the features of the profile




4) Migrate a container …