Tuesday, July 31, 2012

Primavera P6-BPM Configuration

P6-BPM Configuration

Steps to integrate Primavera P6 with BPM Server:

  •  Login to P6 admin console:-  http://<host>:<port>/p6/action/adminconfig
  • Under configurations tab, expand ‘Custom’ tree.
  • Go to ‘Primavera P6 Configuration’ -> ‘Database’ -> ‘Insatnce[2]: Standard DB’ -> ‘BPM Settings’.
Configuration Screen

  • Under ‘BPM Settings’, Right-Click on BPM Configuration and Select Configure
BPM Settings

  • In BPM options table, provide details about BPM Server.

BPM Options
  • After changes, you will need to click OK here and Save on the previous screen.
  • Restart the P6 Server.

Monday, July 30, 2012

Web Service Security Policy

This blog explains about accessing Web Services secured with 'Useraname Token' policy:

‘Username Token’ is a WS security policy in which authentication information (user name and password) for accessing services, will be part of request xml header.

Corresponding Oracle WS Security policy is: 'oracle/wss_username_token_client_policy'

Java code to add information to request xml header:

 SecurityPoliciesFeature securityFeatures = new SecurityPoliciesFeature(new String[] { "oracle/wss_username_token_client_policy" });
 ProjectPortType projectPortType = projectService.getProjectPort(securityFeatures);
 Map<String, Object> reqContext = ((BindingProvider)projectPortType).getRequestContext();
 reqContext.put(BindingProvider.USERNAME_PROPERTY, "username");
 reqContext.put(BindingProvider.PASSWORD_PROPERTY, "password");

Friday, March 16, 2012

Unzip Multipart Archive in Linux

The post takes you through steps to unzip a multipart archive in Linux.
• Download binary file to install 7zip in linux:
url: http://sourceforge.net/projects/p7zip/files/p7zip/9.20.1/
file: p7zip_9.20.1_x86_linux_bin.tar.bz2

• Install 7zip.
Command to install 7zip: tar xvjf p7zip_9.20.1_x86_linux_bin.tar.bz2
Note: By default it will be installed in /usr/local/bin

• Run the command to unzip multipart archive.
Go to the location where you have multipart archive file and run following command.
$ /usr/locale/bin/7za x .zip.001

Command to create a multi-part archive:
Go to folder which you want to archive and run the following command.
$ /usr/local/bin/7z a <archive-name.7z> <folder_name> -v1024m


$ /usr/local/bin/7za a -v700m destination_file source_file