If you must build your web ui in Java, then Jython is probably the best way for you to go. Inside of your java code you need to create a Jython instance.

Then you can use the Jython pickle module to deserialize the data you are receiving. Last I remember Jython was equivalent to about CPython 2.2 so you might have an incompatibility between the 2 versions of pickle (just guessing on that, you'll have to try it)

-Josh


On 6 Oct 2006 04:10:54 -0700, virg <[EMAIL PROTECTED]> wrote:
Hi,

Yes, using python client we are able deserialize data using

r = pickle.loads(result).

where result is a response from the server and r is a dictionary after
deserialization.
For serialisation at the server written in python using
pickle.dumps(result, 2)

Now we are developing web based Client using java. So we are writing
client in java. If server and client are in python we dont see any
problems since we are using same serialisation tool "pickle". Now we
have seen problems because we are writing client in java. we did not
find equivalent function on java for this tool pickle. If i use
standard java desrialisation functions i am getting error as invalid
header becasue of incompatibility between python and java. Please help
me if you have any clue

regards,
- Virg

hanumizzle wrote:
> On 6 Oct 2006 02:29:59 -0700, virg <[EMAIL PROTECTED]> wrote:
> > Yes your are right. I will send a dictionary object from the server to
> > the client.
> > I already have client which is written in python. But we are migrating
> > the python client which is a command line tool  to Web UI client
> > (java).
>
> Please explain 'Web UI'. Can Python perform an equivalent function?
>
> -- Theerasak

--
http://mail.python.org/mailman/listinfo/python-list

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to