Oracle Fusion Middleware User Messaging Service 11.1.1.1.0 Java API Reference
E14011-01

oracle.sdp.messaging
Class MessagingClientFactory

java.lang.Object
  extended by oracle.sdp.messaging.MessagingClientFactory

public class MessagingClientFactory
extends java.lang.Object

A Factory class for creating Messaging Clients to send and receive messages.

Since:
11.0.0

Method Summary
static MessagingEJBClient createMessagingEJBClient()
          Create an EJB (SessionBean) instance of MessagingClient.
static MessagingEJBClient createMessagingEJBClient(ApplicationInfo applicationInfo)
          Create an EJB (SessionBean) instance of MessagingClient using specified application info.
static void remove(MessagingClient clientInstance)
          Remove this Messaging Client instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createMessagingEJBClient

public static MessagingEJBClient createMessagingEJBClient()
                                                   throws MessagingException
Create an EJB (SessionBean) instance of MessagingClient. This factory method searches your application's JNDI context for Messaging specific environment properties that specify the application name, instance name, etc. To programatically set the application info, use createMessagingEJBClient(ApplicationInfo).

Returns:
an EJB (SessionBean) instance of MessagingClient.
Throws:
MessagingException - if there is an error while looking up or creating the MessagingClient EJB instance.

createMessagingEJBClient

public static MessagingEJBClient createMessagingEJBClient(ApplicationInfo applicationInfo)
                                                   throws MessagingException
Create an EJB (SessionBean) instance of MessagingClient using specified application info. If certain required fields are not set in the applicationInfo, this factory method searches your application's JNDI Context for appropriate environment properties.

Parameters:
applicationInfo - the application info
Returns:
an EJB (SessionBean) instance of MessagingClient.
Throws:
MessagingException - if there is an error while looking up or creating the MessagingClient EJB instance.

remove

public static void remove(MessagingClient clientInstance)
Remove this Messaging Client instance. Releases any resources used by this instance.

Parameters:
clientInstance - the client instance to remove.

Oracle Fusion Middleware User Messaging Service 11.1.1.1.0 Java API Reference
E14011-01

Copyright © 2009 Oracle and/or its affiliates. All rights reserved.