Expand my Community achievements bar.

unbind from service from system/console/components every time we upgrade the bundle version

Avatar

Level 4

Hi,

We have written a class for a remember-me cookie mechanism for which we have  used implements AuthenticationHandler, AuthenticationFeedbackHandler
I notice that very time i build a new upgrader jar  with a different/new version say from 0.0.x to 0.x.0 the functionality is lost, i need to go
system/console/components  unbind the service and then save it.Then i notice that it works.

Please can u help me as how could i solve it with me doing an unbind every time on update jar version of bundle.

Thanks

2 Replies

Avatar

Level 10

I am not sure what you mean by saying you build a new JAR. Do you mean you are deployign a new OSGi bundle that contains a newer JAR version. Are you using MAven to build your OSGi bundle?  If so - what Archetype version? 

Avatar

Level 4


Yes on building new JAR  and happens on deployign a new OSGi bundle that contains a newer JAR version.  We are using Maven build with multi-module Archetype and aem 5.6.1

This is happening for this component and not for others