Meh, it all works. Autorired with/without annotations and @Resource
also works (in interceptors). @OP, something is wrong in your
configuration, show us the code :)

musachy

On Wed, Sep 23, 2009 at 10:51 AM, Musachy Barroso <musa...@gmail.com> wrote:
> Chris, if autowiring works then using @Autowire with @Qualifier
> (equivalent to @Resource) should also work, I have to try that.
>
> musachy
>
> On Wed, Sep 23, 2009 at 9:18 AM, Chris Pratt <thechrispr...@gmail.com> wrote:
>> In my struts.xml I have:
>>
>>  <constant name="struts.objectFactory" value="spring"/>
>>
>> And at the top of my applicationContext.xml I have:
>>
>> <beans default-autowire="autodetect" xmlns=...>
>>
>> And my Interceptors are getting injected just fine.  On another project, I
>> have autowiring turned off, but then you have to define each interceptor as
>> a bean in the applicationContext.xml and specifically define the objects
>> that get injected into it.
>>  (*Chris*)
>>
>> On Wed, Sep 23, 2009 at 7:21 AM, Mike Baranski <
>> list-subscripti...@secmgmt.com> wrote:
>>
>>> Correct me if I'm wrong, please, but if I have an interceptor, it should
>>> get
>>> injected by spring.
>>>
>>> I have a bean I'm expecting, the set method written, and the bean defined
>>> in
>>> applicationContext.
>>>
>>> My main struts.xml has:
>>>
>>> <constant name="struts.objectFactory"
>>> value="org.apache.struts2.spring.StrutsSpringObjectFactory" />
>>>
>>> My setter is not getting called, is there anything else I need to do?
>>>
>>>
>>> M.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>
>>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to