Zoyinc
  • Home
  • Contact
  • Categories
    • CD Archiving
    • GIMP
    • Linux
    • MythTV
    • Open Media Vault
    • Technology
    • VMware
    • WordPress
    • YouTube
  • About


Live editing of a war in JBoss

By

Tony

,

May 19, 2015

When I am writing some JSP or web app or similar I am a real fan of being able to edit a file and the changes get picked up by the application server immediately and I can see my changes quickly. Tomcat has done this for ages but now I need to develop in JBoss EAP and it didn’t seem to allow this.

To deploy to a standalone instance of JBoss one way is to place your war file in:

\jboss-eap-6.1\standalone\deployments

+ to enlarge

Another is to create a directory which contains your exploded war, so something likeBut to make this deploy create a text file in the deployments directory called “myapp.war.deployed”. This will make JBoss realize it is an exploded deploy.

Finally you need to start up JBoss and go to the management console and look for “Deployment Scanners”:

+ to enlarge

Once you have got to the above screen click on the “Edit” button in “Deployment Scanners” and enable “Auto-deploy exploded”, it is disabled by default. The “Scan interval (ms)” is how many milliseconds you need to wait until JBoss notices you have changed the file.

Now you can edit files in “\standalone\deployments\myapp.war” and almost instantly they will be live.

One advantage of this is that the directory “myapp.war” can then be zipped up to a file called “myapp.war” and deployed as a genuine war file.

Related

Editing menu shortcuts in Gnome 3 on Fedora 16
Enabling SSH access to Debian live USB
Create a Debian Live USB flash drive
New Train Driver At Manukau Live Steamers
Recent

  • AlmaLinux GUI – no taskbar or application shortcuts

    AlmaLinux GUI – no taskbar or application shortcuts

  • AlmaLinux 9.5 base VM

    AlmaLinux 9.5 base VM

  • Reset Kodi thumbnails

    Reset Kodi thumbnails

  • Set default settings values in Kodi skins

    Set default settings values in Kodi skins

  • Add/Remove/Reset music/video libraries in Kodi

    Add/Remove/Reset music/video libraries in Kodi

  • Zoyinc Kodi skin on Sony TV

    Zoyinc Kodi skin on Sony TV

  • [L] – WordPress UAM Locked Post

    [L] – WordPress UAM Locked Post

  • Import Pictures and Videos – images not previewed

    Import Pictures and Videos – images not previewed

  • Find My Train

    Find My Train

  • WordPress style name not visible

    WordPress style name not visible

About Zoyinc

  • Contact Us
  • Zoyinc Disclaimer
  • Google Search Console
  • Privacy Policy
  • Site Statistics
  • Login

Apache Auckland Backup CD CentOS Centos7 Children Configuration Debian Error ESX ESXi Fedora Firewall Install Josh Kids Kodi Linux MariaDB MySQL MythTV New Zealand OKD OMV Open Media Vault OpenShift PHP Player Python RAID RedHat Red Hat Rip School Setup SMB SonicWALL Spark tags Train Trains VLAN VM VMware Weaver Windows WordPress YouTube

Powered by

This site is licensed under a Creative Commons Attribution 4.0 International License.