开发者

websphere EJSLocalWrapper

In my IBM websphere EJB app, there is a facade class. There also is a class like this: (as below)

EJSLocalStatelessFacade_f89c8f6d extends EJSLocalWrapper.

This is a websphere container generated class. From first glance, it is not immediately clear what this is doing? I recently moved from weblogic to websphere开发者_JAVA百科 and in weblogic, there is no such thing as localwrapper.


That generated class is the local proxy class. It performs pre/post-invoke handling (security, transaction, interceptors, allocates bean instance, etc.), and then invokes the underlying bean instance. The same effect could be accomplished using Proxy.newInstance, but the generated wrapper allows for greater efficiency.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜