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 "Srinath Perera (JIRA)" <ji...@apache.org> on 2007/06/11 21:29:26 UTC
[jira] Commented: (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:comment-tabpanel#action_12503571 ]
Srinath Perera commented on AXIS2-2611:
---------------------------------------
The Jira is Question than a error, which should really have asked in mailing list. However to answer your question Axis2 contexts are not thread safe.
> 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