Larry schrieb:
> I am only in control of the client Perl script. I can't change the
> server code.
I hope you can at least use the source of the server code for debugging.
> The server code expects to receive a Java object stream
> from the client (which is supposed to be an applet).
Using Java to create the stream seems to be the best option, then. You
simple create the objects and call a method to serialize them to a
stream. It is very straight-forward.
> I already have a bunch of Perl client scripts in place. I don't want
> to add a JVM as a dependency just for this one object stream.
> This is a hack for sure. But there is a place for
> hacks, imho.
Sure there is, but be warned that under these circumstances, it's not a
hack, it's a *MAJOR HACK*. I only allow myself to use hacks if they save
me a lot of time.
In your case, you have to options:
a)
- learn some basic java
- have a dependency on a jre in your client
b)
- learn a lot about the java serialization protocol
- setup a testing environment
- have a component in the client that is very difficult to maintain and
extend
I just don't think b) will save you time.
Timo