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 use anntation Component and Referance in independand api-module
hi
i create a independand api-module for other mvc-module to use.
i use
MyComponent component = new MyComponent();
it works, but it cannot auto-update if i modified it, i have to stop server, and delete temp of tomcat, and restart server.
i'd like use @Component in class of api-module, and use @Referance in mvc-module. via document OSGi Services and Dependency Injection with Declarative Services
but i got State:UNSATISFIED REFERENCE issue.
the eaziest way is i give up independand api-module, use service-builde module.
is there any other salution for my case to simple use?
Thank you in advance.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™