Hi,

Wrap deployer is introduced from karaf 2.2, but Apache Servicemix 4.3 is using karaf 2.1.3, so you can't use this feature in Apache Servicemix 4.3.

However, you can still write a customer feature where you can use wrap handler, something like
<bundle>wrap:mvn:your_bundle_which_is_not_osgi_friendly</bundle>

Just one note, though you can use wrap way(wrap deployer or wrap handler), it's not recommend to use it in production, as wrap way just add some default OSGi metadata header, but this may not work in some cases, wrap way is suitable to do a fast prototype. We suggest you should OSGi-fied the bundle with maven-bundle-plugin and maven-shade- plugin, just like we do here[1], this way you can totally control the OSGi metadata header and ensure everything is ok for you.

[1]https://svn.apache.org/repos/asf/servicemix/smx4/bundles/trunk/

Freeman
On 2011-8-22, at 下午12:10, raakula wrote:

Thanks again Freeman. When I was reading Karaf user guide, I found that wrap bundle has a feature of deploying plain non OSGI jars also. This way all the
dependent jars, if placed in deploy folder, will be deployed and
dependencies would be resolved.
However, Wrap Non OSGi Jar, is not bundled as part of Apache Servicemix
4.3, and found in Fuse SMX 4.4
Is it possible to get this Wrap Non OSGi Jar installed in Apache Servicemix?
For that what need to be done?

regards,
Ramu

--
View this message in context: 
http://servicemix.396122.n5.nabble.com/Migration-from-SMX3-3-2-to-SMX-4-3-tp4653956p4722105.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com









Reply via email to