Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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
 
reply
    Bookmark Topic Watch Topic
  • New Topic