1 Reply Latest reply on Jul 30, 2009 11:44 AM by apemberton

    Packaging portlets for deployment

    webmascon

      I have 10 portlets for a portal

      I can deploy them one by one as WAR files - and this is working fine.

      But how about deploying all 10 portlets as a single package?

      I tried to use EAR package: JBoss portal deployed all portlets, but when I tried http://localhost:8080/portal/ I got a huge transaction exception

      Is there any way to roll out all portlets in a package?

        • 1. Re: Packaging portlets for deployment

          Yes, this is no problem. You can package all of your portlets inside a single .war file.

          You'll just define each portlet in your (single) portlet.xml file:

          <?xml version="1.0" encoding="UTF-8"?>
          <portlet-app ...>

          <display-name>PortletOne</display-name>
          <portlet-class>org.springframework.web.portlet.DispatcherPortlet</portlet-class>


          <display-name>PortletTwo</display-name>
          <portlet-class>org.springframework.web.portlet.DispatcherPortlet</portlet-class>

          </portlet-app>

          See the relevant portlet spec (either jsr168 or 286) for your portal server version. Hope this is helpful.