阅读背景:

我可以将属性注入JPA实体侦听器

来源:互联网 

I could prototype this and see what happens, but I am being lazy. I want to be able to inject an EJB3 into my JPA Entity Listener so that it can access functionality of the EJB during the PrePersist operation. Is that possible? If not... then under JBoss, will the Listener be created once, or once per method invocation? I guess I am trying to understand how lightweight each invocation will be in terms of doing JNDI lookups etcI could prototype this and see what happens, bu




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: