axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepal Jayasinghe (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-3203) When I use SMTP as for the communication in the server side it never send the fault
Date Mon, 12 Nov 2007 16:31:50 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-3203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Deepal Jayasinghe resolved AXIS2-3203.
--------------------------------------

    Resolution: Fixed

Juts deploy the smtpfault.mar and engage that for the server side.



> 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
>            Assignee: 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message