Uploading Resources from JDeveloper to WebCenter Portal

Tweet about this on TwitterShare on Facebook0Share on LinkedIn10Share on Google+0

If you build or modify resources for a WebCenter Portal application, instead of spend your time doing export and import actions, you can upload your updates directly to the WebCenter Portal application from JDeveloper. To enable direct updates from the JDeveloper WebCenterSpacesResources project you must configure the config.properties file and check that you have the appropriate roles and permissions to upload the resource to WebCenter Portal.

Your user need to have monitor role in WebLogic Server and Create, Edit, Delete resource permissions in WebCenter Portal. As weblogic user has all the required permissions, I will use it.

This is my portal.

uploading-resources-direct-from-jdeveloper-to-webcenter-portal1

In JDeveloper, I will use the WebCenterSpacesResources project to manage resource customizations.
Open the config.properties file and enter details relating to JDeveloper and your WebCenter Portal installation.

uploading-resources-direct-from-jdeveloper-to-webcenter-portal2

For wls.userkey and wls.userconfig configuration properties, you need to run WLST commands to generate these files.
Navigate to MIDDLEWARE_HOME/Oracle_WC1/common/bin and enter the command:

wlst.sh (or wlst.cmd on Windows)

Run the following command to connect to the Administration Server for Oracle WebCenter:

connect('<admin_user>','<admin_pwd>', '<host>:<port>')

Run the following command to create a user configuration file and key file in a specified location:

storeUserConfig('<userConfigFile>', '<userKeyFile>')

uploading-resources-direct-from-jdeveloper-to-webcenter-portal3

In WebCenterSpacesResources project, right-click the resource you want to upload to WebCenter Portal, and choose Upload Portal Resource to server.

uploading-resources-direct-from-jdeveloper-to-webcenter-portal4

If prompted, enter your WebCenter Portal username and password and click OK.

uploading-resources-direct-from-jdeveloper-to-webcenter-portal5

The following message indicates that the upload was successful.

uploading-resources-direct-from-jdeveloper-to-webcenter-portal6

Go to WebCenter Portal and verify the resource you just uploaded.
Just it!

uploading-resources-direct-from-jdeveloper-to-webcenter-portal7

Tweet about this on TwitterShare on Facebook0Share on LinkedIn10Share on Google+0

Author: Waslley Souza

Consultor Oracle com foco em tecnologias Oracle Fusion Middleware e SOA. Certificado Oracle WebCenter Portal, Oracle ADF e Java.

Leave a Reply

Your email address will not be published. Required fields are marked *