| Last Updated: | June 16, 2003 |
| Status: | Production |
| Version: | PDK Release 2, version 9.0.2.6.1 |
Introduction
Contents of PDK.zip
Contents of the jpdk Directory
Contents of the libcommon Directory
Deploying the PDK-Java Sample Providers
Deploying Using Oracle Enterprise Manager (OEM)
Manually Deploying to an Oracle9iAS Instance Using dcmctl
Manually Deploying to a Stand-Alone OC4J Instance
Testing the Deployment
Setting Deployment Properties
Registering the Sample Providers
Deploying Your Own Providers
Welcome to the PDK-Java. The PDK-Java Framework includes the tools and documentation to build Web portlets. This download includes the PDK-Java Framework and Web Provider Samples to help you get started. You can use the PDK-Java framework to develop your own web providers and portlets. Please refer to the PDK documentation on Web Providers for more information.
This document is an installation and configuration guide for the PDK-Java Framework and samples. It explains how to
The PDK-Java and sample providers are part of the Portal Developers Kit (PDK). To begin the installation process you first need to unzip the file called pdk.zip into a directory located on the same machine as your Oracle9iAS Application Server or OC4J instance. (The remainder of the instructions contained in this document will refer to this directory to as $unzip_directory.) Unzipping pdk.zip in the $unzip_directory creates the following directory structure:
pdk
The jpdk directory is created under $unzip_directory/pdk and contains all the files required by the PDK-Java sample providers. The following files are included in this directory:
The libcommon directory is created under $unzip_directory/pdk and contains libraries shared by different components contained in in pdk.zip. The following files (with path information) are included in this directory:
The steps for deploying the PDK-Java Sample Providers differ depending on where you want to deploy the PDK-Java Samples.
If you are installing into an Oracle9iAS instance there may be more than one OC4J instance configured. You must choose the OC4J instance you want to use for this application.
If you have Oracle9iAS with Portal installed, the PDK-Java Sample Providers are already installed in the "OC4J_Portal" instance. You can update these providers by deploying the new jpdk.ear on top of the existing one.
If Oracle Portal is not installed, you should use the "OC4J_HOME" instance. You should also use this instance (or another instance you have created) when deploying your own web providers.
If you do not have one of these configurations, either install and configure them according to their respective installation instructions or follow the appropriate manual deployment instructions for Oracle9iAS or standalone OC4J.
$OC4J_HOME/portal/jlib
$OC4J_HOME/webcache/jlib
Notes:
This step should only be required if you are using a standalone OC4J
instance. $OC4J_HOME is the root directory of
your OC4J installation. You will find directories named "bin",
"j2ee", "javacache",
"jdbc" etc. under this directory.
../../../../portal/jlib/pdkjava.jar
../../../../portal/jlib/ptlshare.jar
../../../../webcache/jlib/jawc.jar
../../jazn.jar
../jlib/ldapjclnt9.jar
The PDK-Java v2 Sample Providers are now deployed. Please proceed to Testing the Deployment
This section assumes that you already have Oracle9iAS installed but you do not have OEM installed (or you wish to deploy the provider manually without using OEM). Before deploying the PDK-Java Sample Providers you must decide which OC4J instance in your Oracle9iAS installation you want to use. This instance will be referred to as <OC4J_instance> from here on).
If you do not have an Oracle9iAS installation, either install and configure Oracle9iAS according to the installation instructions or choose one of the OC4J standalone deployment methods.
Warning: Before using dcmctl to manage an Oracle9iAS instance, make sure there are no OEM processes managing that same instance. If multiple processes are managing the same instance, there is a risk of inconsistencies or corruption of the data used to manage the instance.
Copy all the latest PDK-Java jar files to your Oracle9iAS home.
The jar files are included in $unzip_directory/pdk/libcommon/portal/jlib.
The other jar files included in the libcommon
directory are included for installation in a standalone OC4J instance. Oracle9iAS
installations already include all the jar files needed by the PDK-Java
copy $unzip_directory/pdk/libcommon/portal/jlib/* to
$IAS_HOME/portal/jlib/
Notes
$unzip_directory denotes the directory where you
have unzipped the pdk.zip. The libraries and the components to which they
belong are described above.
$IAS_HOME/dcm/bin/dcmctl deployApplication -v -f {earFilePath} -a {applicationName} -co {OC4JInstanceName}
where:eg dcmctl deployApplication -v -f $unzip_directory/jpdk/v2/jpdk.ear -a jpdk -co OC4J_Portal
You can also use dcmctl to redeploy or undeploy an application or perform a variety of other Oracle9iAS administrative tasks.
$IAS_HOME/opmn/bin/opmnctl stopall
$IAS_HOME/<OC4J_instance>/application-deployments/jpdk/orion-application.xml
Dependent library references:
<library path="../../../../portal/jlib/pdkjava.jar"/>
<library path="../../../../portal/jlib/ptlshare.jar"/>
<library path="../../../../webcache/jlib/jawc.jar"/>
<library path="../../jazn.jar"/>
<library path="../jlib/ldapjclnt9.jar"/>
$IAS_HOME/opmn/bin/opmnctl startall
The PDK-Java v2 Sample Providers are now deployed. Please proceed to Testing the Deployment
This section assumes that you already have a stand-alone OC4J server installed and configured. If you do not have an OC4J installation, please install and configure it according to its installation instructions.
$OC4J_HOME/portal/jlib
$OC4J_HOME/webcache/jlib
Notes:
$OC4J_HOME is the root directory of your OC4J installation. You will
find directories named "bin", "j2ee",
"javacache", "jdbc"
etc. under this directory.
copy $unzip_directory/pdk/libcommon/portal/jlib/* to
$OC4J_HOME/portal/jlib/
copy $unzip_directory/pdk/libcommon/webcache/jlib/* to
$OC4J_HOME/webcache/jlib/
copy $unzip_directory/pdk/libcommon/jlib/* to
$OC4J_HOME/jlib/
Notes:
$unzip_directory denotes the directory where you
have unzipped the pdk.zip. The libraries and the components to which they
belong are described above.
Copy $unzip_directory/jpdk/v2/jpdk.ear into your OC4J applications subdirectory. Usually, this directory is $OC4J_HOME/j2ee/home/applications
<web-app application="jpdk" name="jpdk" root="/jpdk" />
java -jar admin.jar ormi://<host>:<port>/
admin <admin_password> -shutdown
java -jar admin.jar ormi://<host>:<port>/
admin <admin_password> -startup
$OC4J_HOME/j2ee/<OC4J_instance>/application-deployments/jpdk/orion-application.xml
Dependent library references:
<library path="../../../../portal/jlib/pdkjava.jar"/>
<library path="../../../../portal/jlib/ptlshare.jar"/>
<library path="../../../../webcache/jlib/jawc.jar"/>
<library path="../../jazn.jar"/>
<library path="../lib/ldapjclnt9.jar"/>
java -jar admin.jar ormi://<host>:<port>/ admin <admin_password> -startup
The PDK-Java v2 Sample Providers are now deployed. Please proceed to Testing the Deployment
The PDK-Java v2 Sample Providers application is now deployed. To test the application, access the "sample" provider's test page at the following URL:
http://{server}:{port}/jpdk/providers/sample
This page lists the portlets that are included with the provider that has a service name of "sample". The test pages of other providers can be accessed using a similar URL. Simply replace "sample" with the service name of the provider.
The service names of the other providers included with the PDK-Java v2 Sample Providers application are:
The service names of the URL Services sample providers are:
The majority of the providers require additional configuration of some kind. For each of these providers there is an installation document detailing the additional configuration steps and instructions for using the provider. The installation documents can be found in $unzip_directory/pdk/jpdk/v2/doc/{service name}
In the PDK-Java there are a number of deployment properties that area specified as JNDI variables. You may wish to alter the values of these properties for your particular deployment. The level of logging to be used is one such variable and is global to all providers in the PDK-Java war file. Other variables are defined (see list below) but are provider-specific, therefore each provider will have its own variable for each of the properties declared as JNDI variables.
NB: For more information about HMAC authentication, see the article "Securing Your Web Provider".
This method should be used wherever OEM is not available. Changes to JNDI variable values at deployment should be declared in the PDK-Java's orion-web.xml file. This file can be found in the following location:
For a full IAS install:
$IAS_HOME\j2ee\{OC4J instance}\application-deployments\jpdk\jpdk
For a standalone OC4J install:
$OC4J_HOME\j2ee\home\application-deployments\jpdk\jpdk
If the file does not exist then you should create it.
For each deployment property that you want to set a value for, add the following:
<env-entry-mapping name="{JNDI Variable name}">{deployment value}</env-entry-mapping>
For example, your orion-web.xml might look like this:
<?xml version = '1.0'?>
<!DOCTYPE orion-web-app PUBLIC "-//Evermind//DTD Orion Web Application
2.3//EN" "http://xmlns.oracle.com/ias/dtds/orion-web.dtd">
<orion-web-app deployment-version="9.0.3.0.0"
jsp-cache-directory="./persistence" temporary-directory="./temp"
servlet-webdir="/servlet/">
<env-entry-mapping name="oracle/portal/sample/rootDirectory">D:\prefs</env-entry-mapping>
<env-entry-mapping name="oracle/portal/sample/definition">D:\definitions\def.xml</env-entry-mapping>
</orion-web-app>
After deploying the PDK-Java Sample Providers, you must register the provider with Oracle9iAS Portal before adding the sample portlet(s) to a page.
Note: When registering a new provider with Oracle Portal, only the user who registered the provider has privileges to see the provider/portlets. If necessary, go to the Folder with the name of the provider within the Portlet Repository content area and update the provider privileges as required.
Display the contents of the Portlet Repository and review the sample portlets.
Add any of the sample portlets listed under the Provider called "SampleWebProvider" to a Portal page.
Please refer to Oracle9iAS Portal online documentation for more information on adding portlets to a page.
You have now successfully installed and setup the Web Provider Samples.
When using the PDK-Java framework in a production environment, it is recommended to secure access to your Provider machine or more specifically, your Provider. There are a number of different ways you can secure a Web Provider. For more information please review An Overview of Portlet Security
Review the article Packaging and Deploying Your Provider for detailed instructions on how to package and deploy your own providers
For detailed information regarding creating new providers, review the article How to Build a Java Portlet.
| Revision History: |
|
| Oracle Corporation World Headquarters 500 Oracle Parkway Redwood Shores, CA 94065, USA http://www.oracle.com/ |
Worldwide Inquiries: 1-800-ORACLE1 Fax 650.506.7200 |
Copyright and Corporate Info |