In order to use an ObjectInputStream to read an object, you must use an ObjectOutputStream to write an object (see
here for a tutorial). What exactly does your URL reference?
Also, you say broker-servlet and communication-servlet are servlets, but they do not appear to implement the
Servlet interface or its sub-interfaces. Do you understand how HTTP and Servlets work?