On 08/04/2008, Ipraveen <[EMAIL PROTECTED]> wrote:
>
>  hi
>   i have following code
>  public boolean SendSync(Object body)
>         {
>             if (sendTo == null)
>                 return false;
>
>
>             if (body != null && session != null )
>             {
>                 message.setObject(body);
>  }
>  }
>  but here i am getting error that body must be serialized?

The object must implement Serializable. So just cast it...

message.setObject((Serializable) object);

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Reply via email to