Another observation. After editing my service's config atleast once using
the felix console, things start working perfectly, That is, now all changes
that I make in the config node, get applied on the service. Editing the
config once using felix console does some (binding...?) magic which I am
not sure of.

On Mon, Feb 2, 2015 at 6:02 PM, connuser1 connuser1 <[email protected]>
wrote:

> While I am still trying to figure out other differences, here are a few
> observations:
>
> One difference that I found was that the config file was placed in
> 'install' folder for sling-test while I was keeping it in 'config' folder
> as per the docs. So I changed it to 'install' folder.  Otherwise the config
> nodes look the same.
>
> After this change, I see the JCRInstaller kicking in whenever I update the
> config node's property. Here's what I see in the logs:
>
> JcrInstaller Registering resource with OSGi installer
>
>
>  But still its not working. For the sling-test config, I see the
> OSGiInstallerImpl being called and then several config events get fired
> while in my case, the OSGiInstallerImpl never gets called.  For e.g.
>
> 02.02.2015 17:45:23.082 *INFO* [OsgiInstallerImpl]
> org.apache.sling.audit.osgi.installer Installed configuration
> org.apache.sling.scripting.jsp.JspScriptEngineFactory from resource
> TaskResource(url=jcrinstall:/apps/sling-test/install/org.apache.sling.scrip
> ting.jsp.JspScriptEngineFactory,
> entity=config:org.apache.sling.scripting.jsp.JspScriptEngineFactory,
> state=INSTALL,
> attributes=[org.apache.sling.installer.api.tasks.ResourceTransformer=:155:,
> service.pid=org.apache.sling.scripting.jsp.JspScriptEngineFactory],
> digest=354ad20d28352775381b06f675117d8a)
>
> Does this ring a bell...?
>
> On Mon, Feb 2, 2015 at 5:19 PM, connuser1 connuser1 <[email protected]>
> wrote:
>
>> Thanks Bertrand. I'll compare with it.
>>
>> On Mon, Feb 2, 2015 at 4:57 PM, Bertrand Delacretaz <
>> [email protected]> wrote:
>>
>>> Hi,
>>>
>>> On Mon, Feb 2, 2015 at 11:40 AM, connuser1 connuser1
>>> <[email protected]> wrote:
>>> > ...I am trying to configure a service by creating a node with
>>> jcr:primaryType
>>> > as sling:OsgiConfig in the /app/<my-project>/config directory. I am
>>> > following the steps as detailed in [1]. But I am unable to see the
>>> > configuration getting applied...
>>>
>>> The launchpad/test-services bundle includes a sling:OsgiConfig node as
>>> initial content, that goes under /apps/sling-test/install - you might
>>> want to install that bundle to compare with what you're doing.
>>>
>>> -Bertrand
>>>
>>
>>
>

Reply via email to