Package org.apache.axis2.transport.jms
Class JMSEndpoint
- java.lang.Object
-
- org.apache.axis2.transport.base.ProtocolEndpoint
-
- org.apache.axis2.transport.jms.JMSEndpoint
-
public class JMSEndpoint extends ProtocolEndpoint
Class that links an Axis2 service to a JMS destination. Additionally, it contains all the required information to process incoming JMS messages and to inject them into Axis2.
-
-
Constructor Summary
Constructors Constructor Description JMSEndpoint(JMSListener listener, WorkerPool workerPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JMSConnectionFactory
getCf()
ContentTypeRuleSet
getContentTypeRuleSet()
EndpointReference[]
getEndpointReferences(AxisService service, String ip)
Get the endpoint references for this protocol endpoint.String
getJndiDestinationName()
String
getJndiReplyDestinationName()
String
getReplyDestinationType()
ServiceTaskManager
getServiceTaskManager()
boolean
loadConfiguration(ParameterInclude params)
Configure the endpoint based on the provided parameters.void
setServiceTaskManager(ServiceTaskManager serviceTaskManager)
-
Methods inherited from class org.apache.axis2.transport.base.ProtocolEndpoint
createMessageContext, getConfigurationContext, getDescription, getListener, getService, getServiceName
-
-
-
-
Constructor Detail
-
JMSEndpoint
public JMSEndpoint(JMSListener listener, WorkerPool workerPool)
-
-
Method Detail
-
getJndiDestinationName
public String getJndiDestinationName()
-
getJndiReplyDestinationName
public String getJndiReplyDestinationName()
-
getReplyDestinationType
public String getReplyDestinationType()
-
getEndpointReferences
public EndpointReference[] getEndpointReferences(AxisService service, String ip)
Description copied from class:ProtocolEndpoint
Get the endpoint references for this protocol endpoint.- Specified by:
getEndpointReferences
in classProtocolEndpoint
- Parameters:
service
- The service to build the EPR for. IfProtocolEndpoint.getService()
returns a non null value, then it has the same value as this parameter, which is never null.ip
- The host name or IP address of the local host. The implementation should use this information instead ofInetAddress.getLocalHost()
. The value of this parameter may benull
, in which case the implementation should useUtils.getIpAddress( org.apache.axis2.engine.AxisConfiguration)
.- Returns:
- an array of endpoint references
- See Also:
TransportListener.getEPRsForService(String, String)
-
getContentTypeRuleSet
public ContentTypeRuleSet getContentTypeRuleSet()
-
getCf
public JMSConnectionFactory getCf()
-
getServiceTaskManager
public ServiceTaskManager getServiceTaskManager()
-
setServiceTaskManager
public void setServiceTaskManager(ServiceTaskManager serviceTaskManager)
-
loadConfiguration
public boolean loadConfiguration(ParameterInclude params) throws AxisFault
Description copied from class:ProtocolEndpoint
Configure the endpoint based on the provided parameters. If no relevant parameters are found, the implementation should returnfalse
. An exception should only be thrown if there is an error or inconsistency in the parameters.- Specified by:
loadConfiguration
in classProtocolEndpoint
- Parameters:
params
- The source of the parameters to configure the endpoint. If the parameters are defined on a service, this will be anAxisService
instance.- Returns:
true
if the parameters contained the required configuration information and the endpoint has been configured,false
if the no configuration for the endpoint is present in the parameters- Throws:
AxisFault
- if configuration information is present, but there is an error or inconsistency in the parameters
-
-