1 Reply Latest reply on Oct 29, 2010 3:45 AM by Armin Vogt

    Should we use Portlets+EJB3 for componentized enterprise app

    Armin Vogt Newbie

      We consider a design of uniform building blocks for an enterprise application portal, were the building blocks are EAR files that deliver UI as well as busines logic in one deployment. I'm interested in your opinion on this. Let me explain that:

      - we want to build up on the best practices and open standards
      - building blocks (one EAR) group business use cases
      - the portal presents the available use cases to the user as it chooses from the deployed use cases (that calls for some kind of registry, hopefully EJB jndi is sufficient)

      - we create portal pages for each instance of a use case (that gives the user something like tabbed browsing: one tab for each use case),
      - on that page there are several portlets from different EARs (!) that are grouped and controlled under guidance of one orchestrating building block (an EJB), while the portlet implementation remains within the boundaries of its EAR
      - a use case has a page flow
      - we have a portlet that has navigation menu for the page flow
      - we have on the use case portal page a working region where at one time there will only be one portlet displayed
      - the page flow is beyond JSF page flow: it can render various portlets on the working area. When the portlet (the jsf app within, to be exactly) finishes its user interaction, the page flow takes over and renders the next portlet in flow to the working area

      Why the efforts? We want to have those building blocks to be highly reusable, especially the UI must be reusable "as is"; the cohesion within the building block is high since it s coupled with its UI as well as with its database tier.

      What i need is some kind of injection of portlets within other portlets (or at least their controllers), so that one controller calls another when he likes to give him preset values and when he wants to extract return values from the portlets.

      In the Seam group I read warnings not to declare dependencies on EJBs from foreign ear files because of class loader issues, and I read that it was not possible to biject EJBs from foreign ears.

      So I was thinking about leveraging the Seam concepts to the Portal?
      I could imagine that portal page to be the visualization of something like a new SEAM context.

      Any opinions to that?

      Armin

        • 1. Re: Should we use Portlets+EJB3 for componentized enterprise app
          Armin Vogt Newbie

          a little update: we did it.

          We derived an architecture with multiple scoped ear files  hosting portlets and local/remote ejbs.

          the portal is made up of portlets that get connected via a stateful session bean being its controller.

          These are connected as remote or local injected sfsbs. The tree of injected sfsbs creates a tree of portlets

          which make up a portal page.

          Thus we created a portal-based application that is able to show the web interface to various business processes.

           

          Great technology, thanks all at Redhat/JBoss and to the community!

           

          Armin Vogt