Package org.apache.axis.transport.jms
Class JMSTransport
- java.lang.Object
-
- org.apache.axis.client.Transport
-
- org.apache.axis.transport.jms.JMSTransport
-
public class JMSTransport extends Transport
JMSTransport is the JMS-specific implemenation of org.apache.axis.client.Transport. It implements the setupMessageContextImpl() function to set JMS-specific message context fields and transport chains. There are two Connector and connection factory properties are passed in during instantiation and are in turn passed through when creating a connector.- Author:
- Jaime Meritt (jmeritt@sonicsoftware.com), Richard Chung (rchung@sonicsoftware.com), Dave Chappell (chappell@sonicsoftware.com), Ray Chun (rchun@sonicsoftware.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.Log
log
-
Fields inherited from class org.apache.axis.client.Transport
transportName, url
-
-
Constructor Summary
Constructors Constructor Description JMSTransport()
JMSTransport(java.util.HashMap connectorProps, java.util.HashMap connectionFactoryProps)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
closeAllConnectors()
Closes all JMS connectorsstatic void
closeMatchingJMSConnectors(java.lang.String endpointAddr, java.lang.String username, java.lang.String password)
Closes JMS connectors that match the specified endpoint addressvoid
setupMessageContextImpl(MessageContext context, Call message, AxisEngine engine)
Set up any transport-specific derived properties in the message context.void
shutdown()
Shuts down the connectors managed by this JMSTransport.-
Methods inherited from class org.apache.axis.client.Transport
getTransportName, getUrl, processReturnedMessageContext, setTransportName, setupMessageContext, setUrl
-
-
-
-
Method Detail
-
setupMessageContextImpl
public void setupMessageContextImpl(MessageContext context, Call message, AxisEngine engine) throws AxisFault
Set up any transport-specific derived properties in the message context.- Overrides:
setupMessageContextImpl
in classTransport
- Parameters:
context
- the context to set upmessage
- the client service instanceengine
- the engine containing the registries- Throws:
AxisFault
- if service cannot be found
-
shutdown
public void shutdown()
Shuts down the connectors managed by this JMSTransport.
-
closeAllConnectors
public static void closeAllConnectors()
Closes all JMS connectors
-
closeMatchingJMSConnectors
public static void closeMatchingJMSConnectors(java.lang.String endpointAddr, java.lang.String username, java.lang.String password)
Closes JMS connectors that match the specified endpoint address- Parameters:
endpointAddr
- the JMS endpoint addressusername
-password
-
-
-