Package org.apache.axis2.transport.jms
Class JMSSender
- java.lang.Object
-
- org.apache.axis2.handlers.AbstractHandler
-
- org.apache.axis2.transport.base.AbstractTransportSender
-
- org.apache.axis2.transport.jms.JMSSender
-
- All Implemented Interfaces:
Handler
,TransportSender
,ManagementSupport
public class JMSSender extends AbstractTransportSender implements ManagementSupport
The TransportSender for JMS
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.axis2.engine.Handler
Handler.InvocationResponse
-
-
Field Summary
Fields Modifier and Type Field Description static String
TRANSPORT_NAME
-
Fields inherited from class org.apache.axis2.transport.base.AbstractTransportSender
cfgCtx, log, metrics
-
Fields inherited from class org.apache.axis2.handlers.AbstractHandler
handlerDesc
-
-
Constructor Summary
Constructors Constructor Description JMSSender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(ConfigurationContext cfgCtx, TransportOutDescription transportOut)
Initialize the transport sender by reading pre-defined connection factories for outgoing messages.void
sendMessage(MessageContext msgCtx, String targetAddress, OutTransportInfo outTransportInfo)
Performs the actual sending of the JMS messagevoid
stop()
-
Methods inherited from class org.apache.axis2.transport.base.AbstractTransportSender
cleanup, createResponseMessageContext, getActiveThreadCount, getAvgSizeReceived, getAvgSizeSent, getBytesReceived, getBytesSent, getFaultsReceiving, getFaultsSending, getLastResetTime, getMaxSizeReceived, getMaxSizeSent, getMessagesReceived, getMessagesSent, getMetricsWindow, getMinSizeReceived, getMinSizeSent, getQueueSize, getResponseCodeTable, getTimeoutsReceiving, getTimeoutsSending, getTransportName, handleException, handleException, handleIncomingMessage, invoke, logException, maintenenceShutdown, pause, resetStatistics, resume, waitForSynchronousResponse
-
Methods inherited from class org.apache.axis2.handlers.AbstractHandler
flowComplete, getHandlerDesc, getName, getParameter, init, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.axis2.engine.Handler
flowComplete, getHandlerDesc, getName, getParameter, init
-
Methods inherited from interface org.apache.axis2.transport.base.ManagementSupport
getActiveThreadCount, getAvgSizeReceived, getAvgSizeSent, getBytesReceived, getBytesSent, getFaultsReceiving, getFaultsSending, getLastResetTime, getMaxSizeReceived, getMaxSizeSent, getMessagesReceived, getMessagesSent, getMetricsWindow, getMinSizeReceived, getMinSizeSent, getQueueSize, getResponseCodeTable, getTimeoutsReceiving, getTimeoutsSending, maintenenceShutdown, pause, resetStatistics, resume
-
-
-
-
Field Detail
-
TRANSPORT_NAME
public static final String TRANSPORT_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(ConfigurationContext cfgCtx, TransportOutDescription transportOut) throws AxisFault
Initialize the transport sender by reading pre-defined connection factories for outgoing messages.- Specified by:
init
in interfaceTransportSender
- Overrides:
init
in classAbstractTransportSender
- Parameters:
cfgCtx
- the configuration contexttransportOut
- the transport sender definition from axis2.xml- Throws:
AxisFault
- on error
-
stop
public void stop()
- Specified by:
stop
in interfaceTransportSender
- Overrides:
stop
in classAbstractTransportSender
-
sendMessage
public void sendMessage(MessageContext msgCtx, String targetAddress, OutTransportInfo outTransportInfo) throws AxisFault
Performs the actual sending of the JMS message- Specified by:
sendMessage
in classAbstractTransportSender
- Throws:
AxisFault
-
-