KIE Remote Services :: Services 6.0.0.CR5

org.kie.services.remote.jms
Class RequestMessageBean

java.lang.Object
  extended by org.kie.services.remote.jms.RequestMessageBean
All Implemented Interfaces:
javax.jms.MessageListener

public class RequestMessageBean
extends Object
implements javax.jms.MessageListener

This class is the link between incoming request (whether via REST or JMS or .. whatever) and the bean that processes the requests, the RestProcessRequestBean.

Responses to requests are not placed on the reply-to queue, but on the answer queue.

Because there are multiple queues to which an instance of this class could listen to, the (JMS queue) configuration is done in the ejb-jar.xml file, which allows us to configure instances of one class to listen to more than one queue.


Constructor Summary
RequestMessageBean()
           
 
Method Summary
protected  org.kie.api.runtime.manager.RuntimeEngine getRuntimeEngine(String domainName, Long processInstanceId)
           
 void init()
           
 Object internalDoKieSessionOperation(org.kie.api.command.Command<?> cmd, JaxbCommandsRequest request, JaxbCommandsResponse jaxbResponse, int i)
           
 Object internalDoTaskOperation(org.kie.api.command.Command<?> cmd, JaxbCommandsResponse jaxbResponse, int i)
           
 void onMessage(javax.jms.Message message)
           
 JaxbCommandsResponse processJaxbCommandsRequest(JaxbCommandsRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestMessageBean

public RequestMessageBean()
Method Detail

init

@PostConstruct
public void init()

onMessage

public void onMessage(javax.jms.Message message)
Specified by:
onMessage in interface javax.jms.MessageListener

processJaxbCommandsRequest

public JaxbCommandsResponse processJaxbCommandsRequest(JaxbCommandsRequest request)

internalDoTaskOperation

public Object internalDoTaskOperation(org.kie.api.command.Command<?> cmd,
                                      JaxbCommandsResponse jaxbResponse,
                                      int i)

internalDoKieSessionOperation

public Object internalDoKieSessionOperation(org.kie.api.command.Command<?> cmd,
                                            JaxbCommandsRequest request,
                                            JaxbCommandsResponse jaxbResponse,
                                            int i)

getRuntimeEngine

protected org.kie.api.runtime.manager.RuntimeEngine getRuntimeEngine(String domainName,
                                                                     Long processInstanceId)

KIE Remote Services :: Services 6.0.0.CR5

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.