Skip to main content link. Accesskey S
  • Log In
  • Help
  • IBM Logo
  • WebSphere Portal Family wiki
  • All Wikis
  • All Forums
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • IBM Redbooks
Community Articles Product Documentation Learning Center IBM Redbooks This category IBM Redbooks: Building a Sample Website Using IBM Web Content Manager 7.0 IBM Redbooks: Building and Implementing a Social Portal IBM Redbooks: Developing Exceptional Multi-Channel Web Experiences V7: IBM Web Content Manager Product Documentation V7: IBM WebSphere Portal Enable for z/OS Product Documentation V7: IBM WebSphere Portal Express Product Documentation V7: WebSphere Portal Product Documentation V8: IBM Web Content Manager Product Documentation V8: IBM WebSphere Portal Express Product Documentation V8: IBM WebSphere Portal Product Documentation (includes z/OS) Custom Search Scope...
Search
Community Articles > IBM Accelerators for WebSphere Portal > IBM Mobile Portal Accelerator > How to use a MPA virtual Portal
  • New Article
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

Vinoo Varghese
Contribution Summary:
  • Articles authored: 4
  • Articles edited: 1
  • Comments Posted: 0

Recent articles by this author

MPA with EJB

Simple application displaying how MPA can work with EJB

Using javascript in MPA with XDIME1 and XDIME2 tags

This article describes how to use javascript with XDIME1 and XDIME2 tags in Mobile Portal Accelerator

Connections profile Portlet using XDIME2

This article describes how to use the sample portlet which makes use of the Connections Profiles API for viewing statuses,updating statuses and searching profiles

How to use a MPA virtual Portal

This article shows how to create a MPA virtual portal .

Community articleHow to use a MPA virtual Portal

Added by Vinoo Varghese | Edited by IBM contributor Vinoo Varghese on October 22, 2010 | Version 25
  • Edit
  • More Actions Show Menu▼
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars
expanded Abstract
collapsed Abstract
This article shows how to create a MPA virtual portal .
Tags: MPA, VP in MPA7.0, Virtual Portal in MPA 7.0
ShowTable of Contents
HideTable of Contents
  • 1 Introduction
  • 2 Prerequisites
  • 3 Steps for creating a Mobile Portal Accelerator Virtual Portal
  • 4 Accessing the MPA virtual portal
  • 5 Creating different virtual portals with different look and feels
  • 6 Creating the new aggregator policies
  • 7 Customizing the new aggregator policies
  • 8 Importing the new aggregator policies into the MCS Database and making changes to mwp.properties
  • 9 Accessing the virtual portal which contains the new aggregator policies

Introduction



Virtual portals enable you to deploy additional portals quickly on an existing infrastructure.With virtual portals, you can use a single installation of Mobile Portal Accelerator to deploy multiple portals with different URLs, anonymous pages, user groups, and look and feel. Advantages of using virtual portals include reusing existing hardware, and simplified administration of multiple portals.This article will show the procedure in creating a MPA virtual portal.

Prerequisites



To verify the creation of a MPA virtual portal  ,this article requires the following development environment:

Mobile Portal Accelerator 7.0 set up on WebSphere Portal 7.0

To verify the MPA virtual portal created, mobile simulators can be used.In this article,however we use the Mozilla firefox user-agents to verify the MPA virtual portal created.

Steps for creating a Mobile Portal Accelerator Virtual Portal



a) Login to the Portal Server using the credentials and go to the Portal Administration module.

b) Under the Portal Administration module,select the Manage Virtual Portal .Click on the Manage virtual portal link as shown in managevp.PNG image below.Once you click ,you will see the Virtual Portal Manager Portlet as shown in the virtualmanagerportlet.PNG image.

Image could not be displayed

Image could not be displayed


c) Click the portlet menu and select from  the list of options the Configure option as shown below

Image could not be displayed

The configure option should have in the "Xml script to create virtual portal content tree" textfield the following entry :  WebSphere:assetname=MWPVirtualPortal.zip:MWPInitVirtualPortal.xml


d) Open the portlet menu and select from  the list of options the Edit Shared option.Ensure that the textfield for the "Xml script to create virtual portal content tree" label contains the same value as mentioned in the configure option which is in step2. In other words,the entry should be WebSphere:assetname=MWPVirtualPortal.zip:MWPInitVirtualPortal.xml

e) Click on the New Virtual Portal button and you would see a screen as shown below

Image could not be displayed

f) Once the creation is successful you should see a screen below with a success message

Image could not be displayed


Accessing the MPA virtual portal



 Access the mpa virtual portal you just created now using the default  user agent (this could be the default user agent of the Firefox Mozilla Browser or even can be viewed using IE) .The view is shown below in the image vpusingdefaultuseragent.PNG.

Image could not be displayed

Now  access the same mpa virtual portal you just created now using a Blackberry 8800 user agent .The view is shown in the vpusingBB8800useragent.PNG image below.


Image could not be displayed


Creating different virtual portals with different look and feels



Each virtual portal can be given a different look and feel by modifying the aggregator policies or policy sets that it uses.

Virtual portals are associated with the appropriate policy set in the mwp.properties file. Multiple virtual portals can use the same policy set.

If a unique look and feel is not needed, the virtual portals can use the default policy set

The following section below shows you how this can be achieved.

Creating the new aggregator policies


The default policy set can be found at the location : wp_profile_root/PortalServer/wp.mobile/wp.mobile.mwp/policies/aggregator/ where wp_profile_root is the directory where

WebSphere® Portal is installed.

Change your working directory to  wp_profile_root/PortalServer/wp.mobile/wp.mobile.mwp/policies/aggregator/  where wp_profile_root is the directory where WebSphere® Portal is installed.

Create a new directory for the policy set you want to use eg. vp2.

Customizing the new aggregator policies



Copy the /wp directory and all of the policy files to the new directory which was created in step1 ie  vp2 .

Customize the different aggregator policies related to background color,font size,style and alignment

Importing the new aggregator policies into the MCS Database and making changes to mwp.properties



We need to make sure that the new policies are imported into the MCS DB.

Change your working directory to  wp_profile_root/ConfigEngine and run the command : ./ConfigEngine.sh mwp-import-policies or ConfigEngine.bat mwp-import-policies

Open the mwp.properties in a text editor.This file is usually found at the location wp_profile_root/PortalServer/wp.mobile/wp.mobile.mwp/shared/app/config location.

For the property mwp.virtual.portals, add the virtual portal URL context name to the value

Add the following property to the file and specify the policy set to use. In the following example, the first vp2 is the virtual portal name and the second vp2 is the directory name you created earlier.

Eg : mwp.vp.policyset.18_8000CB1A00U5D0IKQD9PHS1002=/vp2


note: 18_8000CB1A00U5D0IKQD9PHS1002 is the object id of the Virtual portal. To get the object id use the ConfigEngine[bat/sh] list-all-virtual-portals task

Save the changes and close the file

Accessing the virtual portal which contains the new aggregator policies


Restart the Portal Server and access the mpa virtual portal you created earlier : vp2 .


Image could not be displayed








  • Edit
  • More Actions Show Menu▼


expanded Attachments (8)
collapsed Attachments (8)
Edit the article to add or modify attachments.
File TypeSizeFile NameCreated On
image/x-png 127 KB configurempavp.PNG 9/24/10 2:08 AM
image/x-png 121 KB createvpscreen.PNG 9/24/10 2:08 AM
image/x-png 90 KB diffvpscreated.PNG 9/24/10 2:08 AM
image/x-png 81 KB managevp.PNG 9/24/10 2:08 AM
image/x-png 116 KB mpavpcreatesucess.PNG 9/24/10 2:08 AM
image/x-png 163 KB virtualmanagerportlet.PNG 9/24/10 2:08 AM
image/x-png 108 KB vpusingBB8800useragent.PNG 9/24/10 2:08 AM
image/x-png 112 KB vpusingdefaultuseragent.PNG 9/24/10 2:08 AM
expanded Versions (25)
collapsed Versions (25)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (25)Oct 22, 2010 5:49:35 AMVinoo Varghese  IBM contributor
23Oct 22, 2010 5:49:09 AMVinoo Varghese  IBM contributor
22Oct 12, 2010 5:17:30 AMVinoo Varghese  IBM contributor
22Oct 22, 2010 5:47:55 AMVinoo Varghese  IBM contributor
20Oct 12, 2010 5:09:41 AMVinoo Varghese  IBM contributor
20Oct 12, 2010 5:12:59 AMVinoo Varghese  IBM contributor
19Sep 24, 2010 8:28:24 AMVinoo Varghese  IBM contributor
18Sep 24, 2010 8:22:19 AMVinoo Varghese  IBM contributor
17Sep 24, 2010 8:19:50 AMVinoo Varghese  IBM contributor
16Sep 24, 2010 8:18:17 AMVinoo Varghese  IBM contributor
15Sep 24, 2010 8:12:17 AMVinoo Varghese  IBM contributor
14Sep 24, 2010 8:11:04 AMVinoo Varghese  IBM contributor
13Sep 24, 2010 5:49:50 AMMark Sandeep  IBM contributor
12Sep 24, 2010 5:46:35 AMMark Sandeep  IBM contributor
11Sep 24, 2010 5:40:46 AMMark Sandeep  IBM contributor
10Sep 24, 2010 4:06:31 AMMark Sandeep  IBM contributor
9Sep 24, 2010 4:04:56 AMMark Sandeep  IBM contributor
8Sep 24, 2010 3:55:44 AMVinoo Varghese  IBM contributor
7Sep 24, 2010 3:48:43 AMVinoo Varghese  IBM contributor
6Sep 24, 2010 3:05:48 AMMark Sandeep  IBM contributor
5Sep 24, 2010 3:01:47 AMMark Sandeep  IBM contributor
4Sep 24, 2010 2:57:40 AMMark Sandeep  IBM contributor
3Sep 24, 2010 2:17:50 AMVinoo Varghese  IBM contributor
2Sep 24, 2010 2:14:11 AMVinoo Varghese  IBM contributor
1Sep 24, 2010 2:08:39 AMVinoo Varghese  IBM contributor
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedHelpAbout
  • IBM Collaboration Solutions wikis
  • IBM developerWorks
  • IBM Software support
  • Twitter LinkIBMSocialBizUX on Twitter
  • FacebookIBMSocialBizUX on Facebook
  • ForumsLotus product forums
  • BlogsIBM Social Business UX blog
  • Community LinkIBM Collaboration Solutions
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Accessibility
  • IBM Terms of use
  • Wiki terms of use