Just like always in java:
MyClass.main(args);
Of course this will bind the caller tightly to the module it calls. A
main method is typically also not very suited for being called inside a
java process.
So the better option is to Wrap the call in an OSGi service that takes
care of all necessary initialization and only provides access to the
real functionality you offer.
Christian
On 24.10.2016 08:18, manoj.vrajam...@wipro.com wrote:
Hi,
Using Enroute/Bndtools/Eclipse/Linux:
·I have created an .adapter Bnd OSGi Project which has some java
source code in it (that includes a java main method).
·Wrapped in some plain java jars as libraries (support libraries for
this source code)
·This bundle is ready and running in the Run Bundles list.
·Now, how do I invoke the main method from any other Bundle in the
project?
Please provide some pointers…
Thanks,
Manoj
The information contained in this electronic message and any
attachments to this message are intended for the exclusive use of the
addressee(s) and may contain proprietary, confidential or privileged
information. If you are not the intended recipient, you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately and destroy all copies of this message and any
attachments. WARNING: Computer viruses can be transmitted via email.
The recipient should check this email and any attachments for the
presence of viruses. The company accepts no liability for any damage
caused by any virus transmitted by this email. www.wipro.com
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
http://www.talend.com
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev