• Post Reply Bookmark Topic Watch Topic
  • New Topic

MDB Annotation properties Configuration File  RSS feed

Csk Kumar
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In our project we are are using an MDB that listens for a message from a specific queue. It is defined as an annotation.

But how to make the annotation property values ( such as maxSession value for an MDB) user-configurable through configuration file ?


@ActivationConfigProperty(propertyName = "maxSession", propertyValue = "20").

In order to change the value of the maxSession, the code has to be compiled everytime.

Is there a way to make it user configurable so that the recompilation of code is not required and by just changing the maxSession value to "30" and restarting the jboss it should be working.

Kindly help.

Reference Code:

Currently SDPconstants class file is used for defining the constants.

The annotation looks like below.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!