When I use SMTP as for the communication in the server side it never send the 
fault 
------------------------------------------------------------------------------------

                 Key: AXIS2-3203
                 URL: https://issues.apache.org/jira/browse/AXIS2-3203
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
            Reporter: Deepal Jayasinghe
            Priority: Blocker


When I use SMTP transport as the server side . It will never send the fault to 
the client , the problem happen due to following code segment in the MailWorker


public void run() {
        AxisEngine engine = new AxisEngine(configContext);
        // create and initialize a message context
        try {
            engine.receive(messageContext);
        } catch (Exception e) {
            try {
                if (messageContext != null&&!messageContext.isServerSide()) {
                    MessageContext faultContext =
                            
MessageContextBuilder.createFaultMessageContext(messageContext, e);
                    engine.sendFault(faultContext);
                }
            } catch (Exception e1) {
                // Ignore errors that would possibly happen this catch
            }
        }

    }

And the funny thing is no matter what the side , when we start 
SimpleMailListern then the messageContext.isServerSide() is always true.

However when we start SimpleMaillListern in the client side and when it find a 
fault then it should not send the fault back to the server. So to maintain that 
, we need to have a parameter in the axis2.xml and MailWorker has to look for 
that. So if the value if server then it will send the response else it wont.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to