Original Post
My situation is: I need to connect the Client to the Server and somehow print out information contained within an object inside a Remote Object to the Client. I don't need to manipulate it through the Client, just print it to the Client console.
How do I do that? You can't pass objects from Server to Client unless they're serializable and I can't think of any way to have the Server do something to solve this instead.
All I can think of is individual methods to painstakingly extract each piece of data in String form. So I put identification info in the method and get the Server to find the object and return the data in String form, but that seems ugly and tedious.
Implementing serializable seems like an awful pain, so is there any other way? Maybe I'm missing something obvious. I'm not used to RMI.
How do I do that? You can't pass objects from Server to Client unless they're serializable and I can't think of any way to have the Server do something to solve this instead.
All I can think of is individual methods to painstakingly extract each piece of data in String form. So I put identification info in the method and get the Server to find the object and return the data in String form, but that seems ugly and tedious.
Implementing serializable seems like an awful pain, so is there any other way? Maybe I'm missing something obvious. I'm not used to RMI.