Re: Injecting singleton beans into Servlets

2008-07-09 Thread Musachy Barroso
mes to mind is to just make all of > these classes explicit singletons, and let Actions get them via > getInstance() calls, but that's a fair amount of rework. > > - Matt > > -Original Message- > From: Gabriel Belingueres [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 0

RE: Injecting singleton beans into Servlets

2008-07-09 Thread Kleiderman, Matthew
all of these classes explicit singletons, and let Actions get them via getInstance() calls, but that's a fair amount of rework. - Matt -Original Message- From: Gabriel Belingueres [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2008 7:56 PM To: Struts Users Mailing List Subject: Re:

Re: Injecting singleton beans into Servlets

2008-07-08 Thread Gabriel Belingueres
2008/7/8 Kleiderman, Matthew <[EMAIL PROTECTED]>: > Is there any way to inject beans defined in struts.xml with > scope=singleton into a Servlet so that it's available when the Servlet's > init method is called? Did you really meant injecting a bean defined inside Spring's applicationContext.xml f

Injecting singleton beans into Servlets

2008-07-08 Thread Kleiderman, Matthew
Is there any way to inject beans defined in struts.xml with scope=singleton into a Servlet so that it's available when the Servlet's init method is called? Alternately, is there a way to access where these instances are stored so I can get a reference to the instance? Thanks, Matt Kleiderman --