public abstract class AbstractConsumerEndpoint extends ConsumerEndpoint
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
PROP_JMS_CONTEXT |
loggerdefinition, description, endpoint, interfaceName, service, serviceUnit| Constructor and Description |
|---|
AbstractConsumerEndpoint() |
AbstractConsumerEndpoint(DefaultComponent component,
javax.jbi.servicedesc.ServiceEndpoint endpoint) |
AbstractConsumerEndpoint(ServiceUnit serviceUnit,
javax.xml.namespace.QName service,
java.lang.String endpoint) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
javax.jms.ConnectionFactory |
getConnectionFactory() |
DestinationChooser |
getDestinationChooser() |
org.springframework.jms.support.destination.DestinationResolver |
getDestinationResolver() |
java.lang.String |
getLocationURI() |
JmsConsumerMarshaler |
getMarshaler() |
int |
getReplyDeliveryMode() |
javax.jms.Destination |
getReplyDestination() |
protected javax.jms.Destination |
getReplyDestination(javax.jbi.messaging.MessageExchange exchange,
java.lang.Object message,
javax.jms.Session session,
JmsConsumerMarshaler.JmsContext context) |
java.lang.String |
getReplyDestinationName() |
int |
getReplyPriority() |
java.util.Map<java.lang.String,java.lang.Object> |
getReplyProperties() |
long |
getReplyTimeToLive() |
org.apache.servicemix.store.Store |
getStore() |
org.apache.servicemix.store.StoreFactory |
getStoreFactory() |
java.lang.Boolean |
getUseMessageIdInResponse() |
protected void |
handleException(javax.jbi.messaging.MessageExchange exchange,
java.lang.Exception error,
javax.jms.Session session,
JmsConsumerMarshaler.JmsContext context) |
boolean |
isJms102() |
boolean |
isPubSubDomain() |
boolean |
isReplyExplicitQosEnabled() |
boolean |
isStateless() |
boolean |
isSynchronous() |
protected void |
onMessage(javax.jms.Message jmsMessage,
javax.jms.Session session) |
void |
process(javax.jbi.messaging.MessageExchange exchange) |
protected void |
processExchange(javax.jbi.messaging.MessageExchange exchange,
javax.jms.Session session,
JmsConsumerMarshaler.JmsContext context) |
protected void |
send(javax.jms.Message msg,
javax.jms.Session session,
javax.jms.Destination dest) |
protected void |
sendError(javax.jbi.messaging.MessageExchange exchange,
java.lang.Exception error,
javax.jms.Session session,
JmsConsumerMarshaler.JmsContext context) |
void |
setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
Specifies the
ConnectionFactory used by the endpoint. |
protected void |
setCorrelationId(javax.jms.Message query,
javax.jms.Message reply) |
void |
setDestinationChooser(DestinationChooser destinationChooser)
Specifies a class implementing logic for choosing reply destinations.
|
void |
setDestinationResolver(org.springframework.jms.support.destination.DestinationResolver destinationResolver)
Specifies the class implementing logic for converting strings into
destinations.
|
void |
setJms102(boolean jms102)
Specifies if the consumer uses JMS 1.0.2 compliant APIs.
|
void |
setMarshaler(JmsConsumerMarshaler marshaler)
Specifies the class implementing the message marshaler.
|
void |
setPubSubDomain(boolean pubSubDomain)
Specifies if the destination is a topic.
|
void |
setReplyDeliveryMode(int replyDeliveryMode)
Specifies the JMS delivery mode used for the reply.
|
void |
setReplyDestination(javax.jms.Destination replyDestination)
Specifies the JMS
Destination for the replies. |
void |
setReplyDestinationName(java.lang.String replyDestinationName)
Specifies the name of the JMS destination to use for the reply.
|
void |
setReplyExplicitQosEnabled(boolean replyExplicitQosEnabled)
Specifies if the QoS values specified for the endpoint are explicitly
used when the reply is sent.
|
void |
setReplyPriority(int replyPriority)
Specifies the JMS message priority of the reply.
|
void |
setReplyProperties(java.util.Map<java.lang.String,java.lang.Object> replyProperties)
Specifies custom properties to be placed in the reply's JMS header.
|
void |
setReplyTimeToLive(long replyTimeToLive)
Specifies the number of milliseconds the reply message is valid.
|
void |
setStateless(boolean stateless)
Specifies if the consumer retains state information about the message
exchange while it is in process.
|
void |
setStore(org.apache.servicemix.store.Store store)
Specifies the persistent store used to store JBI exchanges that are
waiting to be processed.
|
void |
setStoreFactory(org.apache.servicemix.store.StoreFactory storeFactory)
Specifies the store factory used to create the store.
|
void |
setSynchronous(boolean synchronous)
Specifies if the consumer will block while waiting for a response.
|
void |
setUseMessageIdInResponse(java.lang.Boolean useMessageIdInResponse)
Specifies if the request message's ID is used as the reply's correlation
ID.
|
protected boolean |
treatExceptionAsFault(java.lang.Exception error) |
configureExchangeTarget, getRole, getTargetEndpoint, getTargetInterface, getTargetOperation, getTargetService, getTargetUri, setTargetEndpoint, setTargetInterface, setTargetOperation, setTargetService, setTargetUri, validatedone, fail, getChannel, getContext, getExchangeFactory, send, sendSync, start, stopgetDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toStringpublic AbstractConsumerEndpoint()
public AbstractConsumerEndpoint(DefaultComponent component, javax.jbi.servicedesc.ServiceEndpoint endpoint)
public AbstractConsumerEndpoint(ServiceUnit serviceUnit, javax.xml.namespace.QName service, java.lang.String endpoint)
public DestinationChooser getDestinationChooser()
public void setDestinationChooser(DestinationChooser destinationChooser)
destinationChooser - the destinationChooser to setpublic int getReplyDeliveryMode()
public void setReplyDeliveryMode(int replyDeliveryMode)
PERSISTENT).replyDeliveryMode - the JMS delivery modepublic javax.jms.Destination getReplyDestination()
public void setReplyDestination(javax.jms.Destination replyDestination)
Destination for the replies. If this value
is not set the endpoint will use the destinationChooser
property or the replyDestinationName property to determine
the desitination to use.replyDestination - the JMS destination for repliespublic java.lang.String getReplyDestinationName()
public void setReplyDestinationName(java.lang.String replyDestinationName)
DestinationResolver specified by the
.destinationResolver property.replyDestinationName - the name of the reply destinationpublic boolean isReplyExplicitQosEnabled()
public void setReplyExplicitQosEnabled(boolean replyExplicitQosEnabled)
false.replyExplicitQosEnabled - should the QoS values be sent?public int getReplyPriority()
public void setReplyPriority(int replyPriority)
replyPriority - the reply's prioritypublic java.util.Map<java.lang.String,java.lang.Object> getReplyProperties()
public void setReplyProperties(java.util.Map<java.lang.String,java.lang.Object> replyProperties)
replyProperties - the properties to setpublic long getReplyTimeToLive()
public void setReplyTimeToLive(long replyTimeToLive)
replyTimeToLive - the number of milliseonds the message livespublic java.lang.Boolean getUseMessageIdInResponse()
public void setUseMessageIdInResponse(java.lang.Boolean useMessageIdInResponse)
true means the request's message ID will be used
instead.useMessageIdInResponse - use the request's message ID as the reply'e correlation ID?public javax.jms.ConnectionFactory getConnectionFactory()
public void setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
ConnectionFactory used by the endpoint.connectionFactory - the connectionFactory to setpublic boolean isPubSubDomain()
public void setPubSubDomain(boolean pubSubDomain)
true means the
destination is a topic. false means the destination is a
queue.pubSubDomain - the destination is a topic?public org.springframework.jms.support.destination.DestinationResolver getDestinationResolver()
public void setDestinationResolver(org.springframework.jms.support.destination.DestinationResolver destinationResolver)
DynamicDestinationResolver.destinationResolver - the destination resolver implementationpublic JmsConsumerMarshaler getMarshaler()
public void setMarshaler(JmsConsumerMarshaler marshaler)
DefaultConsumerMarshaler.marshaler - the marshaler implementationpublic boolean isSynchronous()
public void setSynchronous(boolean synchronous)
true.synchronous - the consumer blocks?public boolean isStateless()
public void setStateless(boolean stateless)
stateless - the consumer retains state?public org.apache.servicemix.store.Store getStore()
public void setStore(org.apache.servicemix.store.Store store)
stateless property is set to
false.store - the Store objectpublic org.apache.servicemix.store.StoreFactory getStoreFactory()
public void setStoreFactory(org.apache.servicemix.store.StoreFactory storeFactory)
stateless property is set
to false, a MemoryStoreFactory will be created
and used instead.storeFactory - the StoreFactory objectpublic java.lang.String getLocationURI()
getLocationURI in class ConsumerEndpointpublic void activate()
throws java.lang.Exception
activate in interface Endpointactivate in class ConsumerEndpointjava.lang.Exceptionpublic void deactivate()
throws java.lang.Exception
deactivate in interface Endpointdeactivate in class ConsumerEndpointjava.lang.Exceptionpublic void process(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
process in interface Endpointprocess in class AbstractEndpointjava.lang.Exceptionprotected void processExchange(javax.jbi.messaging.MessageExchange exchange,
javax.jms.Session session,
JmsConsumerMarshaler.JmsContext context)
throws java.lang.Exception
java.lang.Exceptionprotected void send(javax.jms.Message msg,
javax.jms.Session session,
javax.jms.Destination dest)
throws javax.jms.JMSException
javax.jms.JMSExceptionprotected void onMessage(javax.jms.Message jmsMessage,
javax.jms.Session session)
throws javax.jms.JMSException
javax.jms.JMSExceptionprotected javax.jms.Destination getReplyDestination(javax.jbi.messaging.MessageExchange exchange,
java.lang.Object message,
javax.jms.Session session,
JmsConsumerMarshaler.JmsContext context)
throws javax.jms.JMSException
javax.jms.JMSExceptionprotected void setCorrelationId(javax.jms.Message query,
javax.jms.Message reply)
throws java.lang.Exception
java.lang.Exceptionprotected void handleException(javax.jbi.messaging.MessageExchange exchange,
java.lang.Exception error,
javax.jms.Session session,
JmsConsumerMarshaler.JmsContext context)
throws java.lang.Exception
java.lang.Exceptionprotected boolean treatExceptionAsFault(java.lang.Exception error)
protected void sendError(javax.jbi.messaging.MessageExchange exchange,
java.lang.Exception error,
javax.jms.Session session,
JmsConsumerMarshaler.JmsContext context)
throws java.lang.Exception
java.lang.Exceptionpublic boolean isJms102()
public void setJms102(boolean jms102)
false.jms102 - consumer is JMS 1.0.2 compliant?Copyright © 2005-2014 FuseSource. All Rights Reserved.