|
Oracle Fusion Middleware User Messaging Service 11.1.1.6.0 Java API Reference E14011-04 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.sdp.messaging.MessagingClientFactory
public class MessagingClientFactory
A Factory class for creating Messaging Clients to send and receive messages.
Method Summary | |
---|---|
static MessagingClient |
createMessagingClient(Map<java.lang.String,java.lang.Object> parameters)
Create a MessagingClient instance. |
static oracle.sdp.messaging.MessagingEJBClient |
createMessagingEJBClient()
Create an EJB (SessionBean) instance of MessagingClient . |
static oracle.sdp.messaging.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 |
---|
public static MessagingClient createMessagingClient(Map<java.lang.String,java.lang.Object> parameters) throws MessagingException
remove(MessagingClient)
method.
In typical use, no parameters need to be specified for a client application to be
functional. Some parameters are useful to override default behavior:
ApplicationInfo.APPLICATION_NAME
.ApplicationInfo.SDPM_SECURITY_PRINCIPAL
. If a security principal is specified,
then all subsequent requests involving the application's resources (messages, access points, etc.) must be
made using the same security principal.MessagingConstants.MESSAGE_LISTENER_THREADS
and
MessagingConstants.STATUS_LISTENER_THREADS
.MessagingConstants.RECEIVE_ACKNOWLEDGEMENT_MODE
(synchronous receiving)
and MessagingConstants.LISTENER_ACKNOWLEDGEMENT_MODE
(asynchronous receiving).
properties
- A set of configuration properties for the instance being created.
MessagingException
public static oracle.sdp.messaging.MessagingEJBClient createMessagingEJBClient() throws MessagingException
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)
.
MessagingClient
.
MessagingException
- if there is an error while looking up or
creating the MessagingClient EJB instance.public static oracle.sdp.messaging.MessagingEJBClient createMessagingEJBClient(ApplicationInfo applicationInfo) throws MessagingException
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.
applicationInfo
- the application info
MessagingClient
.
MessagingException
- if there is an error while looking up or
creating the MessagingClient EJB instance.public static void remove(MessagingClient clientInstance)
clientInstance
- the client instance to remove.
|
Oracle Fusion Middleware User Messaging Service 11.1.1.6.0 Java API Reference E14011-04 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |