This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes Stub Skelton doubt ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Stub Skelton doubt ?" Watch "Stub Skelton doubt ?" New topic

Stub Skelton doubt ?

manish basotia
Ranch Hand

Joined: Jan 12, 2004
Posts: 47
If i have an application in which there 10 remote class with similar kind of remote function in them. do i need to create 10 stub and skelton for that.
Please reply ASAP
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

Yes, each implementation needs it's own stub and skeleton. You would only need one remote interface class though (as long as all the methods were the same). The stub and skeleton are used to talk to the specific implementation of the generic remote interface.

This isn't as bad as it sounds... if you set things up correctly, the stub gets downloaded dynamically by the client, so the client doesn't need a local copy.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
wood burning stoves
subject: Stub Skelton doubt ?
It's not a secret anymore!