wood burning stoves
The moose likes EJB and other Java EE Technologies and the fly likes MDB Topic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "MDB Topic" Watch "MDB Topic" New topic

MDB Topic

Fernanda Silveira

Joined: Jul 24, 2003
Posts: 17
Hello all,

I have a MDB that listens to a topic. Now I want two MDB to read the same topic. What do I need to add in my ejb-jar.xml? Can I put both in the same xml file? Or in different jar files?

Here is my ejb-jar.xml:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>


Fernanda Silveira
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
All your bean types are declared in the same ejb-jar.xml file. It is only at deployment time that the two MDB types are bound to a specific Topic configured as a resource in the EJB server.

SCJP 1.4, SCWCD 1.3, SCBCD 1.3
I agree. Here's the link: http://aspose.com/file-tools
subject: MDB Topic
It's not a secret anymore!