You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by John McPeek <sp...@bellsouth.net> on 2007/07/29 04:47:17 UTC

Resource Injection

I want to use Resource Injection and I have been looking around, but all 
I can find is threads about stuff that doesn't work related to JSF. Does 
Tomcat 6 support Resource Injection?

Thanks,
John

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Resource Injection

Posted by ben short <be...@benshort.co.uk>.
Or have a look at www.springframework.org

On 7/29/07, Johnny Kewl <jo...@kewlstuff.co.za> wrote:
>
> ----- Original Message -----
> From: "John McPeek" <sp...@bellsouth.net>
> To: "Tomcat Users List" <us...@tomcat.apache.org>
> Sent: Sunday, July 29, 2007 4:47 AM
> Subject: Resource Injection
>
>
> >I want to use Resource Injection and I have been looking around, but all I
> >can find is threads about stuff that doesn't work related to JSF. Does
> >Tomcat 6 support Resource Injection?
>
> John, no.... Resource Injection is still very much the domain of the EJB
> container, and application server. Tomcat is a pure lite weight servlet
> container, although one could argue that there is limited application of the
> spec for injecting Resources into servlets, and I do see annotation classes
> that seem to be in development in TC's source code, it seems pure Resource
> Injection is still not a feature, and may never be.
>
> Something I havnt tried, but I think its worth a look see, is Apaches
> OpenEJB project, I think if you add that to TC, you may get what you want.
> I think you will be able to inject resources into beans and use them from
> TC, and the framework seems nice and lite... otherwise I think you have to
> go for the heavy weights like geronomo, or glassfish.
>
> Good Luck....
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Resource Injection

Posted by Johnny Kewl <jo...@kewlstuff.co.za>.
----- Original Message ----- 
From: "John McPeek" <sp...@bellsouth.net>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Sunday, July 29, 2007 4:47 AM
Subject: Resource Injection


>I want to use Resource Injection and I have been looking around, but all I 
>can find is threads about stuff that doesn't work related to JSF. Does 
>Tomcat 6 support Resource Injection?

John, no.... Resource Injection is still very much the domain of the EJB 
container, and application server. Tomcat is a pure lite weight servlet 
container, although one could argue that there is limited application of the 
spec for injecting Resources into servlets, and I do see annotation classes 
that seem to be in development in TC's source code, it seems pure Resource 
Injection is still not a feature, and may never be.

Something I havnt tried, but I think its worth a look see, is Apaches 
OpenEJB project, I think if you add that to TC, you may get what you want.
I think you will be able to inject resources into beans and use them from 
TC, and the framework seems nice and lite... otherwise I think you have to 
go for the heavy weights like geronomo, or glassfish.

Good Luck.... 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org