Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
how to extend BaseHotDeployListener in liferay DXP
To extend Model Listener In liferay 7-DXP we use the component
@Component(immediate = true, service = ModelListener.class) |
I need to extend BaseHotDeployListener in my portlet. I tried with
@Component(immediate = true, service = HotDeployListener.class) |
its not working. Please let me how to extend BaseHotDeployListener in DXP.
Regards,
Faisal
That is all that is necessary. Have you verified that the component is started (ACTIVE) and that the service, too, has started (no unresolved dependencies)?
I have verified that the component is ACTIVE and deployed to the liferay server, but its not called the listener.
in DXP we build and deploy in different way unlike liferay 6.2, that is module not war. Hence, do we need to call different listener?
In gogo, you can scr:list # to see the services your bundle has, then scr:info ## on the service number from list output to see the status of the service. Make sure they are all active and have no unresolved dependencies.
Thanks Nebinger. Its working fine.
BaseHotDeployListener is called restarting the server.
Powered by Liferay™