The Action is instantiated using newInstance() (so your Action needs a no-arg constructor) and the dependencies are resolved by the ComponentInterceptor and filled there...
> -----Original Message----- > From: Samuel Mota [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 01, 2003 4:46 PM > To: [EMAIL PROTECTED] > Subject: RE: [OS-webwork] Application Components > > > > Yes, > > as shown in the original message the components.xml file is > there and configured ... I didn't say that my Actions > implments the enable interfaces ... > > Should, at load time (as I'm using the Application scope), > the framework load and build an instance of my class? > (calling the default constructor?) > > + Samuel G. Mota > + [EMAIL PROTECTED] > + 55 (11) 4417 7093 > + Business Application Dpt. > + Netset Serviços em Tecnologia > + a Hypercom Company > + http://www.hypercom.com > > > > > > > [EMAIL PROTECTED] > > > Sent by: > To: [EMAIL PROTECTED] > > [EMAIL PROTECTED] > cc: > > ceforge.net > Subject: RE: [OS-webwork] Application Components > > > > > > > > 01/10/2003 17:05 > > > Please respond to > > > opensymphony-webwork > > > > > > > > > > > > > Do you have your components.xml set up and do your Actions > implement the enabler interfaces? > > > -----Original Message----- > > From: Samuel Mota [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, October 01, 2003 3:58 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [OS-webwork] Application Components > > > > > > > > Unfurnately they are there: > > <filter> > > <filter-name>container</filter-name> > > > > <filter-class>com.opensymphony.webwork.lifecycle.RequestLifecy > > cleFilter</filter-class> > > </filter> > > <filter-mapping> > > <filter-name>container</filter-name> > > <url-pattern>/*</url-pattern> > > </filter-mapping> > > <listener> > > > > <listener-class>com.opensymphony.webwork.lifecycle.Application > > LifecycleListener</listener-class> > > </listener> > > <listener> > > > > <listener-class>com.opensymphony.webwork.lifecycle.SessionLife > > cycleListener</listener-class> > > </listener> > > > > > > + Samuel G. Mota > > + [EMAIL PROTECTED] > > + 55 (11) 4417 7093 > > + Business Application Dpt. > > + Netset Serviços em Tecnologia > > + a Hypercom Company > > + http://www.hypercom.com > > > > > > > > > > > > > > [EMAIL PROTECTED] > > > > > > Sent by: > > To: [EMAIL PROTECTED] > > > > [EMAIL PROTECTED] > > cc: > > > > ceforge.net > > Subject: Re: [OS-webwork] Application Components > > > > > > > > > > > > > > > > 01/10/2003 16:24 > > > > > > Please respond to > > > > > > opensymphony-webwork > > > > > > > > > > > > > > > > > > > > > > > > > > You actually will need to set up all 3 lifecycle handlers > even if your > > app only uses application context objects. > > > > <filter> > > <filter-name>container</filter-name> > > <filter-class>com.opensymphony.webwork.lifecycle.RequestLifecy > > cleFilter</filter-class> > > </filter> > > > > <filter-mapping> > > <filter-name>container</filter-name> > > <url-pattern>/*</url-pattern> > > </filter-mapping> > > > > <listener> > > <listener-class>com.opensymphony.webwork.lifecycle.SessionLife > > cycleListener</listener-class> > > </listener> > > > > M > > > > > > Samuel Mota wrote: > > > > > Hi, > > > > > > I'm not getting my application component initialized > correctly ... > > > indeed it is not being initialized (neither incorrectly:) ... > > > > > > At web.xml the listener is present: > > > <listener> > > > > > > > > <listener-class>com.opensymphony.webwork.lifecycle.Application > > LifecycleListener</listener-class> > > > </listener> > > > > > > At components.xml I've registered my component: > > > <component> > > > <scope>application</scope> > > > > > <class>br.com.netset.netwalki.components.LocalSessionFactory</class> > > > > > <enabler>br.com.netset.netwalki.components.LocalSessionFactory > > Aware</enabler> > > > </component> > > > > > > The default constructor of my component is this: > > > public LocalSessionFactory() > > > { > > > if(cfg==null || sf==null) { > > > try { > > > cfg = new Configuration(); > > > cfg.addClass(User.class); > > > sf = cfg.buildSessionFactory(); > > > //TODO: Tratar e logar corretamente as > Exceptions > > > } catch (MappingException e) { > > > e.printStackTrace(); > > > } catch (HibernateException e) { > > > e.printStackTrace(); > > > } > > > } > > > } > > > > > > And finally I've registered the Component Interceptor for > > my action: > > > <interceptor-ref name="component"/> > > > > > > What am I missing? > > > > > > Thanks > > > > > > + Samuel G. Mota > > > + [EMAIL PROTECTED] > > > + 55 (11) 4417 7093 > > > + Business Application Dpt. > > > + Netset Serviços em Tecnologia > > > + a Hypercom Company > > > + http://www.hypercom.com > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Opensymphony-webwork mailing list > > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Opensymphony-webwork mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Opensymphony-webwork mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork