Title: Dissecting JBoss Portal deployment descriptors
1Dissecting JBoss Portal deployment descriptors
-portal.xml
First token of the instance-ref node maps to the
application name. In this case it is defined for
the portal in jboss-app.xml. For the
helloworld.war, it assumes the name of the war,
unless overriden in a jboss-app.xml.
lt?xml version"1.0" encoding"UTF-8"?gt
ltwindowgt ltwindow-namegtUserPortletW
indow1lt/window-namegt
ltinstance-refgtportal.UserPortlet.UserPortletInstan
celt/instance-refgt
ltregiongtleftlt/regiongt
ltheightgt0lt/heightgt lt/windowgt
ltwindowgt ltwindow-namegtHelloWorl
dPortletWindowlt/window-namegt
ltinstance-refgthelloworld.HelloWorldPortlet.HelloWo
rldPortletInstancelt/instance-refgt
ltdefaultgttruelt/defaultgt
ltregiongtleftlt/regiongt
ltheightgt3lt/heightgt lt/windowgt
lt/pagegt
-portlet.xml
lt?xml version"1.0" encoding"UTF-8"?gt ltportlet-ap
p xmlns"http//java.sun.com/xml/ns/portlet/portle
t-app_1_0.xsd" xmlnsxsi"http//www.w3.org/2001/X
MLSchema-instance" xsischemaLocation"http//java
.sun.com/xml/ns/portlet/portlet-app_1_0.xsd
/opt/SUNWps/dtd/portlet.xsd" version"1.0"gt
ltportletgt ltportlet-namegtHelloWorldPortletlt/p
ortlet-namegt ltportlet-classgtorg.jboss.portle
t.helloworld.HelloWorldlt/portlet-classgt
ltsupported-localegtenlt/supported-localegt
lt!-- ltresource-bundlegtResourcelt/resource-bundlegt
--gt ltsupportsgt ltmime-typegttext/html
lt/mime-typegt ltportlet-modegtVIEWlt/portlet-
modegt lt/supportsgt ltportlet-infogt
lttitlegtMy HelloWorld Portletlt/titlegt
lt/portlet-infogt lt/portletgt lt/portlet-appgt
Portlet-instances.xml
lt?xml version"1.0" standalone"yes"?gt ltinstancesgt
ltinstancegt ltinstance-namegtHelloWorldPort
letInstancelt/instance-namegt
ltcomponent-refgtHelloWorldPortletlt/component-refgt
lt/instancegt lt/instancesgt