1

Is the any option in hornetq to make an MDB to listen multiple queue. If so kindly provide a sample .

MaDa
  • 10,511
  • 9
  • 46
  • 84
vairam
  • 471
  • 1
  • 11
  • 26

1 Answers1

3

No. MDBs are deployment time objects that are wired via annotations or XML documents. If you want, you can reuse the same class to listen to multiple destinations by setting up multiple MDBs in your ejb-jar.xml, all referring to the same class. No, you cannot listen to programmatically created destinations because they must exist at deployment time.

John Ament
  • 11,595
  • 1
  • 36
  • 45