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 Requests that are sent over JMS.- Author:
- G.J. Schouten
-
Field Summary
Fields inherited from class org.rribbit.processing.LocalRequestProcessor
listenerObjectExecutor, listenerObjectRetriever -
Constructor Summary
ConstructorsConstructorDescriptionWhenever you use this constructor, be sure to set theListenerObjectRetrieverAND theListenerObjectExecutorwith the setters provided byLocalRequestProcessor.JmsRequestProcessor(ListenerObjectRetriever listenerObjectRetriever, ListenerObjectExecutor listenerObjectExecutor) This constructor is recommended, since it forces you to specify theListenerObjectRetrieverandListenerObjectExecutor. -
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 theListenerObjectRetrieverAND theListenerObjectExecutorwith the setters provided byLocalRequestProcessor. If you don't, runtimeNullPointerExceptions will occur. -
JmsRequestProcessor
public JmsRequestProcessor(ListenerObjectRetriever listenerObjectRetriever, ListenerObjectExecutor listenerObjectExecutor) This constructor is recommended, since it forces you to specify theListenerObjectRetrieverandListenerObjectExecutor. Passing a null value for either of these will result in a runtimeNullPointerExceptionwhenever theJmsRequestProcessoris used.- Parameters:
listenerObjectRetriever-listenerObjectExecutor-
-
-
Method Details
-
onMessage
public void onMessage(jakarta.jms.Message message) - Specified by:
onMessagein interfacejakarta.jms.MessageListener
-