From do-not-reply at jboss.org Thu Nov 29 23:15:43 2012 Content-Type: multipart/mixed; boundary="===============8422944108453530475==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: gatein-commits at lists.jboss.org Subject: [gatein-commits] gatein SVN: r8976 - in epp/docs/branches: 6.0/Reference_Guide/en-US/modules/PortalDevelopment and 1 other directory. Date: Thu, 29 Nov 2012 23:15:43 -0500 Message-ID: <201211300415.qAU4FhG3003278@svn01.web.mwc.hst.phx2.redhat.com> --===============8422944108453530475== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: smumford Date: 2012-11-29 23:15:42 -0500 (Thu, 29 Nov 2012) New Revision: 8976 Modified: epp/docs/branches/5.2/Reference_Guide/en-US/modules/PortalDevelopment/Po= rtalLifecycle.xml epp/docs/branches/6.0/Reference_Guide/en-US/modules/PortalDevelopment/Po= rtalLifecycle.xml Log: BZ#807499: Added content about WCI advanced registration features Modified: epp/docs/branches/5.2/Reference_Guide/en-US/modules/PortalDevelop= ment/PortalLifecycle.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- epp/docs/branches/5.2/Reference_Guide/en-US/modules/PortalDevelopment/P= ortalLifecycle.xml 2012-11-30 03:20:53 UTC (rev 8975) +++ epp/docs/branches/5.2/Reference_Guide/en-US/modules/PortalDevelopment/P= ortalLifecycle.xml 2012-11-30 04:15:42 UTC (rev 8976) @@ -33,11 +33,11 @@ Advanced WCI Registration = - JBoss Portal Platform integrates with the web container to = perform tasks such as automatic detection and registration of web applicati= ons. This is used by the portal container to detect when portlets are deplo= yed and is accomplished through the WCI (Web Container Integration) compone= nt. + JBoss Enterprise Portal Platform integrates with the web co= ntainer to perform tasks such as automatic detection and registration of we= b applications. This is used by the portal container to detect when portlet= s are deployed and is accomplished through the WCI (Web Container Integrati= on) component. = - Some applications, especially Spring based portlets, may ha= ve requirements that specific servlets be started before any portlets are i= nitialized. Although portlets and servlet initialization order are meant to= be independent of each other, JBoss Portal Platform does have a way to get= around these limitations imposed by these specific third party application= s. + Some applications, especially Spring based portlets, may ha= ve requirements that specific servlets be started before any portlets are i= nitialized. Although portlets and servlet initialization order are meant to= be independent of each other, JBoss Enterprise Portal Platform does have a= way to get around these limitations imposed by these specific third party = applications. = @@ -76,7 +76,7 @@ = - Below is an example web.xml file configured to ens= ure the MyCustomServlet will be initialised before the webapp is registered= by WCI: + Below is an example web.xml f= ile configured to ensure the MyCustomServlet will = be initialized before the webapp is registered by WCI: Modified: epp/docs/branches/6.0/Reference_Guide/en-US/modules/PortalDevelop= ment/PortalLifecycle.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- epp/docs/branches/6.0/Reference_Guide/en-US/modules/PortalDevelopment/P= ortalLifecycle.xml 2012-11-30 03:20:53 UTC (rev 8975) +++ epp/docs/branches/6.0/Reference_Guide/en-US/modules/PortalDevelopment/P= ortalLifecycle.xml 2012-11-30 04:15:42 UTC (rev 8976) @@ -22,6 +22,86 @@ During deployment, JBoss Portal Platform will automatically an= d transparently inject a servlet into the portlet application to be able to= interact with it. This feature is dependent on the underlying servlet cont= ainer but will work out of the box on the proposed bundles. +
+ Advanced WCI Registration + = + + JBoss Portal Platform integrates with the web container to = perform tasks such as automatic detection and registration of web applicati= ons. This is used by the portal container to detect when portlets are deplo= yed and is accomplished through the WCI (Web Container Integration) compone= nt. + + = + + Some applications, especially Spring based portlets, may ha= ve requirements that specific servlets be started before any portlets are i= nitialized. Although portlets and servlet initialization order are meant to= be independent of each other, JBoss Portal Platform does have a way to get= around these limitations imposed by these specific third party application= s. + + = + + As a workaround to this issue, two new, advanced features h= ave been integrated into the WCI component; + + = + + + = + + Disabling Automatic registration + = + + + By default WCI will register all web applications = and the portlet container will then analyse the registered applications and= initialize any portlets contained. If you do not wish for your web applica= tion to be automatically registered by the WCI component you can disable th= is feature. By disabling this feature you can prevent the automatic initial= ization of the portlet and specify later when you want it to be initialized. + + = + + This is done by setting the gatein.wci.= native.DisableRegistration context-param to true in the web.xml file of the application, as shown = below: + + + + gatein.wci.native.DisableRegistration + true + +]]> + + + = + + Manual application deployment. + = + + + If you have disabled the automatic registration of= your application in the first step, the portal container will not know abo= ut any of the portlets contained and will not be able to initialize them. W= CI does have a servlet which can be used to manually register the web appli= cation. Since servlets can specify when they are deployed with regards to o= ther servlets, we can use this to specify that the web application gets reg= istered by WCI after another servlet has already been started. This means t= hat the a servlet, for example the Spring servlet, can be initialized befor= e any of the portlets. + + = + + Below is an example web.xml f= ile configured to ensure the MyCustomServlet will = be initialized before the webapp is registered by WCI: + + + + gatein.wci.native.DisableRegistration + true + +]]> + + + GateInServlet + org.gatein.wci.api.GateInServlet + 1 + +]]> + + + MyCustomServlet + my.custom.Servlet + 0 + +]]> + + + GateInServlet + /gateinservlet + +]]> + + + +
+