Hi,

   Iam using JSR181 component to expose an EJB method as a service and iam
throwing an exception from EJB method as follows
     throw AxisFault.makeFault(ex);

My component setup is

  ...... -->eip:tap-->eip:pipeline-->eip:tap-->...

the xbean configuration for pipeline is

  <eip:pipeline service="bescocr:pipeToPub" endpoint="endpoint">
    <eip:transformer>
      <eip:exchange-target service="demo:my-service" />
    </eip:transformer>    
    <eip:target>
      <eip:exchange-target service="bescocr:myTap" />
    </eip:target>
  <eip:faultsTarget> 
      <eip:exchange-target service="bescocr:myQueue"/> 
  </eip:faultsTarget>
  </eip:pipeline>

As intended when i get exception iam able to place the message in myQueue

But the message is like <stack>.....Complete stack trace...</stack>

I want a message which is an actual Soap Fault message like 
<Fault><FaultString></FaultString>...

Am i doing any thing wrong while throwing exception? if so please help me
out in creating proper AxisFault object(which should contain user defined
error code,string and some extra info)





    
-- 
View this message in context: 
http://www.nabble.com/Handling-Faults-in-servicemix-tf4204826s12049.html#a11960536
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to