[jboss-jira] [JBoss JIRA] Commented: (JBAS-6820) MDBs default rar name should be configurable

Justin Bertram (JIRA) jira-events at lists.jboss.org
Wed Mar 3 11:28:11 EST 2010


    [ https://jira.jboss.org/jira/browse/JBAS-6820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12517917#action_12517917 ] 

Justin Bertram commented on JBAS-6820:
--------------------------------------

org.jboss.ejb3.mdb.MessagingContainer contains a static final String named JMS_ADAPTOR that is hard-coded to "jms-ra.rar."  If the MDB is not annotated with @ResourceAdapter this adapter name is used.  However, this doesn't *necessarily* need to be changed.  The ejb3-interceptors-aop.xml can be changed to apply the @ResourceAdapter annotation to all MDBs by default.  For example:

   <domain name="Message Driven Bean" extends="Intercepted Bean" inheritBindings="true">
      <bind pointcut="execution(public * *->*(..))">
         <interceptor-ref name="org.jboss.ejb3.security.AuthenticationInterceptorFactory"/>
         <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptorFactory"/>
      </bind>
      <!-- TODO: Authorization? -->
      <bind pointcut="execution(public * *->*(..))">
         <interceptor-ref name="org.jboss.ejb3.tx.CMTTxInterceptorFactory"/>
         <interceptor-ref name="org.jboss.ejb3.stateless.StatelessInstanceInterceptor"/>
         <interceptor-ref name="org.jboss.ejb3.tx.BMTTxInterceptorFactory"/>
         <interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/>
         <interceptor-ref name="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor"/>
         <!-- interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/ -->
         <stack-ref name="EJBInterceptors"/>
      </bind>
      <annotation expr="class(*) AND !class(@org.jboss.ejb3.annotation.Pool)">
         @org.jboss.ejb3.annotation.Pool (value="StrictMaxPool", maxSize=15, timeout=10000)
      </annotation>
      <annotation expr="class(*) AND !class(@org.jboss.ejb3.annotation.ResourceAdapter)">
         @org.jboss.ejb3.annotation.ResourceAdapter(value="hornetq-ra.rar")
      </annotation>
   </domain>

> MDBs default rar name should be configurable
> --------------------------------------------
>
>                 Key: JBAS-6820
>                 URL: https://jira.jboss.org/jira/browse/JBAS-6820
>             Project: JBoss Application Server
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: EJB3, JCA service
>    Affects Versions: JBossAS-5.1.0.Beta1
>            Reporter: Clebert Suconic
>            Assignee: Carlo de Wolf
>             Fix For: JBossAS-6.0.0.M3
>
>
> The default rar-name should be configurable.
> Most certainly we could rename jms-ra.rar to jbm-something or whatever name we choose at that point.
> JBM2 will be the default by JBoss6, and I would like to use a different name by then.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list