On 3/2/07, sebb <[EMAIL PROTECTED]> wrote:
On 01/03/07, Vincente <[EMAIL PROTECTED]> wrote:
> I have this applet that seralize an Java object and sends it to the
servlet
> for processing.
>
> The method in the applet that sends the serialized Java object to the
> servlet as follows:
>
> public void sendObject( URLConnection con , Object obj ) throws
IOException
> {
>
> ObjectOutputStream out = new ObjectOutputStream(
> con.getOutputStream() );
> if ( obj != null ) {
> out.writeObject( obj );
> }
> out.close();
> }
>
> I have actually written a program to serialize my object into a file.
>
> I've added in a Http Request into the test plan. I've set "Send a File
With
> the Request" with the serialized object file and Mime Type is
> application/x-java-serialized-object.
>
With regards to the above issue, I've written a separate class to connect to
the servlet and calling it using the BeanShell sampler.
:)