Install JBIComponent from adminCommandsService

Posted by acostela on Stack Overflow See other posts from Stack Overflow or by acostela
Published on 2014-06-02T09:21:22Z Indexed on 2014/06/02 9:24 UTC
Read the original article Hit count: 345

Filed under:
|
|
|
|

I'm trying to install a JBI component inside ServiceMix 4.3 from a Java class. This JBIComponent is packed as .jar. I wanted to know if the jbi.xml descriptor is mandatory in .jar package like in .zip.

I searched a lot of info and I'm not quite sure but as it looks like for the java classes that install the component is necessary this descriptor but when my maven project creates two files, one .zip and one .jar. The zip one has a jbi.xml descriptor inside META-INF. But the .jar that is generated doesn't have this descriptor.

http://grepcode.com/file/repo1.maven.org/maven2/org.apache.servicemix.nmr/org.apache.servicemix.nmr.bundle/1.5.0/org/apache/servicemix/jbi/deployer/impl/AdminCommandsImpl.java This is the class that I'm using to install it.

Thank you very much to everybody.

© Stack Overflow or respective owner

Related posts about java

Related posts about eclipse