6 Replies Latest reply on Dec 15, 2005 5:34 PM by Woodler

    Existing web applications integrating JBoss Portal

    swathish g Newbie

      I would like to know what are the possibilities to migrate an existing web application into a portlet applicated deployed in JBoss Portal ?
      The application is a Struts based application. So, there is only a unique servlet to modify (I think)... That's why I would like to know if it is enough to modify the Struts servlet into a JBoss portlet, to make the application work in the new environment ?
      The web application is an ear package which works good on JBoss.

        • 1. Re: Existing web applications integrating JBoss Portal
          Alexander Grünewald Newbie

          I never used it, but for this task there is a "JBoss Portal Struts-Bridge". I think this should enable you to deploy your struts application as portlet with minimum efford.

          There is a Struts-Bridge demo at http://labs.jboss.com/portal/index.html?ctrl:id=page.default.downloads&project=portletswap&category=.portlets.framework

          • 2. Re: Existing web applications integrating JBoss Portal
            swathish g Newbie

            Thanks for the reply. I have used struts-brigde and make my application as portlet. Now I have different applications which are developed using struts. How can I integrate these different application into single portal?
            Please help me.

            • 3. Re: Existing web applications integrating JBoss Portal
              Alexander Grünewald Newbie

              I guess that you should edit the XML deployment descriptors to configure/setup your portal. With JBoss Portal 2.2 these are the files with names like WEB-INF/xxxxx-portal.xml and WEB-INF/yyyyyy-object.xml. You should deploy them with one of your portlet applications. So what these files are doing? They define the portal structure for instance theme, layout, pages and of course the portlets arranged on the pages. The XML descriptor files are well documented at http://www.jboss.org/products/jbossportal/docs
              You could also look at the files already deliverd with JBoss Portal, which are:

              JBOSS_PORTAL_2.2//server/default/deploy/jboss-portal.sar/portal-core.war/WEB-INF/default-portal.xml
              JBOSS_PORTAL_2.2/server/default/deploy/jboss-portal.sar/portal-samples.war/WEB-INF/default-object.xml

              Possibly there is also a way to arrange portlets on pages using an administration portlet of JBoss Portal. But i never tried that.

              • 4. Re: Existing web applications integrating JBoss Portal
                swathish g Newbie

                Thank you very much for your reply. I have successfully executed 4 different portlets in one portal. In this case all portlets are build in same .war file and in the same server. I have tried all these things to acheive my requirement. But I did not get a solution for that.
                In my case, all different applications are existing in their own .war files. How can integrate multiple .war files into one portal. Do I need to write something WSRP files. IF I need to do so, then please let me know what are the steps I should follow. What files I need to update.
                I am very much thankful to you if you could help me in this regards.

                Thanks.

                • 5. Re: Existing different web applications integrating JBoss Po
                  swathish g Newbie

                   

                  "swathish" wrote:
                  I have successfully created and executed 4 different sample portlets and integrated in one page. In this case all portlets are built in same .war file and deployed in the same jboss server. I have tried all these things to acheive my requirement. But I did not get a solution for my requirement.
                  In my scenario:
                  the requirement is, all different applications are existing in their own .war files. How can I integrate multiple .war files into one portal and access them from my portal. Do I need to write something related to WSRP files. If I have to do so, then please let me know what are the steps I should follow in the jboss portal server. What are the files I need to update.

                  please help.

                  .


                  • 6. Re: Existing web applications integrating JBoss Portal
                    Woodler Expert

                    not sure about the struts bridge, but the portal allows you to deploy separate wars containing portlet artifacts. You can do that with portlets, page, portals, themes, layouts, etc.
                    All that should be required is the appropriate descriptor bundled into the war you deploy. So for example, if your war contains a WEB-INF/myportal-object.xml descriptor, then all the portals, pages, instance defined in there should be available to the portal after deployment.