RE: Interceptor IOC with Spring

2009-09-24 Thread Mike Baranski
, September 24, 2009 12:19 PM >To: Struts Users Mailing List >Subject: Re: Interceptor IOC with Spring > >If you have working examples in the same application, there must be >something different about this instance. > >Could it be the bean name? I've been occasionally baffled

Re: Interceptor IOC with Spring

2009-09-24 Thread Chris Pratt
ilto:thechrispr...@gmail.com] > >Sent: Thursday, September 24, 2009 11:51 AM > >To: Struts Users Mailing List > >Subject: Re: Interceptor IOC with Spring > > > >The only other difference I can see between my (working) example and > >yours > >is that I used

Re: Interceptor IOC with Spring

2009-09-24 Thread Musachy Barroso
p://www.springframework.org/schema/beans/spring-beans-2.0.xsd >> http://www.springframework.org/schema/util >> http://www.springframework.org/schema/util/spring-util-2.0.xsd"; >> default-autowire="byName"> >> >> >-Original Message- >> >Fr

RE: Interceptor IOC with Spring

2009-09-24 Thread Mike Baranski
Yes, and my other interceptor has my data source injected, and it's setup the same way... >-Original Message- >From: Chris Pratt [mailto:thechrispr...@gmail.com] >Sent: Thursday, September 24, 2009 11:51 AM >To: Struts Users Mailing List >Subject: Re: Interceptor IO

Re: Interceptor IOC with Spring

2009-09-24 Thread Chris Pratt
Original Message- > >From: Chris Pratt [mailto:thechrispr...@gmail.com] > >Sent: Thursday, September 24, 2009 11:29 AM > >To: Struts Users Mailing List > >Subject: Re: Interceptor IOC with Spring > > > >What do you have default-autowire set to in your ap

RE: Interceptor IOC with Spring

2009-09-24 Thread Mike Baranski
ay, September 24, 2009 11:29 AM >To: Struts Users Mailing List >Subject: Re: Interceptor IOC with Spring > >What do you have default-autowire set to in your applicationContext.xml? > (*Chris*) > >On Thu, Sep 24, 2009 at 8:08 AM, Mike Baranski < >list-subscripti...@secm

Re: Interceptor IOC with Spring

2009-09-24 Thread Chris Pratt
e and post it if I'm > >still stuck... > > > >>-Original Message- > >>From: Musachy Barroso [mailto:musa...@gmail.com] > >>Sent: Wednesday, September 23, 2009 1:59 PM > >>To: Struts Users Mailing List > >>Subject: Re: Interceptor IOC

RE: Interceptor IOC with Spring

2009-09-24 Thread Mike Baranski
t;To: 'Struts Users Mailing List' >Subject: RE: Interceptor IOC with Spring > >Doh! Sorry for the goose chase, I'll review my code and post it if I'm >still stuck... > >>-Original Message- >>From: Musachy Barroso [mailto:musa...@gmail.com] &g

Re: Interceptor IOC with Spring

2009-09-23 Thread Wes Wannemacher
Martin, Good find, but I am not sure if I understand how that relates to the OP question or musachy's answer nevermind i think you are confused which interceptors we are dealing with if you take a closer look at the original poster's question you'll see that this thread is about struts intercep

RE: Interceptor IOC with Spring

2009-09-23 Thread Mike Baranski
Doh! Sorry for the goose chase, I'll review my code and post it if I'm still stuck... >-Original Message- >From: Musachy Barroso [mailto:musa...@gmail.com] >Sent: Wednesday, September 23, 2009 1:59 PM >To: Struts Users Mailing List >Subject: Re: Interceptor IOC w

Re: Interceptor IOC with Spring

2009-09-23 Thread Musachy Barroso
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 wrote: > Chris, if autowiring works then using @Autowire with @Qualifier

Re: Interceptor IOC with Spring

2009-09-23 Thread Musachy Barroso
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 wrote: > In my struts.xml I have: > >   > > And at the top of my applicationContext.xml I have: > > > > And my Int

Re: Interceptor IOC with Spring

2009-09-23 Thread Musachy Barroso
'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > >> Date: Wed, 23 Sep 2009 09:23:44 -0700 >> Subject: Re: Inte

RE: Interceptor IOC with Spring

2009-09-23 Thread Mike Baranski
OK, thanks, is there a JIRA for this? I'll be happy to request it as an enhancement... >-Original Message- >From: Musachy Barroso [mailto:musa...@gmail.com] >Sent: Wednesday, September 23, 2009 11:23 AM >To: Struts Users Mailing List >Subject: Re: Interce

RE: Interceptor IOC with Spring

2009-09-23 Thread Martin Gainty
enu fourni. > Date: Wed, 23 Sep 2009 09:23:44 -0700 > Subject: Re: Interceptor IOC with Spring > From: musa...@gmail.com > To: user@struts.apache.org > > that makes sense, I use @Resource(name = "mybean") on my setter > methods, so I guess it is just the annotat

Re: Interceptor IOC with Spring

2009-09-23 Thread Musachy Barroso
that makes sense, I use @Resource(name = "mybean") on my setter methods, so I guess it is just the annotations the ones that do not work. musachy On Wed, Sep 23, 2009 at 9:18 AM, Chris Pratt wrote: > In my struts.xml I have: > >   > > And at the top of my applicationContext.xml I have: > > > >

Re: Interceptor IOC with Spring

2009-09-23 Thread Chris Pratt
In my struts.xml I have: And at the top of my applicationContext.xml I have: 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 th

Re: Interceptor IOC with Spring

2009-09-23 Thread Musachy Barroso
interceptors and results do net get dependencies injected. If you implement BeanFactoryAware, or ApplicationContextAware it will pass you the bean factory or the context. I will take a look at this, as it has been bothering me for a while. musachy On Wed, Sep 23, 2009 at 7:21 AM, Mike Baranski