2012-08-24

OSGi deployment made easy with FAB

If I had a dollar each time people had a challenge with OSGi deployments ... I could solve the finance crisis in Europe. Okay I am of course exaggerating; but there is a grain of truth in there ;)

So if you are a developer who wants to be productive, and be able to go home on time, and drink beer with your friends, play sports, and generally have fun and be happy ... then read on.

So to understand what FAB is and why it can make your life easier, then I refer you to the following material.

A FAB (Fuse Bundles) is basically a new way of deploying applications into an OSGi container that can make your life a whole lot easier. This technology has been developed by my engineering colleagues at FuseSource and is open sourced at Github, (ASL 2.0 licensed)

Fintan Bolton and his video team have created 2 new excellent introduction videos about FAB.
To go along the videos we have documentation at the Fuse Fabric website. I encourage you to read the material, as its in the minds of James Strachan, who is a driving force behind FAB.
FAB comes out of the box in the new Fuse ESB Enterprise product, however as FAB is open source and freely available, you can use it in general purpose containers such as Apache ServiceMix or Apache Karaf. 

At github there is a number of examples with full source code, that is also provided out of the box with the Fuse ESB Enterprise product. 


4 comments:

Preet Katari said...

Hi Claus, i have read your "camel in action" book, really like it. May be not the right place to comment/ask this, but not sure how to contact you. I posted a question on stackoverflow, if you get a chance, could you please answer it.

http://stackoverflow.com/questions/12381109/apache-camel-multiple-file-processing-with-exec

Thank you
Preet

jamie archibald said...

OSGi is such a great technology and it has saved our butt in the past. Especially in cases where we need to send quick patches to customers ASAP. We simply send them a simple OSGi bundle (e.g. jar) files.

The issue I had with OSGi was bridging the maven world with OSGi. It became a management nightmare. Now that FABs are available we will be making the switch likely soon.

Pramod said...

Hi Clause,

nice blog on the FAB. This is what i was looking for!. i had a lot of issues in OSGI bundle deployment. i am sure it will be solved now :)

i have one question though!
Can we have profiles using FAB inside fuse fabric? if so how do we achieve this?
the reason why i am asking is i want to control the port on which it runs on and the child containers in Fabric. can you please explain this?



Claus Ibsen said...

Yes you can use FAB in Fuse Profiles. If you use FMC as the web console UI, then it has a nice profile editor where you have a tab for FAB, and you can then add/remove/edit FAB bundles.

Though to define a FAB in a profile its just like any regular OSGi bundle, but you then prefix it with fab:

To control port numbers on child containers. Then this is being improved in JBoss Fuse 6.0/6.1. Though you can specify some profile and/or JVM sustem properties to control this.

As well when you create the fabric you can set some minimum and maximum port ranges etc.

You can check out the fabric web page at: http://fabric.fusesource.org/

And also the Red Hat JBoss Fuse documentation at:
https://access.redhat.com/knowledge/docs/JBoss_Fuse/

Or get in touch with the fabric project community at: http://fuse.fusesource.org/community.html