2016/05/28 - Apache Tuscany has been retired.

For more information, please explore the Attic.

 Apache Tuscany > Index > SCA Java > SCAJavaBusinessExceptions
Added by Rick R., last edited by Raymond Feng on Feb 02, 2007  (view change)

Supporting Business Exceptions

  1. How to declare business exceptions.
    What defines business exception on each interface type. (ie Java wsdl)
    In Java interface, business exceptions are declared checked exceptions specified on the operations of the services interface.
    Note declared unchecked (runtime) exceptions are not considered business exceptions.
    WSDL need to determine if all WSDL defined faults are business exceptions. Need to in investigate JAX-WS mapping of exceptions JAX-B databinding..
    SDO has no similar specification. Need to determine a similar means for SDO to provide reliable transforms between JAX-B and SDO.
  2. How to represent business exceptions.
    In Java business exception are represented as non runtime exceptions. But not all runtime exceptions delivered in a message maybe a Business exception.
    If a non runtime exceptions is delivered to a component that is does not declare the exception the exception will be wrappered in a specified runtime exception.
    Jax-b need to further investigate the JAX-B specification and follow how it models business exceptions as objects.
    SDO there are no specific mappings provided for. May need to wrapper complex parts of an exception as SDO objects in a specific Java exception.
  3. How to transform business exceptions.
    Provide in the data binding transformations between Axiom OMElement, SDO represented faults and JAX-B exceptions.
    How to identify as business exceptions during the transforms.
  4. How to propagate business exceptions.
    Determine how to propagate exception in the Tuscany runtime message in local interactions. Make sure TargetInvocation exceptions become unwrappered
    How in the case of webservice's binding propagate the message through web service binding.