@ Modified protected void modified ( ComponentContext context ) throws Exception { processProperties ( context . getProperties ( ) ) ; deregisterJavaMailMBean ( ) ; registerJavaMailMBean ( ) ; }
The Modified method is how the properties that are defined in the mailSession object of the server . xml are extracted and stored in the sessionProperties .