org.ow2.petals.binding.soap.listener.outgoing
Class JBIListener

java.lang.Object
  extended by org.ow2.petals.component.framework.listener.AbstractListener
      extended by org.ow2.petals.component.framework.listener.AbstractJBIListener
          extended by org.ow2.petals.binding.soap.listener.outgoing.JBIListener

public class JBIListener
extends org.ow2.petals.component.framework.listener.AbstractJBIListener

Listener for incoming JBI messages. A SOAP message is created from the JBI one.

Author:
alouis - EBM Websourcing, Christophe Hamerling - EBM Websourcing

Field Summary
protected  java.util.Map<java.lang.String,AbstractExternalServiceCaller> callers
          Map of service callers.
protected  java.util.logging.Logger logger
          The logger
protected  SoapComponentContext soapContext
          The SOAP Component Context
 
Fields inherited from class org.ow2.petals.component.framework.listener.AbstractListener
component, factory, messageInterceptorProcessor
 
Constructor Summary
JBIListener()
           
 
Method Summary
protected  void addCaller(AbstractExternalServiceCaller caller)
           
 void init()
           
protected  void initCallers()
          Instantiate and initialize the service callers.
protected  void invokeCaller(org.ow2.petals.component.framework.api.message.Exchange exchange)
          Dispatch the outgoing WS call.
 boolean onJBIMessage(org.ow2.petals.component.framework.api.message.Exchange exchange)
          Called by the JBI channel listener when a jbi message is accepted.
 
Methods inherited from class org.ow2.petals.component.framework.listener.AbstractJBIListener
onAsyncJBIMessage, onAsyncNotificationMessage, onExpiredAsyncJBIMessage, onExpiredAsyncNotificationMessage, onNotificationMessage
 
Methods inherited from class org.ow2.petals.component.framework.listener.AbstractListener
createConsumeExchange, createConsumeExchange, createExchange, getComponent, getComponentContext, getConsumes, getCurrentTransaction, getExtensions, getInstallRoot, getLogger, getMessageInterceptorProcessor, getProvides, init, retrievePattern, send, sendAsync, sendSync, sendSync, setConsumes, setCurrentTransaction, setExtensions, setProvides
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected java.util.logging.Logger logger
The logger


soapContext

protected SoapComponentContext soapContext
The SOAP Component Context


callers

protected java.util.Map<java.lang.String,AbstractExternalServiceCaller> callers
Map of service callers. One instance of each caller is available on each worker.

Constructor Detail

JBIListener

public JBIListener()
Method Detail

init

public void init()
Overrides:
init in class org.ow2.petals.component.framework.listener.AbstractListener

initCallers

protected void initCallers()
Instantiate and initialize the service callers.


addCaller

protected void addCaller(AbstractExternalServiceCaller caller)
Parameters:
dispatcher -

onJBIMessage

public boolean onJBIMessage(org.ow2.petals.component.framework.api.message.Exchange exchange)
Called by the JBI channel listener when a jbi message is accepted. The call is dispatched like this :

Specified by:
onJBIMessage in class org.ow2.petals.component.framework.listener.AbstractJBIListener
Parameters:
exchange -
extensions -

invokeCaller

protected void invokeCaller(org.ow2.petals.component.framework.api.message.Exchange exchange)
Dispatch the outgoing WS call. The good dispatcher is retrieved from the MODE parameter if it exists. If no valid dispatcher has been found for the specified MODE, the SOAP one is used.

Parameters:
exchange -
extensions -
address -


Copyright © 2005-2010 OW2 Consortium. All Rights Reserved.