org.ow2.petals.bpel.engine.util
Class Sender

java.lang.Object
  extended by org.ow2.petals.bpel.engine.util.Sender

public class Sender
extends java.lang.Object

Author:
nicolas salatge - ebmm websourcing, alouis

Nested Class Summary
static class Sender.SendStyle
          Send style
 
Constructor Summary
Sender(javax.jbi.component.ComponentContext context, javax.jbi.messaging.DeliveryChannel channel, java.util.logging.Logger logger)
          Default constructor
 
Method Summary
 org.ow2.petals.component.framework.api.message.Exchange createExchange(org.ow2.petals.component.framework.api.Message.MEPConstants mep, JBIListener listener)
          FIXME use some CDK util methods to create the exchange Create an empty Exchange
 javax.jbi.servicedesc.ServiceEndpoint resolveEndPoint(javax.xml.namespace.QName service, java.lang.String endpointName)
          Find the endpoint in the JBI env
 JBIExternalMessageImpl send(JBIExternalMessageImpl internalMsg, java.lang.Long syncTime, com.ebmwebsourcing.easyviper.core.api.soa.Endpoint providerEndpointInfo, com.ebmwebsourcing.easyviper.core.api.env.ExternalContext context, Sender.SendStyle sendStyle)
          FIXME some orchestra Error and Fault exception are thrown FIXME use some CDK utils to send Exchanges Call a jbi service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sender

public Sender(javax.jbi.component.ComponentContext context,
              javax.jbi.messaging.DeliveryChannel channel,
              java.util.logging.Logger logger)
Default constructor

Method Detail

send

public final JBIExternalMessageImpl send(JBIExternalMessageImpl internalMsg,
                                         java.lang.Long syncTime,
                                         com.ebmwebsourcing.easyviper.core.api.soa.Endpoint providerEndpointInfo,
                                         com.ebmwebsourcing.easyviper.core.api.env.ExternalContext context,
                                         Sender.SendStyle sendStyle)
                                  throws com.ebmwebsourcing.easyviper.core.api.CoreException
FIXME some orchestra Error and Fault exception are thrown FIXME use some CDK utils to send Exchanges Call a jbi service

Parameters:
partner - the partner to invoke. May be null
msgIn - the exchange
syncTime - timeout for syncSend
Returns:
the exchange response
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException
javax.jbi.messaging.MessagingException - problem while accessing MsgExch information or while sending the MsgExc
OrchestraEngineException - no endpoint found to send the message

createExchange

public org.ow2.petals.component.framework.api.message.Exchange createExchange(org.ow2.petals.component.framework.api.Message.MEPConstants mep,
                                                                              JBIListener listener)
                                                                       throws javax.jbi.messaging.MessagingException
FIXME use some CDK util methods to create the exchange Create an empty Exchange

Parameters:
mep - exchange pattern
Returns:
Throws:
javax.jbi.messaging.MessagingException - JBI factory can not create the MsgExchange

resolveEndPoint

public final javax.jbi.servicedesc.ServiceEndpoint resolveEndPoint(javax.xml.namespace.QName service,
                                                                   java.lang.String endpointName)
                                                            throws com.ebmwebsourcing.easybpel.model.bpel.api.BPELException
Find the endpoint in the JBI env

Parameters:
service -
endpointName -
Returns:
Throws:
OrchestraEngineException - endpoint can not be found in the JBI context
com.ebmwebsourcing.easybpel.model.bpel.api.BPELException


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.