Wednesday, July 15, 2015

Webcenter Content (UCM) Integration with Oracle BPM


We can integrate Oracle Webcenter Content into Oracle SOA Server for integrating the document services with BPM Human Tasks.

As a first step we need to enable “Use Document Package” in the Human Task Configuration window in the JDeveloper.

1.       Open JDeveloper and open the BPM application.
2.       Go to the “BPM Project Navigator” à<BPM Application>àBusiness Catalog àHuman Tasks, and double click on the Human Task.
3.      In the configuration pane, select the vertical tab “Documents”
4.      Select the check box –“Use Document Package” and it will display the two more options below to it
a.      Security Group – Editable
b.      Document Type – Editable

Once we add this configuration, Human Task is able to communicate with WebCenter Content (UCM). But, we need to configure WebCenter Content in the SOA/BPM server through EM console.

1.       Open em console (http://<soa-host-name>:<port>/em) Eg: http://soa:7001/em
2.       Login with WebLogic credentials.
3.      Click on the Farm_<domain> tree structure in the left pane and it will show the option ”SOA”
4.      Expand SOA folder and click on soa-infra link and we can see the configuration window for SOA server in the right pane.
5.      Top, we can see one drop down “SOA Infrastructure” à “SOA Administration” à “Workflow Properties”
6.      In the page, we can see the link “More Workflow Notification Configuration Properties...” and it will redirect to the page “System MBean Browser”
7.      In the left pane of System MBean Browser, navigate to the human-workflow node – Application Defined MBeans àoracle.as. soainfra.configàServer: soa_server1à WorkflowConfigàhuman-workflow
8.      This will refresh the right pane and see the entry for “UcmIdcUrlhttp://soa:7001/em/adf/images/t.gif
9.      Configure the Webcenter Content URL in the right value section.
URL: idc://<ucm hostname>:<idc port>
Eg:- idc://webcenter:4444
10.   Click on “Apply” button

It is advisable to keep host entries in both the machines for both webcenter and SOA, so that there won’t be any issues in the host communication. Also, edit the Security Host Entry Filter for SOA IP .

SocketHostAddressSecurityFilter=127.0.0.1|0:0:0:0:0:0:0:1|SOA IP

Now we have configured the webcenter content id curl for communication, but we have not provided any user credentials for communicating.

1.       In the same em console left pane,  expand “Weblogic Domain” folder and select the weblogic node and it will open the configuration window in the right pane.
2.       Click on the drop down “Weblogic Domain” à Security à Credentials
3.      Click on “Create Map” and add “WF-ADMIN-USER” for the map name
4.      Click on “Create Key” and select the”WF-ADMIN-USER”, since we are creating the key for this map.
5.      Enter the username and password – It is advisable to keep weblogic user for this configuration.

Restart the SOA and Webcenter Content Server in order to see the changes.

Open the human task form (ADF page) and can see Document Service option  in the Attachments section. Click on the green plus button to add the attachments and select the option “Upload File to Webcenter Content”

1.       Provide the name
2.       Choose the file for uploading by clicking “Choose File” button
3.      Select Document Type
4.      Select “Account”
5.      Select “Security Group”
6.      Click on “OK” to upload the content


We can also see the same uploaded document for other BPM roles for downloading and viewing it.

Monday, July 13, 2015

Webcenter Portal 11.1.1.9 New Features

·         We used to install each component server separately and now it is simplifies with JSK. Download all the JSK components in sinlge directory and can run for creating the JSK.
·         Supports private cloud support
·         Portal on on-premise integration with portal on-cloud.
·         New light weight and responsive templates for mobile
·         New EL Expression Support – Particular rendition of an image and particular rendition in the content presenter templates.
·         Integration with framework folders – Using for integrating Webcenter content with Webcenter Portal
o   Over 1000 files in a folder
o   Can migrate from folders_g to FrameworkFolders
·         Integration with below Microsoft products
o   Microsoft Exchange 2010 – Calendar/Personal Events
o   Microsoft Office 2013 in Desktop Integration

o   Microsoft Internet Explorer 11

Monday, July 6, 2015

Webcenter Portal Content Presenter Display Template

Content Presenter Taskflows are incorporating the content from content server in the webcenter portal and webcenter portal framework applications.

Using Site Studio connection with JDeveloper (Details) , we can create the Site Studio Files. Initially, we will analyse the page requirements and we ill create the Asset Modelling Document. Based on this, we will create the Element Definition, Region Definition and Contributor Data File in Content Server. Contributor Data File will have the content to be displayed in the portal.

We need a content presenter display template in order to render the site studio file in the Portal Pages.

A Content Presenter Display Template is a jsff (JSF Page Fragment) file. Oracle webcenter portal and portal framework application provides many pre-built content presenter display template to render the content in various formats.

The content types can map to the site studio region definitions. When we map this into content presenter display templates, we need to know the Region Definition of the CDF files and the property names to map the content property with jsff elements or components.

Follow the below steps to create the content presenter display template.

1. Create the WebCenter Portal Framework application.
2. Create a new jsff page.
3. Add the below code in the jsff file.

<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
          xmlns:dt="http://xmlns.oracle.com/webcenter/content/templates"
version="2.1">
<dt:contentTemplateDef var="node">
    <af:panelGroupLayout id="pgl1">
      <af:outputText value="#{node.propertyMap['CATEGORY_TWOCL_ABTUS_RD:TEASERDESC'].asTextHtml}" id="ot1"/>
      <af:outputText value="#{node.propertyMap['CATEGORY_TWOCL_ABTUS_RD:IMAGE'].value}" id="ot3"/>
    </af:panelGroupLayout>
  </dt:contentTemplateDef>
</jsp:root>


In the above code,

CATEGORY_TWOCL_ABTUS_RD - is the Element Definition for the CDF file.

Region Definition Code:-

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<regionDefinition xmlns="http://www.oracle.com/sitestudio/Element/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.oracle.com/sitestudio/Element/ http://www.oracle.com/sitestudio/ss_element_definition.xsd">
    <elements>
        <elementReference location="IMAGE_ED" name="IMAGE">
            <property name="label" value="CATEGORY_TWOCL_ABTUS_RD"/>
            <property name="description" value=""/>
        </elementReference>
        <elementReference location="TEASER_DESC_ED" name="TEASERDESC">
            <property name="label" value="TEASER_DESC_ED"/>
            <property name="description" value=""/>
        </elementReference>
        <elementReference location=URLLIST_ED" name="URLLIST">
            <property name="label" value="URLLIST_ED"/>
            <property name="description" value=""/>
        </elementReference>
    </elements>
    <property name="description" value=""/>
    <dataProperty name="metadata"></dataProperty>
    <complexProperty name="switchregioncontent">
        <property name="createnewxml" value="true"/>
        <property name="createnewnative" value="false"/>
        <property name="choosemanaged" value="true"/>
        <property name="chooselocal" value="false"/>
        <property name="choosenone" value="false"/>
        <valueList name="createnewnativedoctypes"/>
        <complexProperty name="choosemanagedquerytext">
            <property name="corecontentonly" value="false"/>
            <dataProperty name="querytext">((xWebsiteObjectType &lt;matches&gt; `Data File`) &lt;and&gt; (xRegionDefinition &lt;matches&gt; `CATEGORY_TWOCL_ABTUS_RD`)) &lt;or&gt; (xWebsiteObjectType &lt;matches&gt; `Native Document`)</dataProperty>
        </complexProperty>
        <dataProperty name="defaultmetadata"></dataProperty>
    </complexProperty>
</regionDefinition>


We will create the CDF file based on this Region Definition. below are the code for Contributor Data File.

<?xml version="1.0" encoding="UTF-8"?>
<wcm:root version="8.0.0.0" xmlns:wcm="http://www.stellent.com/wcm-data/ns/8.0.0">
<wcm:element name="IMAGE">&lt;img src="[!--$wcmUrl('resource','ABOUTUSSAMPLEIMAGE')--]" alt="ABOUTUSSAMPLEIMAGE.jpg" /&gt;</wcm:element>
<wcm:element name="TEASERDESC">Teaser Description</wcm:element>
<wcm:list name="URLLIST">

<wcm:row>
    <wcm:element name="URLTEXT">URL1</wcm:element>
    <wcm:element name="URLLINK">URL1</wcm:element>
</wcm:row>

<wcm:row>
    <wcm:element name="URLTEXT">URL2</wcm:element>
    <wcm:element name="URLLINK">URL2</wcm:element>
</wcm:row>
   
<wcm:row>
    <wcm:element name="URLTEXT">URL3</wcm:element>
    <wcm:element name="URLLINK">URL3</wcm:element>
</wcm:row>
   
<wcm:row>
    <wcm:element name="URLTEXT">URL4</wcm:element>
    <wcm:element name="URLLINK">URL4</wcm:element>
</wcm:row>

</wcm:list>

</wcm:root>


The above CDF file will be created in the content server. This CDF file can be inserted in the portal pages during design time or runtime. For that, we need a ucm connection.

Once we add the contributor data file, we need to select the content presenter display template. For that we need to add this jsff file as portal resource.

Right click on the jsff file and select 'Create Portal Resource'.

Select the Display Name and View ID. This View ID is required to set the content presenter display template in the design time.

Once the content presenter display template is added, we need to login to the portal application or portal framework application and go to the shared assets. We need to make visible this content presenter display template for the portal application in the administration window.

After that select the content presenter display template to view the content in the portal pages.


Webcenter Portal 11.1.1.8 Integration with BPM Process Spaces

Please go to the below link to access the integration details. I have done the WebCenter Portal integration with BPM process spaces in the below versions. I have kept Webcenter and SOA in separate machines and that is the most difficult part for this integration.

1. 11gPS7 - 11.1.1.8
2. 11gPS4 - 11.1.1.6
3. 11gPS3 - 11.1.1.4

Click Here

IBR Configuration in UCM Server

Start the Oracle Content and IBR Managed Servers.

We need to setup Oracle Webcenter Content Server to send jobs to IBR for conversion.

As a first step, we need to create an outgoing provider .

1. Open Content Server (http://hostname:16200/cs)
2. Go to 'Administration' menu and choose 'Providers'
3. In the create new provider section, click 'Add' in the outgoing row.
4. Enter the values for the below fields.
    Provider Name : IBROutgoingProvider
    Provider Description : IBR Outgoing Provider
    Instance Name : IBROutgoingProvider
    Server Host Name : Host Name of the IBR Machine
    HTTP Server Address : http://<webcenter>:16250
    Server port : 5555
    Relative Web Root : /ibr/
    Select the check box for 'Handles Inbound Refinery Conversion Jobs
    Do not select the checkbox for 'Refinery read-only mode'
    Manimum Jobs to Queue : 100
5.submit the form and restart the IBR Server and Content Server

Once the connection is established, we can see the entries in IBR Active agents.

Sunday, July 5, 2015

Enable Full text Search in WebCenter Content (UCM)

To enable the full text search in Webcenter Content, please follow the below steps.

1. Modify the Configuration File and append the below line.

$cd <WC Installation Path>/user_projects/domain/<domain_name>/ucm/cs/config/config.cfg

SearchIndexerEngineName=DATABASE.FULLTEXT

Restart the Content Server

We need to reindex the Content server data

Open content server --> Administration tab -->Admin Applets -->Repository Manager -->
index tab,

in the automatic update cycle--> click 'Start'

Once it is finished,

in the collection rebuild cycle --> click 'Start'

Once it is finished, it is advisable to start the content server and webcenter portal managed servers.

Configure VNC Server on Linux


Edit /etc/sysconfig/vncservers file to configure the required displays

VNCSERVERS ="2:root 3:oracle"
VNCSERVERARGS[2] = "-geometry 1280x1024 -nolisten tcp -localhost"
VNCSERVERARGS[3] = "-geometry 1280x1024"

Set the VncPassword for the above users.

$vncpasswd

$su - oracle
$vncpasswd
$exit

Enable the VNC Server service for auto start and start the service

$chkconfig vncserver on
$service vncserver start

To stop the service and disable auto start
$service vncserver stop
$chkconfig vncserver off


Weblogic Server 10.3.6 Installation and Administration

The standard JDK installation is fine for the Development Environment. JRockit installation is preferred for the Production Environment.

Edit the host entries in the /etc/hosts file with root user before starting the installation.

Create new group and user for weblogic server installation.

$groupadd -g 1000 oinstall
$useradd -u 1100 -g oinstall oracle
$passwd oracle

Provide password for oracle user.

Create the directories in which the Oracle software will be installed.

$mkdir -p /u01/app/oracle/product/fmw11g
$mkdir -p /u01/app/oracle/config/domains
$mkdir -p /u01/app/oracle/config/applications
chown -R oracle:oinstall /u01
chmod -R 775 /u01/

Append the below entries in /etc/profile file

export MW_HOME=/u01/app/oracle/product/fmw11g
export WLS_HOME=$MW_HOME/wlserver_10.3
export WL_HOME=$WLS_HOME

Amend the /etc/security/limits.d/ao-nproc.conf

from
      *        soft      nproc      1024
To
      *        -          nproc        16384


Run the installer as oracle user

$JAVA_HOME/bin/java -Xmx1024m -jar wls1036_generic.jar

Enter the Middleware Home

/u01/app/app/oracle/product/fmw11g

Start the Node Manager

$nohup $WLS_HOME/server/bin/StartNodeManager.sh

Start Weblogic Server

$nohup $WLS_HOME/domains/<domain>/bin/StartWebLogic.sh

Stop Weblogic Server

$nohup $WLS_HOME/domains/<domain>/bin/StopWebLogic.sh

Start Managed WebLogic Server

$nohup $WLS_HOME/domains/<domain>/bin/StartManagedWebLogic.sh <Managed Server>

Stop Managed Weblogic Server

$nohup $WLS_HOME/domains/<domain>/bin/StopManagedWebLogic.sh <Managed Server>





JRockit JDK on Linuz

Download the JRockit bin package from Oracle site.

Make the file executable and run it

$chmod u+x jrockit-jdk1.6.0_45-R28.2.7-4.1.0-linux-x64.bin
$./jrockit...

Choose the Production Installation directory.

Set the JAVA_HOME and export it in /etc/profile file.

Site Studio Development with JDeveloper

Oracle WebCenter Portal and Content stack is slowly removing the dependency with Oracle Site Studio External Sites and promoting WebCenter sites.

But, we can connect the Site Studio with JDeveloper to create the Site Studio Files in order to display static content and dynamic contents in WebCenter portal. Using site studio contributor data file in WebCenter Portal application, content editor can edit the content at run time using Site Studio Contributor Mode.

We need to download the below packages from ucm installation directory and then load with JDeveloper.

Path :- <UCM Installation Directory>\ucm\Distribution\SiteStudioExternalApplications\jdev

1. oracle.ucm.wcm.jdev-11.1.1.zip

Follow the below steps to incorporate the same packages downloaded in JDeveloper.

1. Open JDeveloper and go to Help Menu and select 'Check For Updates'
2. Click 'Next' on the update wizard Step 1
3. Click the Radio Button 'Install From Local File' and browse the above zip file and install it.

It is advisable to restart the JDeveloper for any extension changes.

Once the Site Studio is completely added, we can see the Site Studio Entry in JDeveloper 'View' menu.

Create a new JDeveloper Generic Project and add the Site Studio Technologies as technology stack.

Once the project is created, we can create a site studio connection  with Projects 'Application Resources Connection'.

Right click 'Connection ' --> New Connection --> Site Studio

Connection Name - Host name of the WebCenter Content.

Specify the Credentials for JDeveloper Session and test the connection.

Once the connection has been successfully established,  right click on the connection and add to the project.

Now we can create below Site Studio Files for our Webcenter portal Project.

1. Element Definitions
2. Region Definitions
3. Contributor Data Files


Thursday, January 31, 2013

Start two tomcat server instances in one machine

Here I am explaining how we can start two tomcat server instances in a single machine. Here I have configured tomcat instances for windows operating system, and edit the corresponding .sh files instead of .bat files for linux operating system.


To start two tomcat server instances in one machine, we need to edit the following configuration files.

1. Edit server.xml, tomcatfolder/conf/server.xml and edit the following entries,

<Server port="8005" shutdown="SHUTDOWN">

Change 8005 to another port number, say 9005

<Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
Change 8080 to another port, 8081

<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
change 8009 to another port, say 9009

2. Edit Server listener port. Default it is 8000

catalina.bat, tomcatfolder/bin/catalina.bat and edit the following entry

set JPDA_ADDRESS=8000

Change 8000 to 9000

startup.bat, tomcatfolder/bin/startup.bat and edit the following entry

set JPDA_ADDRESS=8000

Change 8000 to 9000

Now start both the tomcat servers one by one.

Tuesday, January 22, 2013

(13)Permission denied: make_sock: could not bind to address [::]:80

After installing and configuring the Apache on Linux, we may get this error while starting the Apache server.

To solve this, please check your user which logged with Linux  Permission denied means the current user does not have authority for this function. Root user can only bind with lower port addresses. Please login with root user and start the Apache server.

To know more about apace server installation and configuration, please follow my previous blogs.

Installation

Configuration

Webcenter Content integration with Webcenter Portal Spaces 11.1.1.6


Before integrating the webcenter content and webcenter portal, login webcenter content (http://<hostname>:<port>/cs).

If it is the first time access, please provide the intradoc port (4444) and ipfilter (allows remote access) details.

Go to 'Administration' --> 'Admin Server'

This will open in a new window.The main problem for this error is folders_g is not enabled and Framework folders might have enabled. But for creating a connection with webcenter portal framework or with webcenter spaces, we need
folders_g, then only we will get Contribution folder.

Select 'Folders' radio button, uncheck 'Framework Folders' checkbox. Then select 'Integration' radio button and check 'Webcenter Configure' checkbox.

After that goto top of the page and click on 'advanced component manager',

come to the enabled feature session, select Framework folders and disable it.
Come to the disabled feature session, select folders_g in the list and enable it.

Update the details.
This is prompting us to restart the content server for activating the changes. We will restart the server after the below changes.

Otherwise (if you had already accessed the page and if you forgot to provide the details), you can edit the intradoc port an in em console.
Login em console(http://<hostname>:7001/em)
Go to 'Webcenter' --> 'Content' --> 'Content Server' --> 'Oracle Webcenter Content - content server (UCM_server1)' and click on it.

Click on the 'Content Server' drop down, and click 'Configuration'.Provide the relevant details on each field. In IP Address filter, provide webcenter portal machine ip address also.
Apply the changes.

Go to 'Webcenter' --> 'Portal' --> 'Spaces' --> 'webcenter(11.1.1.4.0)(WC_Spaces) and click on it.
Go to 'Webcenter portl' dropdown box --> 'Settings' -->'Service Configuration'
Click on 'Content Repository' --> 'Add' and check the below entries for filling the details,

Connection name : Name for the integration. Provide any meaningful name.
Repository Type : Oracle Content Server
Active Connection - check the checkbox

Content Administrator - weblogic
Root Folder - /Webcenter1
Application name - WC1

RIDC Socket Type : Socket
Server host : Webcenter content runing host name
Server port : Intradoc Port number (Generally -  4444)

Webcenter Context root - cs
Administrator username - sysadmin

test the connection and apply the changes.

After this stop webcenter spaces and webcenter content managed servers and start webcenter content and then webcenter spaces managed servers.

Login webcenter spaces and check the document services for seeing the content integration.

Monday, January 21, 2013

Oracle database environment variables

Login with root user.

Open /etc/profile
     
        #vi /etc/profile

Add the following lines in profile before exporting the PATH environment variable. This will set the oracle database environment variables.


export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
export ORACLE_SID=XE
export NLS_LANG=`$ORACLE_HOME/bin/nls_lang.sh`
export PATH=$ORACLE_HOME/bin:$PATH

Thursday, January 17, 2013

VirtualBox webcenter Image - Introduction

Oracle VirtualBox session 2

In this session, I would like to explain how we can create a fully fledged Oracle webcenter vitualbox image.

For the Virtualbox introduction details, please cover my previous blog before get into this :)  since this is a series of session and it is advisable to follow from beginning.


Now we have installed Virtualbox on my windows 7 machine and I want a working environment for Oracle webcenter portal. 

Now we are going to create the virtualbox image for oracle webcenter portal and it requires the following set of components.

1. Operating system – Linux
a. Flavor – Oracle Enterprise Linux
b. Version – 6
c. Address bit – 64 bit

2. Database – Oracle
a. Flavor – Express Edition
b. Version – 11g

3. Oracle Fusion Middleware Repository Creation Utility 11g (11.1.1.6.0) for Linux x86
For loading the database schema for the oracle webcenter suite products.\

4. Oracle WebLogic Server 11gR1
Application server

5. Oracle WebCenter Portal 11g Patch Set 5
Webcenter Portal contains portal framework, spaces, discussion server, portlet and pagelets.

6. Oracle WebCenter Content 11g
Universal content management, re branded to webcenter content

7. Oracle JDeveloper 11g and Oracle Application Development Framework 11g (11.1.1.6.0)
                          Framework for developing adf, portal framework applications and customizing fmw products.
   
    After installing the Oracle virtualbox, we need to set preferences. Otherwise our images will store in ‘C:\Users\gireesh\VirtualBox VMs’ folder. To keep the machines in our directory, please set the Default machine folder.




We will continue this session and will create and configure a fully fledged webcenter portal image. 
    




VirtualBox - An Introduction.

Oracle VirtualBox session 1

I will cover these information in different sessions as I am configuring a full fledged webcenter virtualbox image. In this session I will cover the basic features of virtualbox, virtualization and virtualbox installation.

Here I would like to discuss about Oracle virtualbox, its features and how virtualbox can support us. Before get into the virtuabox introduction, we will download and install the virtualbox software into our machine.


I have downloaded VirtualBox-4.2.6-82870-Win.exe from https://www.virtualbox.org/wiki/Downloads website and started installing the virtual box in my machine.

Please follow the below screenshots for more clarification.






 





 Virtualbox installation is over and I am starting the virtual box.


Let us explore the features and functionality of virtual box.

Virtual box is a software for supporting cross platform virtualization. Now what is virtualization ?

Previously we were installing sotwares on the physical machine and once our work was done we used to uninstall the softwares and install another set of softwares for next work. This was a very time consuming process and multiple works cannot be done simultaneously. To avoid these issues, industry released a new term ‘virtualization’.

Using virtualization concepts, we can create a virtual images on the physical machine and that will utilize or extend the physical machine resources. And we can create images with any operating system and any set of softwares. While working with virtual box, it would be advisable to know the following terms because we always use those terms for communication.

Host Machine – It’s the physical machine.

Host operating system (Host OS) – The operating system running in the physical machine.

Guest Machine/Virtual Machine – It’s the virtual box image

Guest OS – The operating system running in the virtual box image.

Guest additions – It is special software designed for guest os to improve the performance and providing additional functionality.

Import Virtual Machine – The virtual machine or image is already developed by some at different lace and if we want to use that machine here, we need to import the virtual machine files with existing configuration or settings.

Export Virtual Machine – The virtual image we have developed for other people. While exporting, the image will keep all the settings and configurations as such.


Tuesday, January 15, 2013

Display username in wsrp portlet that integrated in webcenter portal


We need to display the security context logged in username in portlet , that is integrated with webcenter portal application. The portlet application does not have security context initialized, so it should pick it from the portal security.

We have two application for this exercise.

1. Create a portlet application.

We have multiple ways to create a WSRP portlet application.
Example :

1. Create Fusion middleware application, create adf taskflow and convert it to portlet entry
2. Create 'Webcenter Portal - Portlet producer application

Here I am following  second approach, since most of us know the first approach well.

After creating the webcenter portlet producer application, create a JSR286 portlet and select jspx for view.








Edit the view.jspx with the following entries,

<?xml version='1.0' encoding='windows-1252'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
  <jsp:directive.page contentType="text/html;charset=windows-1252"/>

  <f:view>
    <af:document>
      <af:form>
      <af:panelGroupLayout id="pgl1" layout="vertical">
     
        <af:outputText value="username is" id="ot3"/>
        <af:outputText value="#{securityContext.userName}" id="ot4"/>
        </af:panelGroupLayout>
      </af:form>
    </af:document>
  </f:view>
</jsp:root>


Open portlet.xml, and add the container runtime options as 'com.oracle.portlet.useWsrpUserContextForUserAuthenticationInfo' and value is 'true'

Now we can deploy the application and will go to the second application.


If you want to know how to develop a portlet producer application step by step, click here

2. Create a Portal application

Create a webcenter portal framework application and create an authenticated page. Create a WSRP producer in application resources connection and register with the
abover portlets wsdl.

Run the application, and login with application server user and you can see that the portlet is displaying the logged in username.

Download the source projects from here