How do I stop/start EJB Apps in JBOSS 6.0 from the command line -


If I use the Web-based administrative console for JBOSS, then I can navigate applications- EJB2 JARs and I can see a list of posted EJBs. . By clicking on any one of these, I get a page that allows me to start and stop the selected EJB. However, I can not find a command line equivalent. Is there any way to start / stop EJB applications in the JBSS through command line?

I am going to download and manage the app to use the applications of the CloudIQ Manager and I need to be able to start and stop the script. How I got personalized EJB To install and uninstall through the command line, it should be able to start, stop and ask for its status (start / stop). "Itemprop =" text ">

If you want to manage Jabes through a script, then you should probably use the twiddle tool. More information is here.

If you want to stop warfare, then you can do something like this:

  • List wise list and the name of his bean:
 Twiddle.sh query 'jboss.web.deployment: *' jboss.web.deployment: war = / root jboss.web.deployment: war = / admin-console 
  • turn
  • Ul>
     Twiddle.sh invoke 'jboss.web.deployment: war = / root' Start 

    Unfortunately I can not get any similar resolution for the EJB application. You can use these commands using this kind of application You can find:

     twiddle.sh query 'jboss.j2ee: *' 

    and later you can stop or launch some applications. Unfortunately for me this Does not work correctly.

    But you always do this kind of application unchanged and deployed Are spun. You can create it like this:

    • Deploy
     twiddle.sh "jboss.system: service = mainDeployer" Deploy file: /// path / Co / project year 
    • unchanging
     twiddle.sh call "jboss.system: service = mainDeployer" undeploy file: /// path / to / ProjectEAR.ear 

    deployed

     twiddle.sh "jboss.system: service = MainDeployer" Deploy file: ///path/to/ProjectEAR.ear 

    But you have to remember about such things:

    • If you use hot deployment (HDScaner service) then you can not apply to the deployed directory (it will be automatically deployed
    • if your application is not in the deployed directory then it is installed during the server startup And you can call it twiddle command

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -