See the following: http://servicemix.apache.org/classloaders.html

I had a conflict with the WSS4J lib in servicemix/lib and was able to
configure my camel su to use the version of the jar packaged with my su. I
added the following to my camel-context.xml:

   <classpath>      <hidden>org.apache.ws.security</hidden>   </classpath>
Adding specific entries like this for packages you want to hide may work or
you could always add the inverse attribute to the above.


On 9/28/09 8:25 AM, "dulanov" <[email protected]> wrote:

> 
> 
> Yes, I have, but it's just generate a jbi.xml file in META-INF folder:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <jbi xmlns="http://java.sun.com/xml/ns/jbi"; version="1.0">
>   <services binding-component="false"/>
> </jbi>
> 
> And as I can undestand it's work only for Components
> (http://www.google.com/codesearch/p?hl=en&sa=N&cd=4&ct=rc#8VBS2Bil-24/trunk/co
> re/servicemix-core/src/main/java/org/apache/servicemix/jbi/deployment/Componen
> t.java&q=classLoaderDelegation&exact_package=http://svn.apache.org/repos/asf/s
> ervicemix/smx3/)
> and Shared Libraries
> (http://www.google.com/codesearch/p?hl=en&sa=N&cd=4&ct=rc#8VBS2Bil-24/trunk/co
> re/servicemix-core/src/main/java/org/apache/servicemix/jbi/deployment/SharedLi
> brary.java&q=classLoaderDelegation&exact_package=http://svn.apache.org/repos/a
> sf/servicemix/smx3/),
> not for SU
> 
> I am going to find ways to deploy camel component with the self-first
> delegation rule.
> 
> 
> Jean-Baptiste Onofre wrote:
>> >
>> > Hi,
>> >
>> > have you tried to define it in your pom.xml using:
>> >
>> > <build>
>> >    <plugins>
>> >      <plugin>
>> >        <groupId>org.apache.servicemix.tooling</groupId>
>> >        <artifactId>jbi-maven-plugin</artifactId>
>> >        <configuration>
>> >          <classLoaderDelegation>self-first</classLoaderDelegation>
>> >        </configuration>
>> >      </plugin>
>> >    </plugins>
>> > </build>
>> >
>> > Regards
>> > JB
>> >
>> > dulanov wrote:
>>> >> Hello,
>>> >>
>>> >> As I undestand Camel SU doesn't XBean based service units
>>> >> (http://servicemix.apache.org/classloaders.html). How can I set
>>> >> self-first
>>> >> delegation classLoaderDelegation for it (<import inverse="true" />)? Is
>>> >> it
>>> >> possible to use jbi-maven-plugin Maven plugin to do it?
>> >
>> > --
>> > Jean-Baptiste Onofré
>> > ---------------------------------
>> >   HomePage
>> > http://www.nanthrax.net
>> > ---------------------------------
>> >   Contacts
>> > [email protected]
>> > [email protected]
>> > ---------------------------------
>> >   OpenSource
>> > BuildProcess/AutoDeploy
>> > http://buildprocess.sourceforge.net
>> > Apache ServiceMix
>> > http://servicemix.apache.org
>> > -----------------------------------
>> > PGP : 17D4F086
>> >
>> >
> 
> --
> View this message in context:
> http://www.nabble.com/How-set-self-first-delegation-for-Camel-SU-tp25641478p25
> 644754.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> 
> 



-- 
Mark Ford
MIT Lincoln Laboratory
244 Wood Street
Lexington MA 02420
(781) 981-1843

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to