What is the best way to manage feature sets to apply to an EJB and can be easily changed between machines / environments (e.g. DEV, TEST, PROD)? For example, is there a way to configure your EJB properties on the application server (which ensures that you can change them by machine / environment).
In particular:
1) I have a Singleton EJB that requires a specific set of properties (environment). Are there annotations that are used to tell the EJB where to look for these properties and automatically apply them to the bean?
2) What is the best way to manage different sets of properties, for example dev, test, prod, so that the J2EE application is portable between servers and you can easily manage the properties specific to each server?
If there are good documentation links, let me know. I figured it out and did not see anything directly in the above paragraphs.
source
share