facebook

Hot Sync Of XML to JBoss Via MyEclipse

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #272850 Reply

    James Hurff
    Member

    I’ve attempted to find my answer in the JBoss forums and via Google. I have a simple question…

    I run JBoss 4.0.5 and JDK 1.4.2_XX

    Can I perform a hot sync of XML files (e.g. struts-config.xml, tiles-def.xml, spring application.xml) to JBoss via MyEclipse? I want to save the file and have the changes immediately deployed to the JBoss container like .java and .jsp files. Why can I not do this?

    #272872 Reply

    Riyad Kalla
    Member

    jhurff,
    MyEclipse will actually hot-sync this file (copy out the changed one) immediately. The problem is that Struts is not written to *poll* the XML file for changes, so you can update the XML file 700 times if you want, but Struts only parses it once and keeps that copy in memory.

    *NOTE: Struts may have a setting to have it repoll that file, but I don’t know what it is.

    So right now the only way to get Struts to reload the changes is to reload the web context itself, this forces the app server to kill the in-memory objects and reload them (which in turn causes Struts to reparse the XML file).

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Hot Sync Of XML to JBoss Via MyEclipse

You must be logged in to post in the forum log in