Hi,

I am a bit confused now. I was thinking (based e.g. on following threads:
http://servicemix.396122.n5.nabble.com/DISCUSS-ServiceMix-future-td3212177i40.html
http://camel.465427.n5.nabble.com/Best-practices-to-communicate-between-Camel-Contexts-in-different-OSGi-bundles-td4832706.html - this one is only few months old) that current 'best pratice' is not to use JBI anymore, but have OSGi bundles with camel contexts, communicating through NMR.

But if NMR is no longer in 'default' distribution, what is the 'recommended' way to handle common situation:
- one bundle with adapter to system A invoking webservice,
- two bundles with client webservice interfaces for systems B, C which need to invoke A. Now we would handle it by having camel contexts in each bundle, communicating via NMR, but if NMR is to be deprecated, I'm not quite sure how should I do it?

I'm starting to think that one has to be SMX committer to use it correctly :P - we have SMX deployments for a few clients starting with 3.3, and ending with 4.3, and with each one we have to use SMX in a bit different way to solve common scenarios - which starts to be maintenance problem...

br,
maciek


On 02/23/2012 06:44 PM, Gert Vanthienen wrote:
L.S.,

If you download the default assembly for ServiceMix 4.4.0 or above, you
will already have this configured that way - those default assemblies no
longer preload the JBI and NMR bundles any more.
E.g. have a look at the default download on
http://servicemix.apache.org/downloads/servicemix-4.4.1.html

Regards,

Gert Vanthienen
------------------------
FuseSource
Web: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/


On Thu, Feb 23, 2012 at 6:22 PM, Brian Topping<[email protected]>  wrote:

OSGi is considered best practice for new development.  When I set up
ServiceMix 4, I remove preload references to JBI and NMR components from
<SMX-HOME>/etc/org.apache.karaf.features.cfg so it looks like this:

featuresBoot=karaf-framework,config,xml-specs,activemq-broker,activemq-spring,camel,camel-activemq,camel-cxf,camel-blueprint,war

OSGi has excellent documentation and is not hard to learn, but you will
save a lot of time by understanding it first.

On Feb 23, 2012, at 11:40 AM, baleado wrote:

Hi,

I have read a lot of content about this matter but still  I'm a little
bit
confused about how the ServiceMix works.

My main question is to understand when to use OSGi Bundles and when to
use
JBI Components.

For example there is any difference deploying a Camel Route as a OSGi
Bundle
or as JBI Components? if I deploy a Camel route as a OSGi Bundle the
communication beetween components is made using NMR?




--
View this message in context:
http://servicemix.396122.n5.nabble.com/Doubt-about-ServiceMix-architecture-tp5508586p5508586.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Reply via email to