As of JBoss 3.2.7 there was a change to support the unique naming of EJB’s and MDB’s (see http://jira.jboss.com/jira/browse/JBAS-275).

 

This means you need to be able to set the local-jndi-name on the message-driven section of the jboss.xml, to allow you to fix the name of the EJBs binding and its MBean name.

 

Basically put knocked up a simple patch so that if you set the local-jndi-name on the ejb.bean for your MDB it will get put in the jboss.xml.

 

I wasn’t sure where to post this so here is the patch (based on the 1.2 HEAD from CVS)

 

Index: modules/jboss/src/xdoclet/modules/jboss/ejb/resources/jboss_xml.xdt

===================================================================

RCS file: /cvsroot/xdoclet/xdoclet/modules/jboss/src/xdoclet/modules/jboss/ejb/resources/jboss_xml.xdt,v

retrieving revision 1.42

diff -u -r1.42 jboss_xml.xdt

--- modules/jboss/src/xdoclet/modules/jboss/ejb/resources/jboss_xml.xdt           22 May 2005 10:17:29 -0000       1.42

+++ modules/jboss/src/xdoclet/modules/jboss/ejb/resources/jboss_xml.xdt        16 Jul 2005 14:14:24 -0000

@@ -481,9 +481,12 @@

      <XDtMerge:merge file="jboss-{0}.xml">

       <message-driven>

          <ejb-name><XDtEjb:ejbName/></ejb-name>                       

+                      <XDtClass:ifHasClassTag tagName="ejb.bean" paramName="local-jndi-name" paramNum="0">

+         <local-jndi-name><XDtClass:classTagValue tagName="ejb.bean" paramName="local-jndi-name" paramNum="0"/></local-jndi-name>

+        </XDtClass:ifHasClassTag>

         <XDtClass:ifHasClassTag tagName="jboss.destination-jndi-name" paramName="name">

          <destination-jndi-name><XDtClass:classTagValue tagName="jboss.destination-jndi-name" paramName="name"/></destination-jndi-name>

-        </XDtClass:ifHasClassTag>

+        </XDtClass:ifHasClassTag>      

         <XDtConfig:ifConfigParamGreaterOrEquals paramName="Version" value="3.0">

         <XDtClass:ifHasClassTag tagName="jboss.subscriber" paramName="name">

          <mdb-user><XDtClass:classTagValue tagName="jboss.subscriber" paramName="name"/></mdb-user>

 

 

Hope someone finds this useful J

 

Cheers

 

Philip

 

Reply via email to