Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2007

Tip: Looking for answers? Try searching our database.

EJB Client Stub jar - Concept Evaluation

Thread view: 
Manju - 31 Aug 2007 13:22 GMT
Dear all
When we deploy any Enterprise Java Bean (Session Bean or Entity
Bean ), it generates Client stub jar.
It is always said that this stub jar is for client as proxy and it is
supposed  to be reference to ejbs not the the actual implementation.
Practally when we extracted this client jar we could see the classes
of Actual EJB also.
In RMI , in stubs I have never found implementaed class.

So, what this client stub jar in EJB actually does?  Is this a
different concept of stub?
Because we always say that implementation is hidden

Waiting for answer
Regards

Manjiri Tatke
Lew - 31 Aug 2007 14:42 GMT
> Dear all
> When we deploy any Enterprise Java Bean (Session Bean or Entity
[quoted text clipped - 8 lines]
> different concept of stub?
> Because we always say that implementation is hidden

You use Google Groups, don't you, you poor benighted poster.

When one says that the "implementation is hidden" in object-oriented (OO)
programming, one doesn't mean that a human cannot get to it, one means that
client code cannot get to it.

Signature

Lew

Manju - 01 Sep 2007 06:41 GMT
Hi Lew,
Thanks.
But in oops also when we say implementation is hidden that means the
actual method body is hidden and via declaration of it in the
interface we access it.
In EJB for that we are using Home interface to gain access to actual
bean class and to access business methods via Component interface of
the actual bean methods as per specification. That means it is clear
indication that implementation of business mehtods must be
hidden....right?
then why the actual bean class has been provided in client stub jar?
I am confused.
Just check

Waiting for disussion on this

Regards

Manjiri Tatke

> > Dear all
> > When we deploy any Enterprise Java Bean (Session Bean or Entity
[quoted text clipped - 17 lines]
> --
> Lew
Lew - 01 Sep 2007 12:51 GMT
> Hi Lew,
> Thanks.
> But in oops also when we say implementation is hidden that means the
> actual method body is hidden and via declaration of it in the
> interface we access it.

Again, that applies only to client code.  The human is still perfectly able to
read the implementation.

Please do not top-post.  It makes following the conversation more confusing
and annoys those who would help you.

> In EJB for that we are using Home interface to gain access to actual
> bean class and to access business methods via Component interface of
> the actual bean methods as per specification. That means it is clear
> indication that implementation of business mehtods must be
> hidden....right?

Not really.  The Home interface is to help implement cross-JVM calls, and is
regarded by many as too kludgy.  Anyhow, this is still "hidden" in the sense
of inaccessible to client code and not in the sense of obscured to human eyes.

> then why the actual bean class has been provided in client stub jar?

I don't know.

Signature

Lew



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.