Hello again,

I've just done another test, reverting the only major change I did: replacing 
the felix scr javadoc with the felix annotation.
Just to be sure I'm reading again the documentation here:
http://felix.apache.org/site/scr-annotations.html

But can you confirm that the following bits of code are equivalent, please?

/**
 * scr.component label="MY_FOO" description="MY_BAR"
 *          name="spikes.MyComponent"
 *          configurationFactory="true" policy="require"
 *
 * scr.property name="service.vendor" value="Me"
 * scr.property name="service.description"
 *      value="Factory for MyComponent"
 */

@Component(label = "MY_FOO", description = "MY_BAR", name = 
"spikes.MyComponent", configurationFactory = true, policy = 
ConfigurationPolicy.REQUIRE)
@Properties({
                @Property(name = "service.vendor", value = "Sourcesense"),
                @Property(name = "service.description", value = "Factory for 
MyComponent") })

Because in the latter one, the configuration isn't displayed in the web console.
Or I'm still missing something?

Thanks again
Ale

On Jun 8, 2011, at 4:40 PM, Alessandro Novarini wrote:

> Hello everybody,
> 
> Just like the Jackrabbit Server Bundle does, I'm creating a configuration in 
> my activator, and then recalling it in my bundle.
> Everything seems working almost fine, because the activator stores the 
> default configuration only the first time, and the bundle loads it correctly.
> 
> What I can't do is to display the configuration in the web console, under the 
> "Configuration" tab, so that I can change the default configuration.
> Is this anything that normally should happen automatically once you save the 
> configuration with the admin configuration service?
> 
> What's the trick, if there's any?
> 
> Thanks in advance
> Ale
> 
> -- 
> Alessandro Novarini
> a-dot-novarini-at-sourcesense-dot-com
> 
> 
> 

-- 
Alessandro Novarini
a-dot-novarini-at-sourcesense-dot-com



Reply via email to