Hi all,

While debugging the carbon kernel to figure out how it start the OSGI
environment I found that it also uses EclipseStarter class to start the
OSGI environment. So following the code I was able to configure my local
instance. So I'm adding the configuration details here if someone is
interested;

"osgi.instance.area":
"file:{carbon_home}/repository/components/default/workspace"
"osgi.install.area": "file:{carbon_home}/repository/components/default"
"eclipse.p2.data.area": "{carbon_home}/repository/components/p2"
"osgi.configuration.area":
"file:{carbon_home}/repository/components/default/configuration"
"osgi.framework":
"file:{carbon_home}/repository/components/plugins/org.eclipse.osgi_3.8.1.v20120830-144521.jar"
"osgi.contextClassLoaderParent": "app"
"org.osgi.framework.system.packages":
"javax.accessibility,javax.activity,javax.crypto,javax.crypto.interfaces,javax.crypto.spec,javax.imageio,javax.imageio.event,javax.imageio.metadata,javax.imageio.plugins.bmp,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.imageio.stream,javax.jms,javax.management,javax.management.loading,javax.management.modelmbean,javax.management.monitor,javax.management.openmbean,javax.management.relation,javax.management.remote,javax.management.remote.rmi,javax.management.timer,javax.naming,javax.naming.directory,javax.naming.event,javax.naming.ldap,javax.naming.spi,
javax.net
,javax.net.ssl,javax.print,javax.print.attribute,javax.print.attribute.standard,javax.print.event,javax.rmi,javax.rmi.CORBA,javax.rmi.ssl,javax.script,javax.security.auth,javax.security.auth.callback,javax.security.auth.kerberos,javax.security.auth.login,javax.security.auth.spi,javax.security.auth.x500,javax.security.cert,javax.security.sasl,javax.sound.midi,javax.sound.midi.spi,javax.sound.sampled,javax.sound.sampled.spi,javax.sq"
"osgi.parentClassloader": "app"
"osgi.clean": "true"

With the preceding set of properties as initial properties to
EclipseStarter I was able to point my stand alone app to carbon and start
the OSGI environment.

Best regards,
Dinusha

On Fri, Sep 18, 2015 at 1:46 PM, Dinusha Boteju <[email protected]> wrote:

> Hi all,
>
> I'm trying to embed org.eclipse.core.runtime.adapter.EclipseStarter class
> into my stand alone java application in order to start an OSGI environment.
> I need to configure EclipseStarter class to start by pointing it to carbon
> platform location. It is really hard to find resources on this. Thus if
> anybody has used EclipseStarter, I highly appreciate your thoughts on this.
> If any alternatives that I can use instead of EclipseStarter is also
> appreciated :)
>
> Ultimate goal is to install features into Carbon platform through this
> standalone java application.
>
> Thanks,
> --
>
> *Dinusha Boteju*
> *WSO2, Inc. http://wso2.com <http://wso2.com/> *
> *lean.enterprise.middleware.*
>
> email: [email protected] <[email protected]>
> phone:(+94) 776640275 <%28%2B94%29%20777739736>
>



-- 

*Dinusha Boteju*
*Associate Tech Lead,*
*WSO2, Inc. http://wso2.com <http://wso2.com/> *
*lean.enterprise.middleware.*

email: [email protected] <[email protected]>
phone:(+94) 776640275 <%28%2B94%29%20777739736>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to