Skip navigation links

Oracle Communications Services Gatekeeper Java API Reference
6.0

E55513-02


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 Object

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


Field Summary
static String NON_TRANSACTIONAL_FACTORY
          Non-transaction factory.
static String TRANSACTIONAL_FACTORY
          Transaction factory (not used in Melitta).

 

Constructor Summary
JMSConnector()
           
JMSConnector(Context ctx)
           

 

Method Summary
 void close()
           
 TopicSession createSession(String factory)
          Creates a session to the given factory.
static String getEdrTopicName()
          Returns the name of the EdrTopic of the current server.
static int getSessionCount()
           
 TopicConnection getTopicConnection()
          Returns the topic connection previously created.
 Topic lookupTopic(TopicSession session, 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 String NON_TRANSACTIONAL_FACTORY
Non-transaction factory.
See Also:
Constant Field Values

TRANSACTIONAL_FACTORY

public static final String TRANSACTIONAL_FACTORY
Transaction factory (not used in Melitta).
See Also:
Constant Field Values

Constructor Detail

JMSConnector

public JMSConnector()

JMSConnector

public JMSConnector(Context ctx)

Method Detail

close

public void close()
           throws JMSException
Throws:
JMSException

createSession

public TopicSession createSession(String factory)
                           throws NamingException,
                                  JMSException
Creates a session to the given factory.
Throws:
NamingException
JMSException

getEdrTopicName

public static 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 TopicConnection getTopicConnection()
Returns the topic connection previously created.
Returns:
The topic connection.

lookupTopic

public Topic lookupTopic(TopicSession session,
                         String topicName)
                  throws NamingException
Lookup the given topic name.
Parameters:
session - The topic session.
topicName - The topic name.
Returns:
The topic.
Throws:
NamingException.
NamingException

setSessionCount

public static void setSessionCount(int sessionCount)

Skip navigation links

Oracle Communications Services Gatekeeper Java API Reference
6.0

E55513-02


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