KIE Remote Services :: Services 6.1.0.CR2

org.kie.remote.services.jms
Class RequestMessageBean

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

public class RequestMessageBean
extends Object
implements javax.jms.MessageListener

There are thus multiple queues to which an instance of this class could listen to, which is why the (JMS queue) configuration is done in the ejb-jar.xml file.

Doing the configuration in the ejb-jar.xml file which allows us to configure instances of one class to listen to more than one queue.

Also: responses to requests are not placed on a reply-to queue, but on the specified answer queue.


Field Summary
protected  ProcessRequestBean processRequestBean
           
protected  DeploymentInfoBean runtimeMgrMgr
           
 
Constructor Summary
RequestMessageBean()
           
 
Method Summary
 void cleanup()
           
 void init()
           
protected  JaxbCommandsResponse jmsProcessJaxbCommandsRequest(JaxbCommandsRequest request)
           
 void onMessage(javax.jms.Message message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runtimeMgrMgr

@Inject
protected DeploymentInfoBean runtimeMgrMgr

processRequestBean

@Inject
protected ProcessRequestBean processRequestBean
Constructor Detail

RequestMessageBean

public RequestMessageBean()
Method Detail

init

@PostConstruct
public void init()

cleanup

@PreDestroy
public void cleanup()

onMessage

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

jmsProcessJaxbCommandsRequest

protected JaxbCommandsResponse jmsProcessJaxbCommandsRequest(JaxbCommandsRequest request)

KIE Remote Services :: Services 6.1.0.CR2

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