Is it possible to deploy a non-portlet WAR file in JBOSS Portal?

98 views Asked by At

Recently I had to migrate a GWT portlets UIs to Angular2 UIs. The problem is that the application is huge containing plenty of modules (portlet-war files) which are embedded inside a JBoss Portal (v 2.7) as Tabs.

So to avoid the "tunnel effect" of the migration, our strategy consists of keeping the JBoss Portal and migrating the portlet-war files one by one (so that portlet-war files and non-portlet war files can coexist) until we totally get rid of the portal.

The problem is that after spending hours on searching if we can deploy a simple war (not a portlet) inside a JBoss Portal as a Tab, we didn't get any result...

So I'm asking if it is possible to deploy a non-portlet WAR file in Jboss Portal?

1

There are 1 answers

2
jpkroehling On

A Portal is composed of UI elements and portlets. I assume that each tab is a portlet in your portal, so, for an AngularJS application to be available there as a tab, you have to deploy it as a portlet.

A portlet can be as simple as a WAR file with a minimalist portlet.xml. Just package your AngularJS application into the WAR, add a simple portlet.xml to WEB-INF, and deploy it. Once it's deployed, you are able to add your AngularJS as a tab to your portal. You might want to take a look at the GateIn examples, like these:

https://github.com/gatein/gatein-portal/tree/master/examples/portlets/jquery

https://github.com/gatein/gatein-portal/tree/master/examples/portlets/simplesthelloworld