• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Can an inner class be remotable?

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Get out of my mind! Look! A tiny ad!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic