glassfish对ejb cache的监控

打开ejb监控,可以看到sessionBeans,看不到Entity Beans。下面是段精彩的回答:
"Entity Beans" is really a misnomer, specifically in the EJB context today.

In EJB2, when we had CMP and BMP Entity Beans (we still do, but...), the Beans were first class components managed by the container much like session beans.

With the JPA, Entities no longer hold that status. In fact, the EJB container really has no knowledge of a JPA Entity at all, since the container itself no longer manages them.

JPA Entities are just POJOs today with little special status, and are managed by the EntityManager.

While EJB3 gives ready access to an EntityManager for you applications, that's about as far as the container goes in terms of exposing the inner aspects of it to the administrator. The JPA and it's entities are more a component of your application than really a component of the container.

So, that's why you do not see any activity of your "Entity Beans" using the EJB monitoring -- they're simply not EJBs any more.

You would need to look at whatever monitoring capabilities are provided by your JPA provider, and how they may expose their internal cache statistics and operations to an administrator.

http://forums.java.net/jive/message.jspa?messageID=363515
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值