Toying with an embedded tomcat
Since i wasnt completely satisfied with glassfish for some of my projects, i decided to try my luck with an embedded Tomcat.
This really seems to be an interesting way for some applications, while it sure isnt able to replace glassfish for more complex business-apps.
Just some quick notes:
- Make sure you have the configs of the Tomcat in place, otherwise it will fail (almost) silently
- If you want to set your own AnnotationProcessor, inherit from DefaultAnnotationProcessor instead of implementing AnnotationProcessor, otherwise JSF-managed beans want be processed. This is because of the line
com.sun.faces.vendor.Tomcat6InjectionProvider:org.apache.catalina.util.DefaultAnnotationProcessor
in File
javaserverfaces-sources/jsf-ri/conf/share/com.sun.faces.spi.injectionprovider - It's not trivial to set an AnnotationProcessor, if you want it to still retain the original behaviour. The NamingContext will be instantiated during start(), so you can either set your AnnotationProcessor before calling start() on the Context and have a null NamingContext or set it afterwards and miss all annotations during startup.
I also started work on a Tomcat Authenticator-Valve to allow using AuthenticRoast in a Tomcat-only environment, this will be included in the next release which is scheduled for some time next week or so!
:-)
- retweet@ - onsite tweeting
- AS Antispam (german)
- New releases for AuthenticRoast and ViewNControl
- New release of AuthenticRoast - Moved to Google code
- ViewNControl: VNC connections with pure HTML / JavaScript
- Make that mouse-pointer stay out of invisible areas
- RESTful web-services in Java using JAX-RS - Part 1: Getting up and running
- SumtnSumtn goes public :-)
- Problems with f:param inside h:outputLink
- Tomcat and UTF-8
- Multihead in KDE 4.2.2
- RPM hanging for no (apprent) reason??
Aike J Sommer