0
有没有通过注释指定消息bean的配置名称的方法? 在jboss.xml
描述符,你可以有不同的配置和豆类绑定到特定的配置:Jboss消息Bean(EJB3) - 配置名称
<message-driven>
<ejb-name>PushUserAgentBean</ejb-name>
<destination-jndi-name>queue/PushUserAgent</destination-jndi-name>
<configuration-name>My Custom Message Driven Bean</configuration-name>
</message-driven>
然后在standardjboss.xml
您可以指定自定义拦截器栈等,为“我的自定义消息驱动Bean”的配置:
<container-configuration>
<container-name>My Custom Message Driven Bean</container-name>
<call-logging>false</call-logging>
<invoker-proxy-binding-name>custom-message-driven-bean</invoker-proxy-binding-name>
<container-interceptors>
<interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</interceptor>
<interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor>
<interceptor>org.jboss.ejb.plugins.RunAsSecurityInterceptor</interceptor>
是否有一种简单的方法可以通过使用注释来做同样的事情?我不介意使用供应商特定的注释(即非标准jboss注释)。
哪个版本的JBoss,4或5? – Yishai 2009-11-03 15:31:56
我正在使用JBoss 5 – 2009-11-04 11:35:50