org.ow2.petals.se.jsr181
Class Jsr181JBIListener

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.se.jsr181.Jsr181JBIListener
All Implemented Interfaces:
org.ow2.petals.jsr181.PetalsMessageSender

public class Jsr181JBIListener
extends org.ow2.petals.component.framework.listener.AbstractJBIListener
implements org.ow2.petals.jsr181.PetalsMessageSender

The JBIListener used to handle incoming JBI messages.

This listener invokes the linked Axis2 service.

Since:
1.0
Author:
Christophe HAMERLING - EBM WebSourcing, Vincent Zurczak - EBM WebSourcing

Field Summary
static java.lang.String MTOM_TNS
          The name space for XOP attachments.
 
Fields inherited from class org.ow2.petals.component.framework.listener.AbstractListener
component, factory, messageInterceptorProcessor
 
Constructor Summary
Jsr181JBIListener()
          Constructor.
 
Method Summary
protected  boolean checkMEP(org.ow2.petals.component.framework.api.message.Exchange exchange, org.apache.axis2.description.AxisService axisService)
          Checks if the MEP of the JBI message exchange and the Axis Operation are the same.
protected  boolean checkOperation(org.ow2.petals.component.framework.api.message.Exchange exchange, org.apache.axis2.description.AxisService axisService)
          Checks if an operation with the JBI exchange operation name exists in the Axis Service.
 boolean onJBIMessage(org.ow2.petals.component.framework.api.message.Exchange exchange)
           
 
Methods inherited from class org.ow2.petals.component.framework.listener.AbstractJBIListener
onAsyncJBIMessage, onExpiredAsyncJBIMessage
 
Methods inherited from class org.ow2.petals.component.framework.listener.AbstractListener
createConsumeExchange, createConsumeExchange, createExchange, getComponent, getComponentContext, getConsumes, getCurrentTransaction, getExtensions, getInstallRoot, getLogger, getMessageInterceptorProcessor, getProvides, init, 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
 
Methods inherited from interface org.ow2.petals.jsr181.PetalsMessageSender
createExchange, getExtensions, send, sendAsync, sendSync
 

Field Detail

MTOM_TNS

public static final java.lang.String MTOM_TNS
The name space for XOP attachments.

See Also:
Constant Field Values
Constructor Detail

Jsr181JBIListener

public Jsr181JBIListener()
Constructor.

Method Detail

onJBIMessage

public boolean onJBIMessage(org.ow2.petals.component.framework.api.message.Exchange exchange)
Specified by:
onJBIMessage in class org.ow2.petals.component.framework.listener.AbstractJBIListener

checkMEP

protected boolean checkMEP(org.ow2.petals.component.framework.api.message.Exchange exchange,
                           org.apache.axis2.description.AxisService axisService)
Checks if the MEP of the JBI message exchange and the Axis Operation are the same.

Parameters:
exchange - the exchange
axisService - the Axis service
Returns:
true if the MEP are identical, false otherwise

checkOperation

protected boolean checkOperation(org.ow2.petals.component.framework.api.message.Exchange exchange,
                                 org.apache.axis2.description.AxisService axisService)
Checks if an operation with the JBI exchange operation name exists in the Axis Service.

Parameters:
exchange - the exchange
axisService - the target Axis service
Returns:
true if the exchange's operation exists in the Axis service, false otherwise


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