Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Making an Activatable class without extending  RSS feed

David Duran
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've read on how to export a Unicast object w/o extending UnicastRemoteObject:
UnicastRemoteObject.exportObject ( this );
But does anyone know how to do it with the Activatable class? The class itself has 4 constructors, 2 of which imply themselves the ones to be called if you're not extending the Activatable class. (see
I'd like to use the first constructor because it's as simple and similar as its Unicast counter-part:
exportObject(Remote obj, ActivationID id, int port)
But the third one implies that I ought to use that one since I'm not extending Act. Since I'm not passing any location or data, I'm a little wary of calling this.:
exportObject(Remote obj, String location, MarshalledObject data, boolean restart, int port)
Any thoughts?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!