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

Hasan Muhammad updated TUSCANY-1086:
------------------------------------

    Attachment: JavaSerDeserialize_NewFiles_TestCase.zip
                JavaSerDeserialization.patch

I have attached the following:

1. JavaSerDeserialization.patch: This is a patch file containing the changes i 
made to existing SDO code. This patch file has been created from the 
Tuscany/java directory.

2. JavaSerDeserialize_NewFiles_TestCase.zip: This zip file contains the two new 
classes (SDOObjectInputStream and SDOObjectOutputStream) and a JUnit Test case. 
This zip file has been created from the Tuscany/java directory. You can simply 
unzip it there, and the source files will be restored in the proper directory.

So far, when i directly serialize the DataObject, it works with the changes i 
have made. The method in the testcase to test this is 
testScopeDefinedSerializeDeserializeOfDataObject()

The deserialization when a DataGraph has been serialized fails because it cant 
find the type. Again this happens because for a DataGraph, it is delegated to 
the readExternal() of the EDataGraphExternalizable class, where currently i 
could not find a way to pass on the scope information and hence it cant find 
the type. The testcase method for this test is 
testScopeDefinedSerializeDeserializeOfDataGraph().

Although the class SDOObjectOutputStream is not neccessary for this, i included 
for total symmetry

> Scope defined java serialiazation/deserialization of SDO
> --------------------------------------------------------
>
>                 Key: TUSCANY-1086
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1086
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SDO Implementation
>    Affects Versions: Java-M2
>         Environment: All
>            Reporter: Hasan Muhammad
>             Fix For: Java-SDO-Mx
>
>         Attachments: JavaSerDeserialization.patch, 
> JavaSerDeserialize_NewFiles_TestCase.zip
>
>
> Need to have a scope defined java serialization/deserialization of SDO's. 
> Currently it can be done only in the Global/default scope. Have to fix this 
> by using helperContext as the scope for creating ObjectInputStream and 
> ObjectOutputStream.

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

Reply via email to