org.mule.providers.bpm.jbpm
Class MuleMessageService

java.lang.Object
  extended byorg.mule.providers.bpm.jbpm.MuleMessageService
All Implemented Interfaces:
org.jbpm.msg.MessageService, Serializable, org.jbpm.svc.Service

public class MuleMessageService
extends Object
implements org.jbpm.msg.MessageService

jBPM has built-in support for messaging via the org.jbpm.msg.MessageService interface, the idea being that one can plug in a JMS implementation and send messages from a process using a standard "" construct. If Mule were to implement this interface, one could make Mule the standard MessageService instead of JMS, which would make the Mule/jBPM integration more "seamless". This is an unfinished work, see MULE-1219

See Also:
Serialized Form

Field Summary
protected static MessageService proxy
           
 
Constructor Summary
MuleMessageService()
           
 
Method Summary
 void close()
           
 UMOMessage generateMessage(String endpoint, Object payloadObject, Map messageProperties, boolean synchronous)
           
 void resumeMessages(org.jbpm.graph.exe.Token token)
           
 void send(org.jbpm.msg.Message message)
           
static void setMessageService(MessageService msgService)
           
 void suspendMessages(org.jbpm.graph.exe.Token token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

proxy

protected static MessageService proxy
Constructor Detail

MuleMessageService

public MuleMessageService()
Method Detail

setMessageService

public static void setMessageService(MessageService msgService)

generateMessage

public UMOMessage generateMessage(String endpoint,
                                  Object payloadObject,
                                  Map messageProperties,
                                  boolean synchronous)
                           throws Exception
Throws:
Exception

send

public void send(org.jbpm.msg.Message message)
Specified by:
send in interface org.jbpm.msg.MessageService

suspendMessages

public void suspendMessages(org.jbpm.graph.exe.Token token)
Specified by:
suspendMessages in interface org.jbpm.msg.MessageService

resumeMessages

public void resumeMessages(org.jbpm.graph.exe.Token token)
Specified by:
resumeMessages in interface org.jbpm.msg.MessageService

close

public void close()
Specified by:
close in interface org.jbpm.msg.MessageService


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.