anchor.diff:  .. Username: `johnsmith@gmail.com`
   .. Password: `supersecret`
   
  -It's necessary to change all occurrences of the previous JNDI name to the new one. So, search for `mail/App` and change it to `java:/mail/App`. You may find such references in `@Resource` annotations. Change them to `@Resource(name = "java:/mail/App")`. 
  +You can also perform the same configuration using the following command lines:
  +
  +    [standalone@localhost:9990 /] /socket-binding-group=standard-sockets/
  +	      remote-destination-outbound-socket-binding=mail-smtp-gmail:add(host=smtp.gmail.com, port=465)
  +
  +    [standalone@localhost:9990 /] /subsystem=mail/mail-session=App:add(jndi-name=java:/mail/app)
  +
  +	[standalone@localhost:9990 /] /subsystem=mail/mail-session=App/server=smtp:add(
  +        outbound-socket-binding-ref=mail-smtp-gmail,
  +		username=your_email@gmail.com,
  +		password=secret,
  +		ssl=true)
  +		
  +It's necessary to change all occurrences of the previous JNDI name to the new one. So, search for `mail/App` and change it to `java:/mail/App`. You may find such references in `@Resource` annotations. Change them to `@Resource(name = "java:/mail/App")`.
   
   ## Migrating the Security Realm
   
  
positive.code: 
      #> jboss-cli.sh(.bat) --connect 
  
  It connects to `localhost` and port `9990` by default. The prompt looks like `[standalone@localhost:9990 /]`, indicating it is ready to accept admin commands. Type `quit` when you are done. Command line examples are spreaded througout the text. Before using them, please remove all line breaks and identation spaces, making them a continous text string. We decided to change the presentation to improve readability. 
   
  ## Migrating The Database Connection
  
  
negative.code:                 <user-name>db_user</user-name>
                  <password>secret</password>
              </security>
              <validation>
                  <validate-on-match>true</validate-on-match>
                  <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker”/>
                  <exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLExceptionSorter”/>
              </validation>
          </datasource>
          {...}
      </datasources>
  ----
  
  For more datasource examples, please consult the https://access.redhat.com/site/documentation/en-US/JBoss_Enterprise_Application_Platform/6/html/Administration_and_Configuration_Guide/sect-Example_Datasources.html[JBoss EAP 6 documentation] that also applies to WildFly.
  
  ### Application Configuration for the Datasource
  
  