0 Replies Latest reply on Aug 5, 2008 4:54 AM by hamtho2

    Best way for dynamic user configuration

      Hi,

      I just created a timer-bean running a custom job at a defined interval. This service is annotated with @Service and @Management, so that it is startable/stoppable via the JMX-Console.

      Now I would like to add some properties that can be changed by the user - for example the interval between two timeouts etc - and does not need any repackaging or redeploying of the application.

      So what would be the recommended way for this configuration? Configuration file? Database-values? MBeans?
      Preferably it would be great if I can simply inject these properties from somewhere into my EJB - but this is not a must.

      Any ideas about this - probably very common requirement - would be greatly appricated.

      Thanks
      Thomas