----- Original Message ----- From: "John McPeek" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to