You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by "Roll, Kevin" <Ke...@idexx.com> on 2016/01/15 21:28:26 UTC

Sling 8 standalone jar

I've started investigating the upgrade path from Sling 7 to 8 and I've run into some issues with the standalone launcher. We build our own standalone jar which includes an overriden Main class as well as several custom bundles that contain our functionality. I've noticed at least two major changes in Sling 8:

1. The launcher Main class doesn't appear to exist any longer
2. There is no default bundle list in the repository

Is there any documentation on how the launcher works under Sling 8? I have not been able to find anything current on the site. Thanks!


Re: Sling 8 standalone jar

Posted by Bertrand Delacretaz <bd...@apache.org>.
On Mon, Jan 18, 2016 at 2:17 PM, Roll, Kevin <Ke...@idexx.com> wrote:
> ...I'll take a look at the plugin....

BTW there are some docs at
https://sling.apache.org/documentation/development/slingstart.html but
I haven't checked recently if they are up to date - the Truth Is In
The Code as usual and feel free to report anything incorrect in those
docs.

-Bertrand

RE: Sling 8 standalone jar

Posted by "Roll, Kevin" <Ke...@idexx.com>.
The initial reason we wrote a custom Main class was to work around the issue of not being able to set the port via the properties file. I believe this has been patched and shouldn't be an issue now.

Some other team members have added some things in there that dynamically configure things at startup. I don't think these could move to a bundle activator because they potentially affect the properties that Sling uses when it launches. It might be possible to move these somewhere else, perhaps into the installer. Personally I would like to get away from the custom Main class entirely.

I'll take a look at the plugin. Thanks!

-----Original Message-----
From: Bertrand Delacretaz [mailto:bdelacretaz@apache.org] 
Sent: Monday, January 18, 2016 5:06 AM
To: users
Subject: Re: Sling 8 standalone jar

Hi,

On Fri, Jan 15, 2016 at 9:28 PM, Roll, Kevin <Ke...@idexx.com> wrote:
> We build our own standalone jar which includes an overriden Main class as
> well as several custom bundles that contain our functionality...

I'm curious why you needed a custom Main class - not saying it's wrong
but maybe we can do something at the Sling level to make your life
easier.

To build you own launcher now best is to use the slingstart plugin,
there's several examples in our codebase. You can then add your
bundles in a provisioning model file.

-Bertrand

Re: Sling 8 standalone jar

Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi,

On Fri, Jan 15, 2016 at 9:28 PM, Roll, Kevin <Ke...@idexx.com> wrote:
> We build our own standalone jar which includes an overriden Main class as
> well as several custom bundles that contain our functionality...

I'm curious why you needed a custom Main class - not saying it's wrong
but maybe we can do something at the Sling level to make your life
easier.

To build you own launcher now best is to use the slingstart plugin,
there's several examples in our codebase. You can then add your
bundles in a provisioning model file.

-Bertrand

Re: Sling 8 standalone jar

Posted by olimination <ol...@gmail.com>.
Hi Kevin,

as far as I know Sling 8 uses now the new Provisioning model for setting 
up a Sling instance, see here: 
https://sling.apache.org/documentation/development/slingstart.html

There you should find the mechanism how the standalone launcher gets 
built together and works.

cheers,
Oli


On 15.01.2016 21:28, Roll, Kevin wrote:
> I've started investigating the upgrade path from Sling 7 to 8 and I've run into some issues with the standalone launcher. We build our own standalone jar which includes an overriden Main class as well as several custom bundles that contain our functionality. I've noticed at least two major changes in Sling 8:
>
> 1. The launcher Main class doesn't appear to exist any longer
> 2. There is no default bundle list in the repository
>
> Is there any documentation on how the launcher works under Sling 8? I have not been able to find anything current on the site. Thanks!
>