You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Ivan Latysh (JIRA)" <ji...@apache.org> on 2006/12/23 00:41:20 UTC

[jira] Created: (AXIS2-1911) Serve service implementation with MessageContext before calling business method.

Serve service implementation with MessageContext before calling business method.
--------------------------------------------------------------------------------

                 Key: AXIS2-1911
                 URL: http://issues.apache.org/jira/browse/AXIS2-1911
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Improvement
          Components: codegen
    Affects Versions: M1
            Reporter: Ivan Latysh
            Priority: Minor


Improve generated MessageReceiver to inject MessageContext into service implementation before calling business method.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-1911) Serve service implementation with MessageContext before calling business method.

Posted by "Thilina Gunarathne (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1911?page=comments#action_12461468 ] 
            
Thilina Gunarathne commented on AXIS2-1911:
-------------------------------------------

Ivan,
Earlier we had a mechanism to inject the OperationContext it self... But it was removed due to the concurrency issues that can appear when using it in application scope..

Currently you can access the messageContext inside your service impl using MessageContext.getCurrentMessageContext();.. Hope that'll be enough for your use case...

> Serve service implementation with MessageContext before calling business method.
> --------------------------------------------------------------------------------
>
>                 Key: AXIS2-1911
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1911
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: codegen
>    Affects Versions: nightly
>            Reporter: Ivan Latysh
>            Priority: Minor
>
> Improve generated MessageReceiver to inject MessageContext into service implementation before calling business method.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-1911) Serve service implementation with MessageContext before calling business method.

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-1911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe resolved AXIS2-1911.
--------------------------------------

    Resolution: Won't Fix

No need to call this method since user can get access to message context using 
MessageContext.getCurrentMessageContext();


> Serve service implementation with MessageContext before calling business method.
> --------------------------------------------------------------------------------
>
>                 Key: AXIS2-1911
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1911
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: codegen
>    Affects Versions: nightly
>            Reporter: Ivan Latysh
>            Priority: Minor
>
> Improve generated MessageReceiver to inject MessageContext into service implementation before calling business method.

-- 
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


[jira] Commented: (AXIS2-1911) Serve service implementation with MessageContext before calling business method.

Posted by "Ivan Latysh (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1911?page=comments#action_12460614 ] 
            
Ivan Latysh commented on AXIS2-1911:
------------------------------------

Proposed solution:
  Add the following code to "org\apache\axis2\wsdl\template\java\MessageReceiverTemplate.xsl" after line 60 :

            java.lang.reflect.Method method = skel.getClass().getMethod("setMessageContext", org.apache.axis2.context.MessageContext.class); 
            if (null!=method) method.invoke(skel, msgContext); 

> Serve service implementation with MessageContext before calling business method.
> --------------------------------------------------------------------------------
>
>                 Key: AXIS2-1911
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1911
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: codegen
>    Affects Versions: M1
>            Reporter: Ivan Latysh
>            Priority: Minor
>
> Improve generated MessageReceiver to inject MessageContext into service implementation before calling business method.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-1911) Serve service implementation with MessageContext before calling business method.

Posted by "Ivan Latysh (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1911?page=comments#action_12460661 ] 
            
Ivan Latysh commented on AXIS2-1911:
------------------------------------

I am not sure how AXIS handle concurrency when service scope isn't request scope.
I believe that MessageReceiver should take a monitor on service object before calling business method. 
If it is the case proposed code plus business method invocation should be enclosed in : synchronized (skel) {...}

> Serve service implementation with MessageContext before calling business method.
> --------------------------------------------------------------------------------
>
>                 Key: AXIS2-1911
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1911
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: codegen
>    Affects Versions: M1
>            Reporter: Ivan Latysh
>            Priority: Minor
>
> Improve generated MessageReceiver to inject MessageContext into service implementation before calling business method.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-1911) Serve service implementation with MessageContext before calling business method.

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1911?page=all ]

Davanum Srinivas updated AXIS2-1911:
------------------------------------

    Affects Version/s: nightly
                           (was: M1)

> Serve service implementation with MessageContext before calling business method.
> --------------------------------------------------------------------------------
>
>                 Key: AXIS2-1911
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1911
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: codegen
>    Affects Versions: nightly
>            Reporter: Ivan Latysh
>            Priority: Minor
>
> Improve generated MessageReceiver to inject MessageContext into service implementation before calling business method.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-1911) Serve service implementation with MessageContext before calling business method.

Posted by "Ivan Latysh (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1911?page=comments#action_12461470 ] 
            
Ivan Latysh commented on AXIS2-1911:
------------------------------------

So far I created my own implementation of AbstractInOutSyncMessageReceiver. That serve service implementation with MessageContext and obtain a monitor on service object.

But this issue is a subset of the new one that I just added today: 
http://issues.apache.org/jira/browse/AXIS2-1923

> Serve service implementation with MessageContext before calling business method.
> --------------------------------------------------------------------------------
>
>                 Key: AXIS2-1911
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1911
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: codegen
>    Affects Versions: nightly
>            Reporter: Ivan Latysh
>            Priority: Minor
>
> Improve generated MessageReceiver to inject MessageContext into service implementation before calling business method.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org