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?
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.
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.
精彩评论