IntroductionObviously each deployment of the EJB will need to configure the mail server that it is to used as well as several other properties. Being an EJB this is most easily done through the component's JNDI environment. How to configureThe following JNDI settings may be configured in several ways:
Your exact choice from the above options will be determined by the features of the container you are using and your development methodology. I have listed them in my own order of preference, - after all one of the declared advantages of EJBs is the ability to integrate solutions made up of discrete components. What to configureThe following table explains the purpose of each JNDI variable.
|