• Post Reply Bookmark Topic Watch Topic
  • New Topic

Making an Activatable class without extending

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 http://java.sun.com/j2se/1.3/docs/api/java/rmi/activation/Activatable.html)
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!