Oracle Fusion Middleware extensions for Enterprise Scheduler Service
11g Release 1 (11.1.2)

E22563-02

oracle.apps.fnd.applcp.srs.model.util
Class RegisterWSRPProducer

java.lang.Object
  extended by oracle.apps.fnd.applcp.srs.model.util.RegisterWSRPProducer

public class RegisterWSRPProducer
extends java.lang.Object

This class reference the sample implementation from One of the Portlet Sample projects. To serve as the util class for dynamically register and unregister WSRP Producer. Sample class to test and illustrate using the runtime MBeans in a running application to create the necessary ADF Connection Architecture connections and use these to then register a producer. The code is designed to be deployed as part of the application so that it can be called from another application to cause the registration. The single entry point is the register method.

See Also:
The Exception handling is a bit primitive. All exceptions just end up getting thrown out to the calling method.

Constructor Summary
RegisterWSRPProducer()
           
 
Method Summary
 java.lang.String getWsdlModel(java.lang.String wsdlUrl)
          Borrowed from /emai/source/model/oracle/sysman/emai/model/workplace/ProducerModel.java@672
 java.lang.String register(java.lang.String connectionName, java.lang.String producerURL, boolean secureProducer)
           
 java.lang.String register(java.lang.String connectionName, java.lang.String producerURL, boolean secureProducer, int timeout)
          Peform connection creation and registration.
static java.lang.String registerProducer(java.lang.String connIdentifier, java.lang.String endPointURL, java.lang.String pContainerHostName, boolean secureProducer)
           
static java.lang.String registerProducer(java.lang.String connIdentifier, java.lang.String endPointURL, java.lang.String pContainerHostName, boolean secureProducer, int timeout)
           
 void unregister(java.lang.String connectionName, java.lang.String producerId)
          TODO: what would be the use case for unregister for ESS SRS? To best tested
static boolean unregisterProducer(java.lang.String connIdentifier, java.lang.String pContainerHostName, java.lang.String producerId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegisterWSRPProducer

public RegisterWSRPProducer()
                     throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

unregister

public void unregister(java.lang.String connectionName,
                       java.lang.String producerId)
                throws java.lang.Exception
TODO: what would be the use case for unregister for ESS SRS? To best tested

Parameters:
connectionName -
producerId -
Throws:
java.lang.Exception

register

public java.lang.String register(java.lang.String connectionName,
                                 java.lang.String producerURL,
                                 boolean secureProducer)
                          throws java.lang.Exception
Parameters:
connectionName -
producerURL -
secureProducer -
Returns:
Throws:
java.lang.Exception

register

public java.lang.String register(java.lang.String connectionName,
                                 java.lang.String producerURL,
                                 boolean secureProducer,
                                 int timeout)
                          throws java.lang.Exception
Peform connection creation and registration. We use the same name for the producer registration and the WSRP connection, both taken from the connectionName parameter. The producerURL is the URL to the producer WSDL. *

Parameters:
connectionName - the connection name. Also used for the producerName.
producerURL - the URL to the remote producer.
Throws:
java.lang.Exception - pretty much anything that goes wrong will propagate out.

getWsdlModel

public java.lang.String getWsdlModel(java.lang.String wsdlUrl)
                              throws java.lang.Exception
Borrowed from /emai/source/model/oracle/sysman/emai/model/workplace/ProducerModel.java@672

Throws:
java.lang.Exception

registerProducer

public static java.lang.String registerProducer(java.lang.String connIdentifier,
                                                java.lang.String endPointURL,
                                                java.lang.String pContainerHostName,
                                                boolean secureProducer)
Parameters:
connIdentifier -
endPointURL -
secureProducer -
Returns:

registerProducer

public static java.lang.String registerProducer(java.lang.String connIdentifier,
                                                java.lang.String endPointURL,
                                                java.lang.String pContainerHostName,
                                                boolean secureProducer,
                                                int timeout)
Parameters:
connIdentifier -
endPointURL -
secureProducer -
timeout -
Returns:

unregisterProducer

public static boolean unregisterProducer(java.lang.String connIdentifier,
                                         java.lang.String pContainerHostName,
                                         java.lang.String producerId)

Oracle Fusion Middleware extensions for Enterprise Scheduler Service
11g Release 1 (11.1.2)

E22563-02

Copyright © 2011 Oracle. All Rights Reserved.