开发者

Jboss Message Bean (EJB3) - configuration name

Is there a way of specifying the configuration name of a message bean through annotations? In the jboss.xml descriptor you can have different configurations and bind the beans to a particular config:

  <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>

Then in standardjboss.xml you can specify a custom interceptor stack, etc. for the "My Custom Message Driven Bean" configuration:

<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</开发者_JS百科interceptor>

Is there a simple way to do the same by using annotations? I don't mind using vendor-specific annotations (ie, non-standard jboss annotations).


As far as I know it is not possible. Interceptors are defined in XML only in JBoss. I was sure of that for 4, but looking around in 5 didn't find any changes in that area.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜