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 "Sharath Reddy (JIRA)" <ji...@apache.org> on 2009/02/06 15:40:00 UTC

[jira] Commented: (AXIS2-3526) quickstartjibx sample's update() method doesn't work -- HashMap should be static?

    [ https://issues.apache.org/jira/browse/AXIS2-3526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12671149#action_12671149 ] 

Sharath Reddy commented on AXIS2-3526:
--------------------------------------

I tested this sample with Axis2 1.4, it works fine now. The service scope is set to 'Application', so the same instance will be re-used for subsequent invocations. I think this issue can be closed.


> quickstartjibx sample's update() method doesn't work -- HashMap should be static?
> ---------------------------------------------------------------------------------
>
>                 Key: AXIS2-3526
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3526
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: samples
>    Affects Versions: 1.3
>         Environment: All (I'm using Windows XP, TomCat, Java 1.5)
>            Reporter: Tom Chappell
>            Priority: Minor
>   Original Estimate: 0.75h
>  Remaining Estimate: 0.75h
>
> The quickstartjibx sample's update() method does not cause a stock's price to be updated (subsequent getPrice() calls continue to return 42), presumably because the HashMap is not static, and each invocation is happening on a new instance of the server-side class.  Making the HashMap private, as it is in some of the other samples, corrects the problem.

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