electric.server.jms
Class JMSContext

java.lang.Object
  extended byelectric.server.jms.JMSContext
All Implemented Interfaces:
IServer

public class JMSContext
extends java.lang.Object
implements IServer

JMSContext represents a data object representing a running instance of JMS service in glue. JMS services can be started on multiple directories. Each JMS service is assigned JMSContext. The context maps a JMS queue to a directory in glue. Any message received on that queue is dispatched to a web service located in or under that directory.

Author:
webMethods

Field Summary
 java.lang.String queueConnFactName
           
 
Constructor Summary
JMSContext(XURL namespace, java.lang.String path, javax.jms.QueueConnection qConn, javax.jms.QueueSession qSession, javax.jms.Queue requestQueue, java.lang.String requestQueueName, java.lang.String queueConnFactName)
           
 
Method Summary
 javax.jms.QueueConnection getConnection()
          Returns queue connection to the JMS provider.
 java.lang.String getLocalPath()
          Returns a directory path mapped to a JMS Queue represented by this context object.
 java.lang.String getLocalPath(java.lang.String uri)
           
 XURL getNamespace()
           
 XURL getPath()
          Returns external representation of the GLUE directory path represented by this context object.
 javax.jms.Queue getRequestQueue()
          Returns request Queue represented by this Object.
 java.lang.String getRequestQueueName()
          Returns the name mapped to the request queue in the JNDI directory.
 java.lang.String getRoot()
          Returns a directory path mapped to a JMS Queue represented by this context object.
 javax.jms.QueueSession getSession()
          Returns JMS session of the JMS service, this object represents.
 java.lang.String getType()
          Returns the type of the service this implementation IServer implements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queueConnFactName

public java.lang.String queueConnFactName
Constructor Detail

JMSContext

public JMSContext(XURL namespace,
                  java.lang.String path,
                  javax.jms.QueueConnection qConn,
                  javax.jms.QueueSession qSession,
                  javax.jms.Queue requestQueue,
                  java.lang.String requestQueueName,
                  java.lang.String queueConnFactName)
Parameters:
namespace -
path -
qConn -
qSession -
requestQueue -
requestQueueName -
queueConnFactName -
Method Detail

getNamespace

public XURL getNamespace()

getRequestQueue

public javax.jms.Queue getRequestQueue()
Returns request Queue represented by this Object.


getRequestQueueName

public java.lang.String getRequestQueueName()
Returns the name mapped to the request queue in the JNDI directory. The queue is represented by this instance of JMSContext.


getSession

public javax.jms.QueueSession getSession()
Returns JMS session of the JMS service, this object represents. Closing the session, would stop processing of the incoming requests on the queue this context represents.


getConnection

public javax.jms.QueueConnection getConnection()
Returns queue connection to the JMS provider. The queue connection is used to deliver JMS messages to this instance of the GLUE JMS service. Closing or stopping the connection causes immediate interruption of the processing of the incoming requests over the queue represented by this context.


getLocalPath

public java.lang.String getLocalPath()
Returns a directory path mapped to a JMS Queue represented by this context object. Any invocation request sent over that queue is meant to target one of the services running in or under the directory.


getPath

public XURL getPath()
Returns external representation of the GLUE directory path represented by this context object.

Specified by:
getPath in interface IServer

getLocalPath

public java.lang.String getLocalPath(java.lang.String uri)
Specified by:
getLocalPath in interface IServer
Parameters:
uri -

getRoot

public java.lang.String getRoot()
Returns a directory path mapped to a JMS Queue represented by this context object. Any invocation request sent over that queue is meant to target one of the services running in or under the directory.

Specified by:
getRoot in interface IServer

getType

public java.lang.String getType()
Returns the type of the service this implementation IServer implements.

Specified by:
getType in interface IServer


copyright© 2001-2004 by webMethods All Rights Reserved.