File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes Stubs, Skeletons, Ties.... oh my! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Stubs, Skeletons, Ties.... oh my!" Watch "Stubs, Skeletons, Ties.... oh my!" New topic

Stubs, Skeletons, Ties.... oh my!

Rob Poulos
Ranch Hand

Joined: Aug 21, 2009
Posts: 49
I am looking for some clarification regarding the differences between skeletons and ties. Ive done some searching on google and have only found the following info:

A skeleton for a remote object is a JRMP protocol server-side entity that contains a method which dispatches calls to the actual remote object implementation.

A tie for a remote object is a server-side entity similar to a skeleton, but which communicates with the client using the IIOP protocol.

In my Cameron McKenzie SCJA Mock Exam Question book (Q8-7, pg.185) i have the following Question & Answer:

Which of the following 2 are associated with distributed EJB?:

A: ties
B: stubs
C: skeletons
D: marshals

Answer: A & B. Stubs are provided to the client invoking the EJB, and ties sit on the server side. Messages back and forth from the client to the server are marshalled back and forth through these 2 objects. skeletons are associated with otherdistributed technologies.

how are skeletons not associated with EJB's? should skeletons only be used between 2 non-J2EE servers and/or non-Enterprise JavaBeans?

clients to distributerd Servlets, State(less) beans, etc method invocation should only use ties?

clients to POJO method invocation should only use skeletons?

any help is appreciated

SCJA, ITIL V3 Foudation, Studying for SCJP6
Edward Harned
Ranch Hand

Joined: Sep 19, 2005
Posts: 291

Skeletons haven't been in use for almost a decade. It's so far back I don't remember what release dropped them.

Ed's latest article: A Java Parallel Calamity
Rob Poulos
Ranch Hand

Joined: Aug 21, 2009
Posts: 49
thank you for the reply... however it doesnt answer my question... I still woud like to know what the differences are. I asked the manager of Back End Applicaitons at my work who primarily deals with java code and he only knew of Skeletons, he had never even heard of a tie...

And, if ties are so popular in Java why cant i find information on the internet about them?
Edward Harned
Ranch Hand

Joined: Sep 19, 2005
Posts: 291

_Tie, instead of _Stub, is generated by rmic when you compile with the iiop feature.
Cory Hartford
Ranch Hand

Joined: May 16, 2011
Posts: 82

I know this is old, but I didn't see a good answer to the OP. I am working on the same deal and found this Oracle link that does a pretty good job of explaining what these things are. Hopefully it helps some others.

Ties,Skeletons, Ties

‎"The greatest of all weaknesses is the fear of appearing weak." - JB Bossuet
I agree. Here's the link:
subject: Stubs, Skeletons, Ties.... oh my!
Similar Threads
Stub vs. Skeleton
Whizlabs SCJA Preparation Kit v 6.0.1: Beware and Enjoy
stub and skeleton
remote reference