Wow, spot on Filip! Thanks very much for the tip. Everything is working
now.
So folks, as of 5.0.15, the only way to inject a service into another
service is through the constructor.
Eric
Filip S. Adamsen-2 wrote:
>
> Hi,
>
> Sounds like you tried using @Inject and friends to inject the se
Hi,
Sounds like you tried using @Inject and friends to inject the services?
This won't work.* You'll need to use constructor injection instead:
public class ServiceImpl implements Service {
private final AnotherService anotherService;
public ServiceImpl(AnotherService anotherService) {
Thanks for your reply. Actually, I found I cannot inject anything into
RequestFilter, not even Logger or any of my custom services. Looks like
injection can only happen to components and pages.
Eric
ApplicationGlobals cannot be injected into RequestFilter. Inject
RequestGlobals into it inste
ApplicationGlobals cannot be injected into RequestFilter. Inject
RequestGlobals into it instead or inject ApplicationStateManager (?) into
it.
- Original Message -
From: "Eric Ma" <[EMAIL PROTECTED]>
To:
Sent: Friday, October 03, 2008 9:31 AM
Subject: [T
my RequestFilter is null. My questions are a) is
ApplicationGlobals injectable in a RequestFilter, and b) if not, is there a
way to get hold of ServletContext somehow?
Thanks,
Eric
--
View this message in context:
http://www.nabble.com/-T5--How-to-get-to-ApplocationGlobals-and-ServletContext