开发者

Java EJB interfaces

开发者 https://www.devze.com 2023-04-10 00:52 出处:网络
Could anyone explain me how do the functions inside the HOME and REMOTE interfaces relate to the Bean object?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号