|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Bi-directional communication channel used to interact with the Normalized Message Service.
Method Summary | |
MessageExchange |
accept()
Blocking call used to service a MessageExchange instance which has been initiated by another component. |
MessageExchange |
accept(long timeout)
Identical to accept(), but returns after specified interval even if a message exchange is unavailable. |
void |
close()
Closes the delivery channel, halting all message traffic. |
MessageExchangeFactory |
createExchangeFactory()
Create a message exchange factory. |
MessageExchangeFactory |
createExchangeFactory(javax.xml.namespace.QName interfaceName)
Create a message exchange factory for the given interface name. |
MessageExchangeFactory |
createExchangeFactory(ServiceEndpoint endpoint)
Create a message exchange factory for the given endpoint. |
MessageExchangeFactory |
createExchangeFactoryForService(javax.xml.namespace.QName serviceName)
Create a message exchange factory for the given service name. |
void |
send(MessageExchange exchange)
Routes a MessageExchange instance through the Normalized Message Service to the appropriate servicing component. |
boolean |
sendSync(MessageExchange exchange)
Routes a MessageExchange instance through the Normalized Message Service to the appropriate servicing component, blocking until the exchange is returned. |
boolean |
sendSync(MessageExchange exchange,
long timeout)
Routes a MessageExchange instance through the Normalized Message Service to the appropriate servicing component, blocking until the specified timeout is reached. |
Method Detail |
public void close() throws MessagingException
MessagingException
- fatal error while closing channel.public MessageExchangeFactory createExchangeFactory()
public MessageExchangeFactory createExchangeFactory(javax.xml.namespace.QName interfaceName)
interfaceName
- name of the interface for which all exchanges
created by the returned factory will be set
public MessageExchangeFactory createExchangeFactoryForService(javax.xml.namespace.QName serviceName)
serviceName
- name of the service for which all exchanges
created by the returned factory will be set
public MessageExchangeFactory createExchangeFactory(ServiceEndpoint endpoint)
endpoint
- endpoint for which all exchanges created by the
returned factory will be set for
public MessageExchange accept() throws MessagingException
MessagingException
- failed to acceptpublic MessageExchange accept(long timeout) throws MessagingException
timeout
- time to wait in milliseconds
MessagingException
- failed to acceptpublic void send(MessageExchange exchange) throws MessagingException
exchange
- message exchange to send
MessagingException
- unable to send exchangepublic boolean sendSync(MessageExchange exchange) throws MessagingException
exchange
- message exchange to send
MessagingException
- unable to send exchangepublic boolean sendSync(MessageExchange exchange, long timeout) throws MessagingException
exchange
- message exchange to sendtimeout
- time to wait in milliseconds
MessagingException
- unable to send exchange
|
Built 06/07/2005 11:16 AM on acer (SunOS 5.9) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |