Hi!

The openwebeans-tomcat7 (and 6) plugins will just programmatically add the 
WebBeansConfigurationListener. See ContextLifecycleListener.java:
...
listeners.addFirst("org.apache.webbeans.servlet.WebBeansConfigurationListener");
...

The openwebbeans-tomcat plugins will also enable CDI Injection into Servlets! 
See TomcatInstanceManager.

The OWB tomcat plugins are very handy indeed!
And the CODI artifacts provided by the Apache MyFaces team are really a good 
starting point.

LieGrue,
strub 

 
--- On Wed, 7/27/11, Gerhard Petracek <[email protected]> wrote:

From: Gerhard Petracek <[email protected]>
Subject: Re: Plugins & Tomcat
To: [email protected]
Date: Wednesday, July 27, 2011, 12:49 PM

hi gernot,
first of all: welcome @ owb!
you don't need it, if you are using tomcat only. if you would like to use the 
jee6 web-profile based on tomcat, you have to use the tomcat-plugin.

you can use for example the myfaces archetype:mvn archetype:generate 
-DarchetypeCatalog=http://myfaces.apache.org(select #11) and you will get a 
hello world application with jsf2 + owb + codi which works on servletcontainers 
like tomcat/jetty/...

(you just have to update the version numbers in the pom file, if you would like 
to use the latest versions.)
regards,gerhard

http://www.irian.at



Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces




2011/7/27 Gernot <[email protected]>


Is there somewhere any documentation about plugins?



concrete questions:

I use Tomcat 7, so I add the tomcat7plugin and add <Listener

className="org.apache.webbeans.web.tomcat.ContextLifecycleListener" />

to server.xml,

do I also have to add

<listener><listener-class>org.apache.webbeans.servlet.WebBeansConfigurationListener</listener-class></listener>

or does the ContextLifecycleListener the configuration stuff?



Which plugins are required for Tomcat (and JSF2)?



thx gernot




Reply via email to