You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Gang Yang (JIRA)" <de...@tuscany.apache.org> on 2011/01/25 15:54:47 UTC

[jira] Created: (TUSCANY-3822) PolicyHandler.afterInvoke should be called with outbound MessageContext.

PolicyHandler.afterInvoke should be called with outbound MessageContext.
------------------------------------------------------------------------

                 Key: TUSCANY-3822
                 URL: https://issues.apache.org/jira/browse/TUSCANY-3822
             Project: Tuscany
          Issue Type: Improvement
          Components: Java SCA Policy
    Affects Versions: Java-SCA-1.6.1, Java-SCA-1.6
         Environment: Tuscany 1.6.1 on Windows platform (2003 and XP).
            Reporter: Gang Yang


Tuscany runtime calls the policy extension method PolicyHandler.afterInvoke() with the inbound MessageContext, but the outbound MessageContext should've been used to process the outbound message.

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


[jira] Updated: (TUSCANY-3822) PolicyHandler.afterInvoke should be called with outbound MessageContext.

Posted by "Gang Yang (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-3822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gang Yang updated TUSCANY-3822:
-------------------------------

    Attachment: Axis2ServiceProvider.java
                Axis2ServiceInOutSyncMessageReceiver.java

Modified classes to call afterInvoke with the outbound MessageContext. Look for "// Gang:" in the code to find the changes.

> PolicyHandler.afterInvoke should be called with outbound MessageContext.
> ------------------------------------------------------------------------
>
>                 Key: TUSCANY-3822
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3822
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Policy
>    Affects Versions: Java-SCA-1.6, Java-SCA-1.6.1
>         Environment: Tuscany 1.6.1 on Windows platform (2003 and XP).
>            Reporter: Gang Yang
>         Attachments: Axis2ServiceInOutSyncMessageReceiver.java, Axis2ServiceProvider.java
>
>
> Tuscany runtime calls the policy extension method PolicyHandler.afterInvoke() with the inbound MessageContext, but the outbound MessageContext should've been used to process the outbound message.

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


[jira] [Assigned] (TUSCANY-3822) PolicyHandler.afterInvoke should be called with outbound MessageContext.

Posted by "Simon Nash (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-3822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Nash reassigned TUSCANY-3822:
-----------------------------------

    Assignee: Simon Nash

> PolicyHandler.afterInvoke should be called with outbound MessageContext.
> ------------------------------------------------------------------------
>
>                 Key: TUSCANY-3822
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3822
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Policy
>    Affects Versions: Java-SCA-1.6, Java-SCA-1.6.1
>         Environment: Tuscany 1.6.1 on Windows platform (2003 and XP).
>            Reporter: Gang Yang
>            Assignee: Simon Nash
>         Attachments: Axis2ServiceInOutSyncMessageReceiver.java, Axis2ServiceProvider.java
>
>
> Tuscany runtime calls the policy extension method PolicyHandler.afterInvoke() with the inbound MessageContext, but the outbound MessageContext should've been used to process the outbound message.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (TUSCANY-3822) PolicyHandler.afterInvoke should be called with outbound MessageContext.

Posted by "Simon Nash (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-3822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Nash resolved TUSCANY-3822.
---------------------------------

       Resolution: Fixed
    Fix Version/s: Java-SCA-1.x

Thanks for the patch. I've applied this to the 1.x trunk under revision r1086734, with additional code to ensure that afterInvoke() is called for in-only invocations as well as in-out invocations. 

> PolicyHandler.afterInvoke should be called with outbound MessageContext.
> ------------------------------------------------------------------------
>
>                 Key: TUSCANY-3822
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3822
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Policy
>    Affects Versions: Java-SCA-1.6, Java-SCA-1.6.1
>         Environment: Tuscany 1.6.1 on Windows platform (2003 and XP).
>            Reporter: Gang Yang
>            Assignee: Simon Nash
>             Fix For: Java-SCA-1.x
>
>         Attachments: Axis2ServiceInOutSyncMessageReceiver.java, Axis2ServiceProvider.java
>
>
> Tuscany runtime calls the policy extension method PolicyHandler.afterInvoke() with the inbound MessageContext, but the outbound MessageContext should've been used to process the outbound message.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira