You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by cristisor <cr...@yahoo.com> on 2013/06/21 14:05:02 UTC
Adding common libraries to a shared location
Hello,
I use 3.5.0-fuse-00-00 I have multiple service assemblies, each one for a
service unit. The service units have in common many libraries, which lead to
a very "fat" installer, so I would like to mark them in the maven pom with
the scope 'provided' and get them from a common place.
I googled for some answers and the only things that I was able to found are
2 replies from *Freeman-2*, one on stackoverflow
<http://stackoverflow.com/questions/8727990/how-to-integrate-servicemix-shared-libraries-using-jbi-maven-plugin>
and the other one on grokbase
<http://grokbase.com/t/servicemix/users/09174dv8rq/service-unit-which-depends-on-jbi-component-and-shared-library>
.
The only problem is that those answers are not very clear for a ServiceMix
amateur, so I have the following questions to have a starting point:
- I see that each service unit has a generated jbi.xml file, how can I add
<library>your_shared_lib_name</library> to it?
- these libraries should be located in the "lib" folder of ServiceMix in
order to be found?
Many thanks.
--
View this message in context: http://servicemix.396122.n5.nabble.com/Adding-common-libraries-to-a-shared-location-tp5717062.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Fwd: Adding common libraries to a shared location
Posted by cristisor <cr...@yahoo.com>.
Thank you for the information. Right now I don't have the xbean.xml file,
there is only the camel-context.xml file, which initializes the camel
routes. I will add everything to the camel-context first, but if it doesn't
work I will add xbean.xml.
--
View this message in context: http://servicemix.396122.n5.nabble.com/Adding-common-libraries-to-a-shared-location-tp5717062p5717111.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Fwd: Adding common libraries to a shared location
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
My comment inline
-------------
Freeman(Yue) Fang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋
Begin forwarded message:
> From: cristisor <cr...@yahoo.com>
> Subject: Adding common libraries to a shared location
> Date: 2013年6月21日格林尼治标准时间+0800下午8时05分02秒
> To: users@servicemix.apache.org
> Reply-To: users@servicemix.apache.org
>
> Hello,
>
> I use 3.5.0-fuse-00-00 I have multiple service assemblies, each one for a
> service unit. The service units have in common many libraries, which lead to
> a very "fat" installer, so I would like to mark them in the maven pom with
> the scope 'provided' and get them from a common place.
>
> I googled for some answers and the only things that I was able to found are
> 2 replies from *Freeman-2*, one on stackoverflow
> <http://stackoverflow.com/questions/8727990/how-to-integrate-servicemix-shared-libraries-using-jbi-maven-plugin>
> and the other one on grokbase
> <http://grokbase.com/t/servicemix/users/09174dv8rq/service-unit-which-depends-on-jbi-component-and-shared-library>
> .
>
> The only problem is that those answers are not very clear for a ServiceMix
> amateur, so I have the following questions to have a starting point:
> - I see that each service unit has a generated jbi.xml file, how can I add
> <library>your_shared_lib_name</library> to it?
IIRC, put it in xbean.xml of your SU should be OK
> - these libraries should be located in the "lib" folder of ServiceMix in
Yes
> order to be found?
>
> Many thanks.
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Adding-common-libraries-to-a-shared-location-tp5717062.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.