我想有一个持续的通知类型。
因此,每个类型的消息将有它自己的通知类型和静态单身。
So, each message type will have it's own notifier type and static singleton.
同样有必要使用Around通知(拦截器)而不是Before通知,因为EJB3.0没有提供特殊的通知类型。
It would also be necessary to use Around advice (an interceptor) rather than Before advice, because EJB 3.0 does not offer specialized advice types.
应用推荐