4 Replies Latest reply on Jun 8, 2009 10:34 AM by stoussaint78

    JBoss Portal as a Portlet oriented Application

    stoussaint78

      Hi,

      I'm currently trying to answer a question. Is JBP designed to fit my requirements ?

      I don't really want to use JBP as a Web Site Portal but like an Application composed by a few Portlets.

      Portlets seems to be the component I'm looking for. It permits me to create some modular features like a Chat, a File repository, etc. and add them to the portal.

      As an extra, JBP comes with a built-in authentication support.

      But I don't really see how I can manage my portal to be the application. How it is build, how it is deployed, how web integration work (css, javascript) is include in those processes.

      In fact the question is which sort off package must my application be ? A war or something like the jboss-portal.sar

      Is there some documentations or online experiences of Application Oriented usage of JBP

      Thanks in advance as I'm a little dazed with all this right now.

        • 1. Re: JBoss Portal as a Portlet oriented Application
          peterj

          I think you can do what you want. Write your portlets (chat, file repos, etc) and then package a custom portal with the "admin" stuff disabled.

          See my JBossWorld presentation on creating a custom portal, that might give you some ideas on what you could do.
          http://www.jboss.org/community/wiki/CustomPortal

          • 2. Re: JBoss Portal as a Portlet oriented Application

            Packaging a portlet is very similar to a standard JavaEE web app, except it includes a portlet.xml (in addition to the standard web.xml).

            Typically portlets are packaged as WAR files, the structure of which is defined by JSR168 / 286: http://jcp.org/en/jsr/detail?id=286

            I recommend giving the spec(s) a read to help you move along; good luck!

            • 3. Re: JBoss Portal as a Portlet oriented Application
              stoussaint78

              It's not the portlet packaging which dazed me, but more the portal packaging. A bundle with portlets, themes, layout, sso, etc.

              After reading Peter presentation, I think I'm able to package my application as an EAR which will contains portlets and themes and then use scripts to update the principal SAR (commonly jboss-portal) tu use my embedded themes and to remove unwanted features.

              Peter, thank you for your presentation

              Thanks for help

              • 4. Re: JBoss Portal as a Portlet oriented Application
                stoussaint78

                I'm almost happy of my application building within JBoss portal but I encounter a somewhat complicated problem. I want to use a ThirdParty application which will embed the Authentication business. This Application is a sort of SSO handler with a backoffice application where we can add User And Role.

                I can successfully authenticated myself thanks to a JAAS LoginModule available for this application, but the portal failed if the User is registered with another Role than Admin or User and I can't see any exception in the log file.