[
https://issues.apache.org/jira/browse/AXIS2-3367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rich Scheuerle resolved AXIS2-3367.
-----------------------------------
Resolution: Fixed
Committed revision 598734.
Fixed the reported issue and cleaned up some related areas.
> Performance: JAX-WS MessageContext getProperty/setProperty improvement
> ----------------------------------------------------------------------
>
> Key: AXIS2-3367
> URL: https://issues.apache.org/jira/browse/AXIS2-3367
> Project: Axis 2.0 (Axis2)
> Issue Type: Improvement
> Components: jaxws
> Reporter: Rich Scheuerle
> Assignee: Rich Scheuerle
>
> The JAX-WS MessageContext uses the local map on the Axis2 MessageContext to
> store properties.
> This code was written prior to the Axis2 MC property redesign, and should be
> improved.
> For example the current getProperty code is:
> public Object getProperty(String key) {
> if (DELEGATE_TO_AXISMC) {
> // only use properties that are local to the axis2 MC,
> // not the options bag. See
> org.apache.axis2.context.AbstractContext
> Iterator names = axisMsgCtx.getPropertyNames();
> for (; names.hasNext();) {
> String name = (String)names.next();
> if (name.equals(key)) {
> return axisMsgCtx.getProperty(key);
> }
> }
> return null;
> }
> return getProperties().get(key);
> }
> The new code will be:
> public Object getProperty(String key) {
> if (DELEGATE_TO_AXISMC) {
> // only use properties that are local to the axis2 MC,
> return axisMsgCtx.getLocalProperty(key);
> }
> return getProperties().get(key);
> }
> Kudos to David Strite (IBM) for finding this improvement.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]