Hello,

I'm trying to return object by reference using RMI. In plain RMI I can achieve this by extending UnicastRemoteObject (or something) by return type. How can I achieve this using RMI through Spring? (I haven't found anywhere...)

Like

interface Shop extends Remote {
Cart getCart()
}

interface Cart extends Remote {
void add(String something);
}

Thanks, S.