3859

Adding custom portlets to UMP

Discussion created by 3859 on Jul 12, 2010

I have been doing a small amount of work with some of the Solution Partners that the Placement Center has been signing up. Some of these partners have their own products and services that they wish to have integrated into UMP. The most straight forward method is to add their application front-end GUI as a portlet. Normally liferay server gives you an area where you can upload new portlets (.WAR files) under “Control Panel” à “Plugins Installation”. However, in the UMP, there isn't a button for uploading a new portlet. You and/or your customers can still add custom portlets to UMP following the instructions below that I received from Mark Smith.

-------------------------------------------------------------------------------

You can add a webapp/portlet to UMP by doing the following:

 

 

Let call this webapp NewOne.

 

Drop your newone.war file into the directory :

 

   C:\Program Files\Nimsoft\probes\service\wasp\webapps

 

 

 

You must add an entry in the wasp.cfg file, in the <webapps> section, such as:

 

<webapps>

      ...

      <newone>

          reloadable = true

          cross_context = true

          load_on_startup = true

          unpack_war = true

          path = /newone

      </newone>

      ...

</webapps>

 

 

 

Note that the XML comment syntax is ** NOT ** allowed in this file.

Also, blank lines are ** NOT ** allowed in this file.

 

When adding a portlet, make sure there is not a duplicate path definition in the file.

 

 

When a webapp has been added you must:

    - Deactivate the wasp probe

    - wait until it has stopped

    - Activate the wasp probe

 

Once a webapp has been added to the wasp process, you can stop and start individual webapps in the wasp configuration GUI, including newone.

 

 

However there won't be a way for the user to deploy the new

webapp/portlet, as it won't be in our list of portlets in the Monitoring

section of Add Application.

 

So to make the new portlet appear in the portal, you'd have to login to

the portal and then use the  "WebContent" portlet that's in the  Add

Application -> Monitoring  section, and set the URL to:

 

   /newone/

 

 

This is how we do the Topology portlet.

 

Outcomes