Is it possible to programmatically configure MDB?

I am currently working on an EJB 3.1-based project running on GlassFish that uses a custom platform to configure the functionality of any SessionBeans. Using this, we can enable, disable, and reconfigure most services at runtime. Unfortunately, we cannot extend this to support MDB negotiation. I would like to set a selector that uses MDB based on configuration information and reconfigure it if the settings change.

Unfortunately, I could only come up with a SessionBean that creates MessageConsumers initially in configuration-based JMS sessions and have JMS handleb messages from MessageListeners, but I was told that we would lose concurrency and transaction processing for the EJB system, since we would no longer use MDB.

So, is there a way to do what I'm looking for using MDB? Someone told me that there are some planned extensions in new EJB and JMS projects, but I cannot find a pointer to this specific topic.

+5
source share
1 answer

No, MDBs are configured by Deployer during deployment.

A similar question here: Setting the MappedName annotation in a dynamic Bean message

0
source

All Articles