2 Replies Latest reply on Jul 19, 2017 7:19 PM by azizimranz

    Jboss cli script

    azizimranz

      Hi,

       

      I want to delete name="default" from

      <mail-session name="default" jndi-name="java:jboss/mail/Default">

      through running jboss cli.

       

      I can delete the jndi-name through this command /subsystem=mail/mail-session=java\:jboss\/mail\/Default:remove but cant figure it out how to delete the name attribute.

       

       

      Thanks

        • 1. Re: Jboss cli script
          jamezp

          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:

          /subsystem=mail/mail-session=default:remove

           

          That will remove the default mail session.

           

          --

          James R. Perkins

          • 2. Re: Jboss cli script
            azizimranz

            Thanks James,

             

            Yes that was working. I have done this yesterday.

             

            Thanks for the reply. Its correct answer.

             

             

            Regards

            Imran