Borland Enterprise Server contains an example MDB in the C:\<BES-install-dir>\examples\ejb\mdb directory. The example consists of the MDB HelloBean.java and the client MdbClient.java. The same bean can be used to consume messages from both queues and topics.The MDB is defined in the standard ejb-jar.xml deployment descriptor file. This file defines two EJBs, one named HelloEJBQueue and another named HelloEJBTopic. Both beans are implemented as the same class, com.borland.examples.ejb.mdb.HelloBean. This class can be used for this example without modification.If you want to use container managed XA transactions with the HelloEJBQueue MDB, make the following changes to the deployment descriptors, ejb-jar.xml and ejb-borland.xml.If you do not want to use container managed XA transactions with the HelloEJBQueue MDB, make the following changes to the deployment descriptors, ejb-jar.xml and ejb-borland.xml.
Copyright © TIBCO Software Inc. All Rights Reserved.