On Tue, Jul 02, 2002 at 10:45:31PM +1000, Dmitri Colebatch wrote:
> It certainly is possible to use XDOclet for MDB with JBoss 2.4.  My advice
> would be to have a look at the ejb-jar.xml that it being generated.  It
> looks as though there is either an empty element, or a missing element that
> is required.  Have a look (or post) the relevant part of the ejb-jar.xml
> file and see if you (/we) can see anything obvious thats missing - and then
> look for thte corresponding xdoclet cause.
Here is the descriptor that crashes JBoss.
      <!-- Message Driven Beans -->
      <message-driven >
         <description><![CDATA[This bean receives messages from sources and 
sensors.]]></description>

         <ejb-name>com.javart.monsun.core.ReceiverMessage</ejb-name>

         <ejb-class>com.javart.monsun.core.ReceiverMessageBean</ejb-class>

         <transaction-type>Container</transaction-type>
         <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
         <message-driven-destination>
            <destination-type>javax.jms.Topic</destination-type>
         </message-driven-destination>

      </message-driven>
I've looked at the JBoss' source and it seems that it needs
"subscription-druability" entity. But it's specified in the /** */
section (as you can see below) so I don't understand why it is not
included in ejb-jar.xml :(

> > I need a MDB which will be deployed to JBoss-2.4.6. I've put following
> > comment before class:
> >  * @ejb:bean                    destination-type="javax.jms.Topic"
> >  *                              acknowledge-mode="Auto-acknowledge"
> >  * subscription-druability="NonDurable"
> >  * transaction-type="Container"
> >  * @ejb:ejb-ref ejb-name="monsun/Source"
> >  * @ejb:ejb-ref ejb-name="monsun/Sensor"
> >  * @ejb:ejb-ref ejb-name="monsun/SourceManager"
> >  * @jboss:destination-jndi-name name="topic/monsun"
-- 
--= Michal [EMAIL PROTECTED] =--
--= finger me for PGP public key or visit http://michal.waw.pl/PGP =--
--==--==--==--==--==-- Vodka. Connecting people.--==--==--==--==--==--
A chodzenie po górach SSIE!!!


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to