IntelliJ Java IDE
The moose likes Distributed Java and the fly likes Can an inner class be remotable? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "Can an inner class be remotable?" Watch "Can an inner class be remotable?" New topic
Author

Can an inner class be remotable?

Stephanie, Smith
Greenhorn

Joined: May 22, 2001
Posts: 12
I have two public interface that extends Remote
public interface InnerInterface extends Remote {}
public interface OuterInterface extends Remote {}
I then have a class (Outer) that contains an inner
class that implements the InnerInterface...
Something like this:

public class Outer extends UnicastRemoteObject
implements OuterInterface {
public InnerInterface inner getInnerObject();
private class Inner extends UnicastRemoteObject
implements InnerInterface
{
}
}
So my outer object is remotable. Can my inner object
be remotable since its a private inner class that implements
the public remotable (Inner) interface? That is if I return
the InnerInterface via getInnerObject() will this be
remotable?
If this is possible, how do I create the stubs for Inner using
rmic? ie what class name is used?
thanks

 
 
subject: Can an inner class be remotable?
 
Threads others viewed
Making Data "remotable"
Nested Interfaces
Inner Classes
Private inner class question
Please explain the output.
MyEclipse, The Clear Choice