You're not actually removing the JNDI name with that command. You're removing a resource named
java\:jboss\/mail\/Default:remove, If you want to remove the default mail session you need to use the following CLI command:
That will remove the default mail session.
James R. Perkins
Yes that was working. I have done this yesterday.
Thanks for the reply. Its correct answer.