org.jbpm.integration.console
Class TaskClientFactory
java.lang.Object
org.jbpm.integration.console.TaskClientFactory
public class TaskClientFactory
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaskClientFactory
public TaskClientFactory()
newInstance
public static org.jbpm.task.TaskService newInstance(Properties properties,
String connectorId)
- Produces new instance of TaskClient based on given properties and assignes as connector identifier given connectorId.
Main property that drives type of a client (mina, hornetq, jms) is jbpm.console.task.service.strategy. If not given
it will apply DEFAULT_TASK_SERVICE_STRATEGY which is hornetq.
Other transport specific properties must be given as part of the properties.
Common properties are:
jbpm.console.task.service.host
jbpm.console.task.service.port
- Parameters:
properties - properties required to create task clientconnectorId - identifier that will be assigned to the connector
- Returns:
- new instance of task client that is already connected
- Throws:
IllegalArgumentException - in case unknown type of a task client is given as jbpm.console.task.service.strategy or connection to the task server failed.
newAsyncInstance
public static org.jbpm.task.service.TaskClient newAsyncInstance(Properties properties,
String connectorId,
boolean connect)
newAsyncInstance
public static org.jbpm.task.service.TaskClient newAsyncInstance(Properties properties,
String connectorId)
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.