Oracle Communications Services Gatekeeper Java API Reference
6.1

E65002-01

com.bea.wlcp.wlng.api.edr.jms
Class JMSConnector

java.lang.Object
  extended bycom.bea.wlcp.wlng.api.edr.jms.JMSConnector

public class JMSConnector
extends java.lang.Object

Methods to create a JMS session to retrieve EDR topic information.


Field Summary
static java.lang.String NON_TRANSACTIONAL_FACTORY
          Non-transaction factory.
static java.lang.String TRANSACTIONAL_FACTORY
          Transaction factory (not used in Melitta).
 
Constructor Summary
JMSConnector()
           
JMSConnector(javax.naming.Context ctx)
           
 
Method Summary
 void close()
           
 javax.jms.TopicSession createSession(java.lang.String factory)
          Creates a session to the given factory.
 javax.jms.TopicSession createSessionForListener(java.lang.String factory, java.lang.String clientID)
          Creates a session to the given factory for JMS listener.
static java.lang.String getEdrTopicName()
          Returns the name of the EdrTopic of the current server.
static int getSessionCount()
           
 javax.jms.TopicConnection getTopicConnection()
          Returns the topic connection previously created.
 javax.jms.Topic lookupTopic(javax.jms.TopicSession session, java.lang.String topicName)
          Lookup the given topic name.
static void setSessionCount(int sessionCount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NON_TRANSACTIONAL_FACTORY

public static final java.lang.String NON_TRANSACTIONAL_FACTORY
Non-transaction factory.

See Also:
Constant Field Values

TRANSACTIONAL_FACTORY

public static final java.lang.String TRANSACTIONAL_FACTORY
Transaction factory (not used in Melitta).

See Also:
Constant Field Values
Constructor Detail

JMSConnector

public JMSConnector()

JMSConnector

public JMSConnector(javax.naming.Context ctx)
Method Detail

close

public void close()
           throws javax.jms.JMSException
Throws:
javax.jms.JMSException

createSession

public javax.jms.TopicSession createSession(java.lang.String factory)
                                     throws javax.naming.NamingException,
                                            javax.jms.JMSException
Creates a session to the given factory.

Throws:
javax.naming.NamingException
javax.jms.JMSException

createSessionForListener

public javax.jms.TopicSession createSessionForListener(java.lang.String factory,
                                                       java.lang.String clientID)
                                                throws javax.naming.NamingException,
                                                       javax.jms.JMSException
Creates a session to the given factory for JMS listener.

Throws:
javax.naming.NamingException
javax.jms.JMSException

getEdrTopicName

public static java.lang.String getEdrTopicName()
Returns the name of the EdrTopic of the current server. This method should not be called outside WebLogic (for example, unit tests).

Returns:
The JNDI name of the EdrTopic of the current instance of WebLogic.

getSessionCount

public static int getSessionCount()

getTopicConnection

public javax.jms.TopicConnection getTopicConnection()
Returns the topic connection previously created.

Returns:
The topic connection.

lookupTopic

public javax.jms.Topic lookupTopic(javax.jms.TopicSession session,
                                   java.lang.String topicName)
                            throws javax.naming.NamingException
Lookup the given topic name.

Parameters:
session - The topic session.
topicName - The topic name.
Returns:
The topic.
Throws:
NamingException.
javax.naming.NamingException

setSessionCount

public static void setSessionCount(int sessionCount)

Oracle Communications Services Gatekeeper Java API Reference
6.1

E65002-01

Copyright © 2008, 2016, Oracle and/or its affiliates. All rights reserved.