Package org.rribbit.processing
Class JmsRequestProcessor
java.lang.Object
org.rribbit.processing.LocalRequestProcessor
org.rribbit.processing.JmsRequestProcessor
- All Implemented Interfaces:
jakarta.jms.MessageListener
,RequestProcessor
public class JmsRequestProcessor
extends LocalRequestProcessor
implements jakarta.jms.MessageListener
This
RequestProcessor
handles Request
s that are sent over JMS.- Author:
- G.J. Schouten
-
Field Summary
Fields inherited from class org.rribbit.processing.LocalRequestProcessor
listenerObjectExecutor, listenerObjectRetriever
-
Constructor Summary
ConstructorDescriptionWhenever you use this constructor, be sure to set theListenerObjectRetriever
AND theListenerObjectExecutor
with the setters provided byLocalRequestProcessor
.JmsRequestProcessor
(ListenerObjectRetriever listenerObjectRetriever, ListenerObjectExecutor listenerObjectExecutor) This constructor is recommended, since it forces you to specify theListenerObjectRetriever
andListenerObjectExecutor
. -
Method Summary
Methods inherited from class org.rribbit.processing.LocalRequestProcessor
getListenerObjectExecutor, getListenerObjectRetriever, processRequest, setListenerObjectExecutor, setListenerObjectRetriever
-
Constructor Details
-
JmsRequestProcessor
public JmsRequestProcessor()Whenever you use this constructor, be sure to set theListenerObjectRetriever
AND theListenerObjectExecutor
with the setters provided byLocalRequestProcessor
. If you don't, runtimeNullPointerException
s will occur. -
JmsRequestProcessor
public JmsRequestProcessor(ListenerObjectRetriever listenerObjectRetriever, ListenerObjectExecutor listenerObjectExecutor) This constructor is recommended, since it forces you to specify theListenerObjectRetriever
andListenerObjectExecutor
. Passing a null value for either of these will result in a runtimeNullPointerException
whenever theJmsRequestProcessor
is used.- Parameters:
listenerObjectRetriever
-listenerObjectExecutor
-
-
-
Method Details
-
onMessage
public void onMessage(jakarta.jms.Message message) - Specified by:
onMessage
in interfacejakarta.jms.MessageListener
-