AppAssembler to create java serviice wrapper + eclipse equinox config

View: New views
4 Messages — Rating Filter:   Alert me  

AppAssembler to create java serviice wrapper + eclipse equinox config

by Leen Toelen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

has anyone tried already to use appassembler to create an java service wrapper that starts eclipse equinox? Specifically I would like to automatically copy all artifacts (bundles) to the eclipse/plugins directory using appassembler.

regards,
Leen Toelen

Re: AppAssembler to create java serviice wrapper + eclipse equinox config

by Trygve Laugstøl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Leen Toelen wrote:
> Hi,
>
> has anyone tried already to use appassembler to create an java service
> wrapper that starts eclipse equinox? Specifically I would like to
> automatically copy all artifacts (bundles) to the eclipse/plugins
> directory using appassembler.

What is required to do so?

--
Trygve

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: AppAssembler to create java serviice wrapper + eclipse equinox config

by Leen Toelen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Right now I have a manually created config.ini for the equinox launcher with all bundles that need to be started at boot, and java service wrapper starts the equinox launcher, which is just a jar. The most error-prone part is to fill the plugin folder with all needed bundles AND all dependencies. OSGI bundles specify their dependencies in their manifest, and will not get started when their dendencies are not resolved.

I used this website http://mauszeig.wordpress.com/2007/06/10/equinox-as-a-service/ for getting started initially.

Regards,
Leen

2009/7/3 Trygve Laugstøl <trygvis@...>
Leen Toelen wrote:
> Hi,
>
> has anyone tried already to use appassembler to create an java service
> wrapper that starts eclipse equinox? Specifically I would like to
> automatically copy all artifacts (bundles) to the eclipse/plugins
> directory using appassembler.

What is required to do so?

--
Trygve

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




Re: AppAssembler to create java serviice wrapper + eclipse equinox config

by Trygve Laugstøl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Leen Toelen wrote:

> Hi,
>
> Right now I have a manually created config.ini for the equinox launcher
> with all bundles that need to be started at boot, and java service
> wrapper starts the equinox launcher, which is just a jar. The most
> error-prone part is to fill the plugin folder with all needed bundles
> AND all dependencies. OSGI bundles specify their dependencies in their
> manifest, and will not get started when their dendencies are not resolved.
>
> I used this
> website http://mauszeig.wordpress.com/2007/06/10/equinox-as-a-service/ for
> getting started initially.

Have you tried it? If you set the layout to be "flat" it should stuff
all the dependencies inside a lib/ folder (which you can rename with
configuration to "plugin") and launch the specified main() method.

One issue is that every JAR is going to be on the classpath. Perhaps you
can have a dependency on only the launcher JAR (and put that in lib/)
and use the dependency plugin to pack everything else under plugins/?

--
Trygve

> Regards,
> Leen
>
> 2009/7/3 Trygve Laugstøl <trygvis@...
> <mailto:trygvis@...>>
>
>     Leen Toelen wrote:
>      > Hi,
>      >
>      > has anyone tried already to use appassembler to create an java
>     service
>      > wrapper that starts eclipse equinox? Specifically I would like to
>      > automatically copy all artifacts (bundles) to the eclipse/plugins
>      > directory using appassembler.
>
>     What is required to do so?
>
>     --
>     Trygve
>
>     ---------------------------------------------------------------------
>     To unsubscribe from this list, please visit:
>
>        http://xircles.codehaus.org/manage_email
>
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email