• 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

MDB Annotation properties Configuration File

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
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 ?

Example:

@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.


 
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe this will help you.

http://community.jboss.org/message/531130#531130
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic