2 Replies Latest reply on Dec 14, 2010 12:36 AM by jaikiran

    Manage EAR using twiddle

    rakcheru

      Greetings,

       

      JBoss : 4.2.3

       

      I am trying to find a way to stop/start an EAR module from automation script. Came across twiddle and find it quite powerful in terms of app management automation. I was able to access WAR modules but NOT the EAR modules.

       

       

      The EAR is healthy and working fine. Also, twiddle's 'query' command result does show the EAR module

                jboss.j2ee:service=EARDeployment,url='myapp.ear'

       

      However, somehow i am not able to execute info/invoke command for that EAR. Tried following for which twidlle reports InstanceNotFoundException.

                twiddle -s rakeshk:1099 info jboss.j2ee:service=EARDeployment,url=myapp.ear

                twiddle -s rakeshk:1099 info jboss.j2ee:service=EARDeployment,url='myapp.ear'

       

       

      Tried google and JBoss wiki but couldn't find a solution so far. It would be great if soemone can help me on this.

       

      Thanks & Regards,

      Rakesh

        • 1. Re: Manage EAR using twiddle
          rakcheru

          Fix was easy.

           

          Just for the record. The application MBean name has single quotes. I didnt escape them which caused the issue. Following worked fine

           

                    twiddle -s rakeshk:1099 info jboss.j2ee:service=EARDeployment,url=\'myapp.ear\'

           

          Thanks & Regards

          Rakesh

          • 2. Re: Manage EAR using twiddle
            jaikiran

            Try:

             

            twiddle -s rakeshk:1099 info  jboss.j2ee:service=EARDeployment,url=\'myapp.ear\'