aspose file tools
The moose likes Distributed Java and the fly likes Making an Activatable class without extending Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "Making an Activatable class without extending" Watch "Making an Activatable class without extending" New topic
Author

Making an Activatable class without extending

David Duran
Ranch Hand

Joined: Feb 11, 2002
Posts: 122
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?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: Making an Activatable class without extending
 
Similar Threads
Extending Data class for RMI
do i have to supply a port number when start server?
Not implementing the RemoteException
URLyBird's [Version 1.2.3] and network side
Remote Business Service - Delegating to Local