where to store configuration info in EJB3

Discussions

EJB design: where to store configuration info in EJB3

  1. where to store configuration info in EJB3 (1 messages)

    I'm new to EJB3 and looking for some best practice advice. I need to store some configuration information to connect to another service from one of my session beans. Can anyone suggest what would be the best way to implement this? properties file? plain configuration file? other alternatives? examples?
  2. I guess you can use a properties file. By doing so you can change it to different servers and services at any time without changing the code.