• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Dynamically or programmatically assigning Message-driven bean (MDB) destinations without rebuilding

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've created code for an MDB to listen to a particular JMS destination.

The tricky part is that the same MDB is required to listen to multiple JMS destinations, which may not be known at the time the application is deployed. This means that we require the ability to add MDB instances to listen to new destinations (without rebuilding the jar/ear file)

I am able to accomplish this by deploying one MDB per JMS destination using an ejb-jar.xml file inside the MDB jar. As they are packaged in a jar/ear, these files won't be accessible to the end user for configuration.

As such, I require some way to deploy or configure the MDBs outside of the jar package.

I've tried to accomplish this using the following methods

- XML deployment descriptors outside the ear/jar (can't find how to reference the EJB which is already deployed inside the jar file)
- programmatically creating and deploying the MDBs (can't find how to configure or deploy an MDB - this could potentially occur within the ear/jar)

How can I achieve it?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic