From do-not-reply at jboss.org Thu Nov 29 21:05:40 2012
Content-Type: multipart/mixed; boundary="===============1075230546173492045=="
MIME-Version: 1.0
From: do-not-reply at jboss.org
To: gatein-commits at lists.jboss.org
Subject: [gatein-commits] gatein SVN: r8974 -
epp/docs/branches/5.2/Reference_Guide/en-US/modules/PortalDevelopment.
Date: Thu, 29 Nov 2012 21:05:39 -0500
Message-ID: <201211300205.qAU25dHW009886@svn01.web.mwc.hst.phx2.redhat.com>
--===============1075230546173492045==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: smumford
Date: 2012-11-29 21:05:39 -0500 (Thu, 29 Nov 2012)
New Revision: 8974
Modified:
epp/docs/branches/5.2/Reference_Guide/en-US/modules/PortalDevelopment/Po=
rtalLifecycle.xml
Log:
BZ#807499: Added SME approved content regarding advanced WCI 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-28 20:39:30 UTC (rev 8973)
+++ epp/docs/branches/5.2/Reference_Guide/en-US/modules/PortalDevelopment/P=
ortalLifecycle.xml 2012-11-30 02:05:39 UTC (rev 8974)
@@ -28,6 +28,86 @@
During deployment, JBoss Enterprise Portal Platform will autom=
atically and transparently inject a servlet into the portlet application to=
be able to interact with it. This feature is dependent on the underlying s=
ervlet container 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 file configured to ens=
ure the MyCustomServlet will be initialised 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
+
+]]>
+
+
+
+