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 "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2008/07/04 13:35:36 UTC

[jira] Resolved: (AXIS2-2611) Does ServiceGroupContext property data structures need to be synchronized?

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

Deepal Jayasinghe resolved AXIS2-2611.
--------------------------------------

    Resolution: Fixed

> Does ServiceGroupContext property data structures need to be synchronized?
> --------------------------------------------------------------------------
>
>                 Key: AXIS2-2611
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2611
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.1.1
>         Environment: Linux Fedora fc5, tomcat 6.0.7, java1.5.0_11, Axis2 1.1.1
>            Reporter: Federica Ciotti
>            Assignee: Deepal Jayasinghe
>
> My service is a service group composed by two service classes deployed in the same .aar archive.
> The two classes extend a superclass that declares a TestingManager object and put it in the service context:
>                         protected TestingManager testingManager;
>                         sgc.setProperty(ServiceGroupContext.COPY_PROPERTIES, "true");
> 			groupCtxState.put(Constants.TESTINGMANAGER, this.testingManager); 
> Both of the classes access the same data structure by doing:
> 	TestingManager tm = (TestingManager) this.sgc.getProperty(Constants.TESTINGMANAGER);
> if the service needs to read the property 
> and:
> 	this.sgc.setProperty(Constants.TESTINGMANAGER, tm);
> to save the modified object.
> Since the two classes both write and/or read the same property, what about synchronization?
> Does Axis2 manages the synchronization?
> Many Thanks

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