Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.5)

E22562-01

oracle.apps.fnd.applcore.oaext.as
Class BusinessActivityPublisher

java.lang.Object
  extended by oracle.apps.fnd.applcore.oaext.as.BusinessActivityPublisher

public final class BusinessActivityPublisher
extends java.lang.Object

This class is responsible for publishing business events as WC Activities to ActivityStreaming service. This is a singleton per J2EE application. An instance of this object is obtained using getInstance() method. This class transforms business events into Activities and publishes them to Activity Service asynchronously. Resources held by the class are released by using release() method. In J2EE container, release is done by ApplCore when the App is undeployed or stopped.


Field Summary
static java.lang.String DEFAULT_APP_NAME
           
static BusinessActivity KILLTHREAD
           
 
Method Summary
 java.lang.String getApplicationName()
           
static BusinessActivityPublisher getInstance()
          Returns and instance of BusinessActivityPublisher if one exists or creates anew one.
 void publishActivity(BusinessActivity activity)
          Queues the Activity for publishing.
 void release()
          Should be called during App undeploy to stop the publisher thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_APP_NAME

public static java.lang.String DEFAULT_APP_NAME

KILLTHREAD

public static BusinessActivity KILLTHREAD
Method Detail

getInstance

public static BusinessActivityPublisher getInstance()
Returns and instance of BusinessActivityPublisher if one exists or creates anew one.

Returns:

publishActivity

public void publishActivity(BusinessActivity activity)
Queues the Activity for publishing. The queued activities are published to the Activity Streaming service asynchronously if there is a matching ActivityType defined for the source business event. If no matching ActivityType is found in the service-definition.xml corresponding to the source EO, the activity is ignored.

Parameters:
activity -

release

public void release()
Should be called during App undeploy to stop the publisher thread. In a J2EE container, this method is called by ApplCore ServletContextListener. Product teams should not use this method in the context of J2EE Apps.


getApplicationName

public java.lang.String getApplicationName()

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.5)

E22562-01

Copyright © 2011 Oracle. All Rights Reserved.