Containerized API Manager

wso2-api-manager-logo+docker-logo

So while continuing my quest to make all demos dockerized; I containerized WSO2 API Manager this week. This is two folded, one is with simple API Manager deployment with integrated analytics (WSO2 DAS). The other is fully distributed API Manager with analytics.

This is making things easier and demos are becoming more and more re-usable. You can find instructions to execute in github repo.

Docker ! Docker ! Docker ! 😀

Advertisement

Debuging & troubleshooting WSO2 ESB

ddI am asked this question almost always I do a ESB demonstration, hence thought of documenting the answer for a wider audience.

WSO2 ESB is a mediation & an orchestration engine for enterprise integrations, you can read more about the product at WSO2 docs.

Building a mediation or a orchestration with multiple external services sometimes can become a tedious task. You will have to transform, clone and create messages to send to multiple external endpoints. You will have to handle the responses and sometime handle the communications reliably with patterns like store and forward etc. In such scenarios being able to debug the message flow, understand the messages going out and coming in from the and to the ESB runtime will come very handy.

There are couple of out of the box capabilities exposed from the ESB to help the developer. Namely the LogMediator which is the simplest, you can also use the TCPMonitor to understand the messages in wire and if the communication is over SSL you can use ESB wire log dump capability.

With the log mediator you can inspect the message at each mediation stage, which is much like we used to debug php scripts back in the day with alot of <?php echo “{statement}”; ?> statmenets

Continue reading Debuging & troubleshooting WSO2 ESB

Blog Syndication, Open link-baiting and SLBlogs.org

Well Its been some time that I have written a post under the category of general, or rather non-technical. After reading my friend kasun’s blog, I happened discover an interesting post of a fellow Sri Lankan blogger, which made me write this. Few days back I wrote the news about SLBlogs, and yeah this post is also about SLBlogs, or rather about a criticism that SLBlogs received recently.
Before I start saying anything, i must say that this post brings no offense on the fellow blogger who made the criticism.
Sir William Arthur once said “Flatter me, and I may not believe you. Criticize me, and I may not like you. Ignore me, and I may not forgive you. Encourage me, and I may not forget you.”
So yeah Criticisms are good, they may not make the critique your favorite, but you will remember an encouraging criticism.
I am not naive to say that SLBlogs is a perfect Blog syndicator, or that it is THE Sri Lankan Blog-o-spere. SlBlogs is 1 month old child. Which can and will improve with age… yet again, I find some unrealistic or let me put it this way, “I cannot 100% agree with mind blogger with his 5 points on SLBlog not being THE Sri Lankan Blog-o-spere”. So I will just point out how I see these five points. Then again it’s how i see 🙂

1. Blog syndication networks work no more without specific niches.

I do agree with Mindblogger up to a certain extent. Its true SLBlogs still has 16 Blogs syndicated, it lacks content. I do read Kottu to find some news and ideas. But well SLBlogs is one month old. still the bloggers of Sri Lanka doesn’t know about it, and surely if The MindBlogger have syndicated his own blog to SLblogs.org and wrote this criticism I will not see the hypocrisy behind this 1st point.
As we all know a Blog syndication site work its way, from the help of its contributors, and when that Syndicator says it’s for Sri Lankan bloggers. The Sri Lankan blogging community has to help it. The owner of the Site will do his part. Yet as the Bloggers in Sri Lanka, we also should do our part. So how I see about Mind Bloggers 1st point is That SLBlogs is not 100% responsible in its Contributor count.

2. Doesn’t know open link-baiting could ban a blog.

This is one interesting point!! The MindBlogger have directly Mentioned that SLBlogs.org doesn’t know anything about open link-baiting. Actually till I read the Mind bloggers comment under this point, I didn’t have a clear idea about this topic, not that am saying The MindBlogger have a clear definition of what is Open Link baiting is…. I knew that John Chow and the BMW -German website has been banned and ranked 0 from Google due to some illegal ways of search engine optimization.
Yet even in Google’s terms, Google doesn’t explain how it will be illegal to build links, or make your page ranks grow…. So yeah!! After some reading and surfing over the net what I finally found is that link building or baiting is not at all illegal. Am not saying that Google is wrong in banning John Chow or BMW. What am saying is there are healthier ways of link building. If you are really interested in reading about this topic. I found a nice article in the Smashing Magazine.
So if I come back to what I was telling… What SLBlogs have mentioned in its Competition page (Which the sentence is no longer there) is as I can remember “OF CAUSE you can also add a link to SLBlogs” There is no direct sentence saying that you will get a Domain if you link back to SLBlogs. What it clearly said is..if you really want you can put a link to SLBlogs. This is not at all similar with the John Chow situation.
John Chow directly asked from his readers to make a link to his blog when those readers use certain key words (“make money online”) when they write posts in their blogs. For the people who do this John Chow gave a link back. Yes this is an extreme of link building. Its like you reserve a keyword over the internet for your own blog.
So What I see in Mind Bloggers second point is that he doesn’t know what is link building is. (Well I didn’t know it before too 🙂 ) If SLBlogs attempt of building links is illegal it will be closer to illegalness if someone uses an Internet Marketing Link Exchange Directory. But what am saying is using that kind of a directory is also not illegal or its rather in the Gray Zone. (There are no direct definitions of the limits in this matter). So as I see SLBlogs should not remove the line which said about this. (Well Its all SLBlogs decision.)

3. “7 things Why a slBlogger needs a RSS reader!” – now, that’s a bit cliche.

“Cliché” if I am correct with this very word and about the SLBlogs article. I should actually ask why is it so… even the MindBlogger say do not ask. My view for this point is, This is another Blog Post. Yeah it is done by the owner of SLBlogs. I am not saying the topic of this article is very suitable or colorful. Yet the content of this article is not “Cliche”, at least not to me. Yes this post contains some nice phrases about me… and one might say am writing this to defend myself. Then again this is my Blog, and this is My thought. This reminds me of only one thing, several days ago, i downloaded some of the linux.conf.au 2008 talks. In the talk, “Fixing Web”, look at the first minute of his talk and you’ll see why..

So what am saying is Something being Cliché is so personal. Some great programmer can say my whole Blog is Cliché. I write what was new to me.. What I found..There can be people who know all what I write daily… But yet.. There can also be people who don’t.. So a blog Post will never be Cliché.

So in this case there can be plenty of readers who don’t know about a RSS reader. Being honest I started using Google reader after I started Blogging. Thanks to Sandaruwan. So yeah why do you need a RSS reader….? SLBlogs says WHY….

4. Open display of subscriber count?

Yes on this point I do agree with Mind Blogger. But yeah as usual its only because the display of the feedburner. I do agree that SLBlogs should remove this, from its Display.

But I would like to put out the main reason as I think why it is only 3. SLBlogs is not in my Google reader too. In fact I do have a question why is it 3. It should be 0. Why I say this is. SLBlogs is a Blog syndicator. Why do you want a blog syndicator in your RSS reader? I don’t want to read all the posts which are pasted on SLBlogs. I have only few and some important blogs in my RSS reader.

What am saying is the Subscriber count in a syndication Site Does not show its regular readers. So it will never be 50 to show. With a syndicator what you do is, you visit the site time to time, do a quick sniffing around the posts, then if you feel like it’s good, click on the link, go to the individual blog and read it.. Then subscribe to the blog if you want..

So anyhow. I also believe SLBlogs should remove the feedburner display. Because it says nothing about SLBlogs.

5. Take a look around.

As i see The Mind Blogger in his 5th point have said that the Sri Lankan Blogging community will be offended by SLBlogs motto.

slblogs.org “the” Sri Lankan blog syndication network

well this is partially true. Yet there is always another point of view. Someone can be so narrow minded and think that this phrase is an offence to all the great bloggers in Sri Lanka. Yet all Companies, societies, products..or ideas do have their own mottos. SLBlogs as it seems has a clear goal of being THE Sri Lankan blog syndication network. SO they are using this phrase as their own motto. Which is not closed to any great Sri Lankan blogger.. It openly invites all the Sri Lankan Bloggers to Join Its community.
A simple example is… while I was walking outside today… An Italian restaurant said

Have the Experience of Nectar in Heaven.”

I know it’s funny. But well there are very few English billboards in Germany. Anyway my whole point is. Each of these people including SLBlogs need to gain attention from the community. So they use their own mottoes. So if some blogger will get offended by this kind of a motto. What kind of a blogging community do we have?
So I guess I have written the lengthiest post in my blogging life… yet again. This is just my opinion. And SLBlogs have to be happy because criticisms always make you popular. And as Mind Blogger said his 200+ loyal subscribers will surely make some traffic on SLBlogs.

Finally I should say. SLBlogs is doing a good job. There are things to be learnt. Things to be changed, and things to be improved and criticized, I hope the admin of SLBlogs will do these changes in order to make it a more mature network.

And before wrapping up I must again mention this does not make any offense to anyone. This is my point of view. Open for debate… !!

Long time no see !!

Well yeah I am back… I know things have gone gray.. my technorati ranking has gone down.. my readers are disappointed.. Okey.. So here I plead for forgiveness….

Well for past 3 months I was so sunk in work.. the new project which i am working on right now.. made the days fly so soon… any how.. the things i learnt cannot be written in one blog post..and yeah its not yet finish… I thought of writing a post today.. for few reasons..

I didn’t want anyone to think that I gave-up writing… One of the friendly bloggers threaten me to start writing again.. and yeah I wanted to deliver the news about “SLBOLGS“.

well what can i say about SLBlogs… In few words if i describe…Its a journal with many authors… I know the concept is not so new, but well i see this as a nice place where most of the Sri Lankan Bloggers meet..or rather share there ideas to the whole world.. So yeah its Open for you too.. subscribe with SLBlogs… I hope it will be fun..

Any how, No promises i can make when i will write my next post yet… A lot to scribble… So until then..

Cheers !!

Firefly theme song – Ballad of Serenity

After the break of the hectic exam fever, and with some days of good sleep I was digging the imdb and isohunt for some good movies. I suddenly realized that i wanted to find a song which happened to hear while watching the TV series firefly. I wanted to find this song and listen more clearly so I was googling for sometime and yeah i found it. The song is more or less a chorus, a chorus with a passion. So i was thinking why isn’t there a complete song for this. so I started Digging for a complete version of the ballad of serenity.

If i say few words about firefly and serenity. the 1st is the TV series and the 2nd is the Movie on that. This storyline is something not ordinary. It shows the future with all the ancient technology, and that where it catches the viewer. A huge spaceship with an ancient like engine, Gunfights among cowboys like people. its all so nicely done where you find a future with amusement.

Anyhow yeas I found it. I found the complete song. the song is written by Michelle Dockery, (2004) but the owner of the chorus is Joss Whedon (2002). Meaning that Michelle Dockery had composed a song for the ballad of serenity. the song is originally named as Mel’s Song.

with the post am sharing both the ballad and the complete song because i myself feel that the ballad has some hidden passion and the song is bit deferent on the feeling you get. how ever both are great piece of art.

Download ballad of serenity

Download Mal’s Song

The Last Samurai & the theme behind !!

Since I was writing all the technical and related posts all the way, Thought of writing something different. A great movie i happened to watch. Well the movie is pretty old and yeah this was my second time of watching it. It is The Last Samurai, I was pretty mad because The TV station did not put the subtitles for the Japanese dialogs , yet I figured out its great meaning. Last samurai is a movie which shows the ancient Japanese culture. But for me the movie was something different. It showed the great discipline people had those days and how discipline change people.

The movie Brings out topics such as discipline, respect and the way to earn great honer. It shows that a man’s death will be honed by the way he lived his life. In an indirect way the movie shows that people need some spiritual bond to mold their lives to a better and a meaning full one.

Its a tragic movie filled with a great meaning. So if you have still not watched it. Then i think you better, because I believe that Last samurai gives a new meaning to life.

Busy as Never Before

It has been passed sometime, that i wrote my last post. I was very much busy running here and there working on some new things, studying for exams and writing documents on IT laws. The end of April and the month May as i never thought before am very much stuck with work. For some reason fortunately or unfortunately we have been selected for second round in Microsoft Imagine cup not under one category but under two . this made my and my team’s work double. For me i had some work in the company too. Then with that I am still completing some of my assignments in the university. If its some programming or involved with coding it could have being interesting but unfortunately its all about writing documents. about group work. BCS code of ethics and conduct IT laws and all sort of boring stuff.

Last week we finished and released the P2Pminds beta version and hosted under sandaruwan’s domain for testing. this is a web based knowledge sharing system we did for our Software Engineering group project. developed in PHP as usual and used some ajax validation.

Other than P2P am working on our Imagine cup projects mainly with the AcSO. Having some hands on experience with ASP.net. and yeah Visual studio .NET is awesome I have to mention. It does lot of automation you just drag and drop.. most of the things are done for you. We are thinking of Adding Some Microsoft Silverlight effects to the site to give some new look and to show off with the newest technology of web animation and data binding. So I will post the link to AcSO as soon as we hosted it in imagine cup server. Probably 18th of this month.

And yeah the GeoLink It is still in primary stages where we are checking out the mobile emulators coming with visual studio. Seems a lot of fun ahead.

Other than these Last two days I was studding from morning till the exam time for the BCS examinations. well I guess doing few past papers is all what you need to get through BCS.

so thats it for now I am hoping to write a post with some more value sooner.. maybe about .Net compact framework or some things about ASP.net web parts.

Sinhala-Hindu New Year Greatings !!!

Sinhala-Hindu new year is one of the fascinating events around the globe, a ceremony which is celebrated in grand scale mainly in Sri Lanka. Unlike the western new year celebration this new year is very much bound with the eastern astrology, solely based on the route of the SUN.

when the sun moves from the Meena Rashiya (House of Pisces) to the Mesha Rashiya (House of Aries), Sinhala and Hindu people begin celebrating their New Year or Aluth Avurudhu (in Sinhala). There is no exact time every year as the western new year (December 31st), The Time and maybe the date sometimes is determined by the astrological signs.

The Sinhala – Hindu new year is tightly bound with the Sri Lankan culture where in most faming villages it is celebrated with their Harvest. People are happy, everything is new during this period. There is a belief that old enmity between families or individuals has to be ended with the new year. So that All the sri Lankans celebrate this day with harmony, and wishes every one a prosperous new year.

Suba Aluth Awrudak Wewa !!!

read more about Sinhala Aluth Awrudda at http://en.wikipedia.org/wiki/Sinhalese_New_Year

Kathara-Eliya Trip

Hello world !!! I will say to the blogging world coz this is my first post as you all see !!! sooooop *_* (Trying to relax my self) Its about my trip around the down south and in to the hills and back to the west where I live !!! Kathara-Eliya is named coz of the two destinations KatharGama and NuwaraEliya !!! Well This one life time memory I had !!! any one who is reading this!!! well take my word !!! go on this route with the best frns You have !! you will surely enjoy !!! I dont wont to write about my experience I had coz WELL its something you have to experience yourself !!! but I will put out some unbelievable aftermath.

Have You ever felt so damn lonely !! or sickening about the whole world or felt as if You have lived enough !!! well thats the kind of feeling you get after a trip like that which is SO…. a bundle of FUN !!! So my advise is don’t think about or be with that feeling !! coz thats too annoying and wired and is very harmful to others around you !!! so go to bed early and sleep till sun crack on ur face !!! that will Do !! Wake up clean ur INBOX coz ur gone for a long time and get back to work !!!