> Hi Juan José,

Hi, and thank you for your comments.

>
> 1. If you think you will need some EIP features like those in Camel, or you
> will still have complex integrations that JBI can make easier (such as
> routing from a WS to a FTP, or things like that) and that can be done easily
> with the JBI components (that is, with few code !), then stick to JBI

This is my case, so +1 to JBI as you are saying.

>
> 2. If you need some of the features of OSGi, such as service lifecycle, then
> convert your old components

Probably, I might get out some functionality from my current SUs and
build some OSGi bundles with it.

>
> 3. Decide what bus is the most appropriate ! As I view it, SMX4 has 2 busses
> : the NMR, which is JBI-compliant, and OSGi. Each one has its advantages and
> drawbacks. For JBI, it is the *standardization* of the message format, and
> the fact that the message is really instanciated and transmitted. But it
> requires much plumbing. For OSGi, it is the speed of development when you
> are in pure-java, and the services lifecycle. But as it is not a true bus,
> you must stick to Java/JavaRMI (for dOSGi), and you have not "true" message
> exchanges between components, you just have RPC.
>
> I am personally mixing the 2: I use OSGi for the internal plumbing of my
> solution, and JBI for integration with other systems in the enterprise or
> with external systems, as it provides a nice loose coupling (the interface
> is in the message, not in the RPC façade).

I´m not sure if I understand the whole picture but I see three options
really. For instance, regarding Camel components, we might have three
different aproaches:

(1) Camel on OSGi, but neither NMR nor JBI [1]
(2) Camel on NMR but no JBI compliant [2]
(3) Camel on NMR and JBI compliant [3]

Really, I have doubts chosing between the second and third ones.

Regards,

Juanjo.

[1] 
http://svn.eu.apache.org/repos/asf/servicemix/smx4/features/trunk/examples/camel-osgi
[2] 
http://svn.eu.apache.org/repos/asf/servicemix/smx4/features/trunk/examples/camel-nmr
[3] 
http://svn.eu.apache.org/repos/asf/servicemix/smx4/features/trunk/examples/bridge-camel/bridge-camel-su

Reply via email to