Hello All,
 
I cannot find documentation on what Hessian can send as an object
parameter and what it can't. Can someone clarify for me please? Also I
am seeing some very bizarre behaviour.
 
For example using Hessian I expose this interface as a HessianServlet
(server side)
 
public interface RemoteService
{
  public void sendScript(Script script);
 
  public Script getScript(int scriptId);
}
 
My Script object for this example is relatively simple (getters and
setters omitted for clarity)
 
public class Script implements Serializable
{
  private int scriptId;
  private List questions;
}
 
....where questions is a List of Question objects
 
public class Question implements Serializable
{
  private String question;
}
 
 
When my HessianClient constructs a Script object (with some questions)
and calls executeScript(Script) the server receives a Script object no
problem.
 
When my HessianClient calls getScript(int) I get a Script object but the
questions stored in the list are not Question objects but HashMaps?? Any
idea what is going on?
 
I am using JDK 1.4.2 (i.e. no generics) and Hessian 2.1.12
 
 
Thanks
Paul
_______________________________________________
hessian-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/hessian-interest

Reply via email to