• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can an inner class be remotable?

 
Stephanie, Smith
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!