Testing Oracle PDK-Java Producer Connections

23-16 Oracle Fusion Middleware Administrators Guide for Oracle WebCenter For command syntax and examples, see the Oracle Fusion Middleware WebLogic Scripting Tool Command Reference. For information on how to run WLST commands, see Section 1.13.3.1, Running Oracle WebLogic Scripting Tool WLST Commands.

23.7.3 Deregistering Producers in WebCenter Spaces

For information about deregistering portlet producers in WebCenter Spaces, see the section Deregistering Portlet Producers in the Oracle Fusion Middleware Users Guide for Oracle WebCenter.

23.7.4 Deregistering Producers in WebCenter Portal Applications

For information about deregistering portlet producers in WebCenter Portal applications, see the section How to Delete a Portlet Producer in the Oracle Fusion Middleware Developers Guide for Oracle WebCenter.

23.8 Deploying Portlet Producer Applications

To deploy a portlet producer to an Oracle WebLogic Managed Server instance, you can use Fusion Middleware Control, Oracle WebLogic Server Administration Console, or WLST. For information on deploying a portlet producer at design-time, through Oracle JDeveloper, see the chapter Testing and Deploying Your Portlets in the Oracle Fusion Middleware Developers Guide for Oracle WebCenter. This section includes the following subsections: ■ Section 23.8.1, Understanding Portlet Producer Application Deployment ■ Section 23.8.2, Converting a JSR 286 Portlet Producer EAR File into a WSRP EAR File ■ Section 23.8.3, Deploying Portlet Producer Applications Using Oracle JDeveloper ■ Section 23.8.4, Deploying Portlet Producer Applications Using Fusion Middleware Control ■ Section 23.8.5, Deploying Portlet Producer Applications Using Oracle WebLogic Server Administration Console ■ Section 23.8.6, Deploying Portlet Applications Using WLST For more information about deploying applications, see the chapter Deploying Application in Oracle Fusion Middleware Administrators Guide.

23.8.1 Understanding Portlet Producer Application Deployment

You can deploy your portlet producer application to any Oracle WebLogic Managed Server instance that is configured to support WebCenter portlet producers. To deploy an application to a managed server, you can use Oracle Enterprise Manager Fusion Middleware Control, Oracle WebLogic Administration Console, or WLST. For more information about these administration tools, see Section 1.13, Oracle WebCenter Administration Tools.

23.8.2 Converting a JSR 286 Portlet Producer EAR File into a WSRP EAR File

To deploy JSR 286 portlets to the WSRP Oracle Portlet Container, the portlet application EAR files must be converted into a WSRP application, which contains the necessary WSDL documents. To convert the JSR 286 portlet producer EAR file into a Managing Portlet Producers 23-17 WSRP EAR file, run the WSRP producer predeployment tool located in the Middleware directory at WC_ORACLE_HOME webcentermodulesoracle.portlet.server_11.1.1, as follows: java -jar wsrp-predeploy.jar source EAR target EAR For JSR 286 portlets developed with servlet version 2.3, you must specify Web proxies using the following command: java -Dhttp.proxyHost=proxy host -Dhttp.proxyPort=proxy port -jar wsrp-predeploy.jar source EAR target EAR where: ■ proxy host is the server to which your producer has been deployed. ■ proxy port is the HTTP Listener port. ■ wsrp-predeploy.jar is located in the WC_ORACLE_HOME webcentermodulesoracle.portlet.server_11.1.1 directory. ■ source EAR is the name of the JSR 286 EAR file. ■ target EAR file is the name of the new EAR file to be created. If the file name for the targeted EAR file is not specified, then a new EAR file called WSRP-source EAR is produced. In the following example Web proxy is specified: java -Dhttp.proxyHost=myhttpproxy.com -Dhttp.proxyPort=80 -jar wsrp-predeploy.jar wsrp-samples.ear This example produces WSRP-wsrp-samples.ear. The wsrp-predeploy.jar predeployment tool makes all the necessary changes to a JSR 286 portlet to be able to deploy it to the Oracle portlet container and expose it as a WSRP producer. Here are some examples of what the predeployment tool does: ■ Creates the wsdldeploy directory in the java.io.tmpdir folder. – On UNIX, the default value of this property is tmp or vartmp – On Microsoft Windows, the default value of this property is c:\temp. ■ Unpacks the EAR file into wsdldeployEAR. ■ Unpacks the WAR files into wsdldeploy[warfilename.war]. ■ Inserts WEB-INFWSDLs into the unpacked application. ■ Modifies WEB-INFweb.xml in the unpackaged WAR files. ■ Inserts or modifies WEB-INFwebservices.xml in the WAR files. ■ Inserts or modifies WEB-INForacle-webservices.xml in the WAR files. ■ Repackages the WARs and builds a new EAR file.

23.8.3 Deploying Portlet Producer Applications Using Oracle JDeveloper

You can deploy portlet applications to an Oracle WebLogic Managed Server instance directly from the development environment using Oracle JDeveloper, if you have the necessary credentials to access the WebLogic server. For more information, see the