Tagged: Oracle WebCenter Content Toggle Comment Threads | Keyboard Shortcuts

  • Pandyan Ramar 8:12 pm on January 15, 2014 Permalink | Reply
    Tags: Cluster, Oracle WebCenter, Oracle WebCenter Content, Oracle WebCenter Portal, WebCenter Install   

    Installing WebCenter Portal Cluster 

    This post describes the high level installation steps for installing Oracle WebCenter Portal and Content in a Clustered architecture to achieve High Availability. Host A and Host B are the two machines (nodes) to be included in the cluster.

    1. Run the WebCenter Portal Repository Creation Utility (RCU)

    2. Install the following software on both Host A and Host B

    • JDK (Sun or JRockit)
    • WebLogic Server (10.3.6)
    • Oracle WebCenter Portal (11.1.1.8)
    • Oracle WebCenter Content (11.1.1.8)

    3. Configure Domain on Host A

    /<MIDDLEWARE_HOME>/oracle_common/common/bin/config.sh

    Define Cluster, Machine and Managed Servers as follows:

    Cluster Machine Managed Server
    Spaces_Cluster Host A WC_Spaces1
    Spaces_Cluster Host B WC_Spaces2
    Content_Cluster Host A UCM_server1
    Content_Cluster Host B UCM_server2
    Portlet_Cluster Host A WC_Portlet1
    Portlet_Cluster Host B WC_Portlet2
    Collaboration_Cluster Host A WC_Collaboration1
    Collaboration_Cluster Host B WC_Collaboration2
    Utilities_Cluster Host A WC_Utilities1
    Utilities_Cluster Host B WC_Utilities1

    Add AdminServer to Host A

    Post bind GID: oinstall, Post bind UID: oracle

    Start Admin Server

    Create boot properties file for AdminServer with login id/password /

    <MIDDLEWARE_HOME>/user_projects/domains/<DOMAIN_NAME>/servers/AdminServer/security/boot.properties

    4. Propagate Domain Configuration to Host B

    Pack the domain configuration in Host A:

    cd /<MIDDLEWARE_HOME>/oracle_common/common/bin
    ./pack.sh -managed=true -domain= /<MIDDLEWARE_HOME>/user_projects/domains/<DOMAIN_NAME> –template=/<MIDDLEWARE_HOME>/<DOMAIN_NAME>.jar -template_name=<DOMAIN_NAME>

    Copy the <DOMAIN_NAME>.jar file to Host B

    Un-Pack the domain configuration in Host B:

    cd /<MIDDLEWARE_HOME>/oracle_common/common/bin
    ./unpack.sh –domain= /<MIDDLEWARE_HOME>/user_projects/domains/<DOMAIN_NAME> –template= /<MIDDLEWARE_HOME>/<DOMAIN_NAME>.jar

    5. Configure Node Manager

    Update Node Manager properties on Host A and Host B

    /<MIDDLEWARE_HOME>/wlserver_10.3/common/nodemanager
    vi nodemanager.properties
    StartScriptEnabled=true

    Enroll Node Manager with Domain on Host A and repeat the same on Host B

    /<MIDDLEWARE_HOME>/wlserver_10.3/common/bin/wlst.sh
    Connect to the AdminSever on Host A
    nmEnroll('<MIDDLEWARE_HOME/user_projects/domains/<DOMAIN_NAME>','<MIDDLEWARE_HOME>/wlserver_10.3,common/nodemanager)

    6. Start Servers

    Start Node Manager on both the nodes

    Start all Managed Servers through Admin Console

    Advertisements
     
  • Pandyan Ramar 10:37 pm on October 25, 2011 Permalink | Reply
    Tags: Content Server, Dynamic Conversion, Java, Oracle WebCenter Content, RIDC, , ,   

    RIDC to display Dynamically Converted content 

    Quite often customers want a quick and easy way to publish a Word document and display it as HTML in a Portal. Dynamic Converter and RIDC comes handy in such situations. After you have setup the Dynamic Converter and tested the dynamic conversion from within the Content Server, you can use simple RIDC code snippet to display the content in a WebCenter Portal page.

    First you need to import “oracle.ucm.ridc.jdev-11.1.1.zip” file manually into your JDeveloper. Then you can use the following code to build a bean to pass the content id and get the content.

    This bean takes two parameters – the first is the Content ID, the second is a boolean value indicating if the content is dynamically converted or not. If all you need is to display a regular content, pass false as the second parameter.

    package view;
    
    import java.io.IOException;
    
    import oracle.stellent.ridc.IdcClient;
    import oracle.stellent.ridc.IdcClientException;
    import oracle.stellent.ridc.IdcClientManager;
    import oracle.stellent.ridc.IdcContext;
    import oracle.stellent.ridc.model.DataBinder;
    import oracle.stellent.ridc.protocol.ServiceResponse;
    
    public class RIDCBean {
    
        private String content;
    
        public RIDCBean(String dDocName, boolean dynamicConversion) throws 
                                         IdcClientException, IOException {
            // Arguments needed to connect to UCM
            String idcConnectionURL;
            idcConnectionURL = "idc://mycontentserver.com:4444";
            String username;
            username = "myappid";
            String password;
            password = "myapppwd";
    
            // Create the IdcClient
            IdcClientManager clientManager = new IdcClientManager ();
            IdcClient client = clientManager.createClient (idcConnectionURL);
            IdcContext userContext = new IdcContext(username, password);
    
            // Create a new binder
            DataBinder dataBinder = client.createBinder ();
    
            // Retrieve the file
            if (dynamicConversion) {
              dataBinder.putLocal ("IdcService", "GET_DYNAMIC_CONVERSION");
              dataBinder.putLocal("IsJava","0");
            } else {
              dataBinder.putLocal ("IdcService", "GET_FILE");
            }
    
            dataBinder.putLocal ("dDocName", dDocName);
            dataBinder.putLocal("RevisionSelectionMethod", "LatestReleased");
            ServiceResponse ridc_response;
            ridc_response = client.sendRequest (userContext, dataBinder);
    
            // Get the response as a string
            content = ridc_response.getResponseAsString ();
        }
    
        public String getContent() {
            return content;
        }
    }

    Note: If the Dynamically Converted Word document had images, they will be checked-into the content server automatically by the Dynamic Converter. Based on your Dynamic Converter template, IMG tags will be generated. The IMG tags will use a URL to load these images in the converted content. This will work fine as long as your Content Server is accessible by end users. If you have your Content Server locked behind a firewall, you will have issues and need to convince the customer to have a consumption UCM server (read only) that can be opened up to users access by punching a hole in the firewall.

     
    • Manuel Cavazos 12:13 pm on December 7, 2011 Permalink | Reply

      thanks

    • kevin Smith 12:17 pm on September 13, 2012 Permalink | Reply

      This does not work. The output from the call only returns the information on the document, not the actual HTML.

      Also, you say

      > Note: If the Dynamically Converted Word document had images, they will be
      > checked-into the content server automatically by the Dynamic Converter.

      This is also not correct. The images are saved to the UCM file system, but they are not actually checked in as separate content items.

      • Sunderapandyan 1:40 pm on September 13, 2012 Permalink | Reply

        Kevin

        When you print the string “content” what do you see as the output?.

    • kevin Smith 1:47 pm on September 13, 2012 Permalink | Reply

      My mistake. I missed the dataBinder.putLocal(“IsJava”,”0″);

      This works now.

      Thanks.

c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel