|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.soa.esb.listeners.message.Invoker
ServiceInvoker.
public class Invoker
Utility class to hide implementation details for sending Command messages and optionally awaiting for a response.
| Constructor Summary | |
|---|---|
Invoker()
Deprecated. |
|
| Method Summary | |
|---|---|
static void |
invoke(Message message,
java.lang.String category,
java.lang.String name)
Deprecated. |
static Message |
invokeAndAwaitResponse(Message outgoing,
int maxWaitMillis)
Deprecated. Deliver an ESB Message and wait for a response Message. |
static Message |
invokeAndAwaitResponse(Message message,
java.lang.String category,
java.lang.String name,
int maxWaitMillis)
Deprecated. Encapsulate command in an ESB Message, deliverAsync it, and wait for a response Message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Invoker()
| Method Detail |
|---|
public static void invoke(Message message,
java.lang.String category,
java.lang.String name)
throws RegistryException,
MalformedEPRException,
CourierException,
ServiceNotFoundException
message - Message - the message to delivercategory - String - for Registry searchname - String - for Registry search
RegistryException
MalformedEPRException
CourierException
ServiceNotFoundException
public static Message invokeAndAwaitResponse(Message message,
java.lang.String category,
java.lang.String name,
int maxWaitMillis)
throws RegistryException,
MalformedEPRException,
CourierException,
CourierTimeoutException,
ServiceNotFoundException
message - Message - the message to delivercategory - String - Service category name for Registry inquiryname - String - Service name for Registry inquirymaxWaitMillis - int - Maximum time to wait for a response
RegistryException
MalformedEPRException
CourierException
CourierTimeoutException - - If response was not received in specified time
ServiceNotFoundException
public static Message invokeAndAwaitResponse(Message outgoing,
int maxWaitMillis)
throws CourierException,
MalformedEPRException,
CourierTimeoutException
outgoing - Message - should contain at least the toEPRmaxWaitMillis - int - Maximum time to wait for a response
CourierException
MalformedEPRException
CourierTimeoutException - - If response was not received in specified time
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||