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
Inject Spring Bean from external´s jar libraries
Good Morning
I tried inject spring bean from external´s jar libraries into module project, but I can´t do it.
How I cant do?
Thanks in advanced
What have you tried so far, how did it behave, what did you observe and which Liferay version are you referring to? Please provide sample (simplified) code - as it is, it's hard to assume the proper context for this question.
Hi Olaf Kock
Version of LIferay is 7.0-GA5
I have a module project A and this contain externar library ext.jar. In this library (ext.jar) I have a Service Class with annotation @Service as follow:
@Service("helloWorldService")
public class
HelloWorldService {
I want inject like bean HelloWorldService in my Util Class in module project A
public class ProjectAUtils {
@Autowired
private static HelloWorldService helloWorldService;
And in my bnd I have
-includeresource: @ext-0.0.1.jar
When execute my Utils, bean helloWorldService is null. I do multiples search in internet for a solution but I don´t succes
How I can add context spring for my module project A and inject this bean?
Thanks in advanced