Hi,

On 10.01.11 14:59, "Bengt Rodehav" <[email protected]> wrote:

>I use iPOJO and configuration admin. When certain configuration properties
>change, I want to "restart" my iPOJO instance. I e I want the instance to
>become invalid and then valid again. Currently I do some initialisation on
>the method marked as @Validate and some cleanup in the method marked
>as @Invalidate.
>
>It's very tricky to get this to work. When I start my application it seems
>like both the @Validate and the @Updated methods are called which causes
>problems. What is the recommended way to accomplish this?
>
>Ideally I would like to mark my iPOJO properties as requiring the instance
>to "restart", e g
>
>*  @Property(name = "rootUrl", restart = "true")*
>
>*  private String mRootUrl;*

Unfortunately this is not supported. It can be an interesting feature to
allow an instance to be invalidated/validated during the reconfiguration.
Could you open a jira issue  ?

In the meantime, you could try to use the lifecycle controller to force
the invalidation / revalidation.

Regards,

Clement

>
>
>/Bengt



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to