Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330673 - ManagedService don't call update() when new configuration is put in pickup
Summary: ManagedService don't call update() when new configuration is put in pickup
Status: CLOSED FIXED
Alias: None
Product: Virgo
Classification: RT
Component: unknown (show other bugs)
Version: 2.1.0.RELEASE   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 3.0.0.M01   Edit
Assignee: Chris Frost CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-19 10:40 EST by Peter Lauri CLA
Modified: 2011-02-28 10:46 EST (History)
3 users (show)

See Also:


Attachments
Log when deploying bundle and then configuration (7.43 KB, text/plain)
2010-11-19 10:58 EST, Peter Lauri CLA
no flags Details
Maven project that uses ManagedService (15.79 KB, application/zip)
2010-11-19 11:01 EST, Peter Lauri CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lauri CLA 2010-11-19 10:40:23 EST
Build Identifier: virgo-web-server-2.1.0.RELEASE

When using OSGI ManagedService an update() call is expected if a new properties file is put into the pickup directory. However, errors are raised and no call to update() is done.

However, if you would before startup of virgo would put the configuration in the config directory, then all updated works as it should.

I will attach a maven project that can be used to test this.

Reproducible: Always

Steps to Reproduce:
Based on the maven project attached.

1. Start the bundle that registers ManagedService with properties Constants.SERVICE_PID="com.pjotr.managedservicetest"
2. You will get log message "Update count: 1" and "Got update config: null". This is as expected, as no configuration exists.
3. Create com.pjotr.managedservicetest.properties file and then copy it to pickup directory. No update is called, but errors are seen in the log that the configuration is already bound to another bundle.
Comment 1 Peter Lauri CLA 2010-11-19 10:58:59 EST
Created attachment 183476 [details]
Log when deploying bundle and then configuration
Comment 2 Peter Lauri CLA 2010-11-19 11:01:01 EST
Created attachment 183477 [details]
Maven project that uses ManagedService
Comment 3 Peter Lauri CLA 2010-11-20 15:19:48 EST
Tested on Windows and Linux show same result.
Comment 4 Chris Frost CLA 2010-12-14 11:19:34 EST
This has been fixed and checked using the recreation steps below. This fix will be available in the next 2.2 milestone M2.
Comment 5 Chris Frost CLA 2010-12-14 11:19:53 EST
Work pushed