Samson
Samson

Reputation: 2821

Java EJB interfaces

Could anyone explain me how do the functions inside the HOME and REMOTE interfaces relate to the Bean object?

The interfaces are instanciated so that the functions are used. But the functions body rests only in the Bean object. What am I missing?

Upvotes: 0

Views: 224

Answers (2)

Michael Borgwardt
Michael Borgwardt

Reputation: 346300

The actual EJB instances will typically be instances of java.lang.reflect.Proxy that delegate calls to the bean's implementation class after doing their transaction-, clustering- and security-stuff.

Upvotes: 3

duffymo
duffymo

Reputation: 308763

The Java EE container is dealing with those details for you. It knows to find the bean implementation when a call is made to that interface. It hides all the magic from you.

Upvotes: 1

Related Questions