json.gson : 'NodeMap' in ConfigurationContext doesn't get cleared with service redeployment

Jayanga Dissanayake <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <CAL1_ndz120c03i-12Wyci5GEcd8kMGmnx=gz4ScZXExFbjhC6A@mail.gmail.com>
Hi All,

I am trying out some samples with axis2 json.gson [1] implementation. In my
sample I have an Axis2 service which accept and sends json contents.
According to the json.gson implementation, it creates the 'NodeMap' in the
first invocation and sets it in the ConfigurationContext.

I made some changes to the json mappings in my service and simply redeploy
the service without restarting the server. While doing this I found out
that org.apache.axis2.json.gson.GsonXMLStreamReader failed to read the
request. While debugging the code found out that, this is happened by the
un-updated 'NodeMap' in the ConfigurationContext.

Though my service get redeployed, the 'NodeMap' doesn't get updated. Once I
try to access the service it tries to parse the request with old 'NodeMap'
and fails. ConfigurationContext doesn't get updated/invalidated with
service redeployment.

So, shouldn't the 'NodeMap' be stored in a context like ServiceContext,
 which get refreshed with service redeployment.

Can someone please help me to understand and solve the above issue.

[1]
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/json/src/org/apache/axis2/json/gson/

Thanks,
Jayanga.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.