-
1. Re: Jboss 5.1: Unable to enable hot deployment with custom deploy directory
jaikiran Sep 2, 2010 4:16 AM (in response to rsangam)Hot deployment isn't supported for external deploy folders.
-
2. Re: Jboss 5.1: Unable to enable hot deployment with custom deploy directory
rsangam Sep 2, 2010 4:31 AM (in response to jaikiran)Thanks for prompt reply Jaikiran! If possible, can you please point to any Jboss document that mentiones this?
It would have been nice to have some workaround/tweak to avoid copying huge ear and yet enable hot deployment :-).
Regards,
Raghav.
-
3. Re: Jboss 5.1: Unable to enable hot deployment with custom deploy directory
jaikiran Sep 2, 2010 4:38 AM (in response to rsangam)I don't think there's a document which specifically mentions this. And from what I know, you'll have to programatically fiddle with ProfileService API to create your own profile which allows hot deployment for external deploy folders.
-
4. Re: Jboss 5.1: Unable to enable hot deployment with custom deploy directory
rsangam Sep 2, 2010 4:41 AM (in response to jaikiran)O ok. Thanks for the pointer! I'll have a look at this API.
Regards,
Raghav.
-
5. Re: Jboss 5.1: Unable to enable hot deployment with custom deploy directory
welle Sep 2, 2010 5:14 AM (in response to jaikiran)> Hot deployment isn't supported for external deploy folders.
This is new for me. I just tested the scenario described above with no problems. Both hot deploy of archives and runtime modifications of a JSP works for me (JBoss AS 5.1.0.GA running linux).
-
6. Re: Jboss 5.1: Unable to enable hot deployment with custom deploy directory
jaikiran Sep 2, 2010 5:25 AM (in response to welle)What do you configurations look like and how/what changes did you do to your deployed application?
-
7. Re: Jboss 5.1: Unable to enable hot deployment with custom deploy directory
jaikiran Sep 2, 2010 5:34 AM (in response to welle)Anders Welen wrote:
> Hot deployment isn't supported for external deploy folders.
This is new for me. I just tested the scenario described above with no problems. Both hot deploy of archives and runtime modifications of a JSP works for me (JBoss AS 5.1.0.GA running linux).
Okay, I just read on of the internal mail conversations I had about this, and I admit my earlier statement was wrong. Hot deploy of that external folder is infact supported. What's not supported is that unlike AS-4.x you can't have different hot deployment characteristics for different deploy folders (i.e. unlike AS-4.x, you can't disable/enable hot deployment for a selected few deploy folders through configuration). Sorry about that confusion.
Thanks Anders for correcting me
-
8. Re: Jboss 5.1: Unable to enable hot deployment with custom deploy directory
welle Sep 2, 2010 5:39 AM (in response to jaikiran)My quick test:
Made the same setup as Raghav Sangam:
profile.xml
========
...
<list elementClass="java.net.URI">
<value>${jboss.server.home.url}deploy</value>
<value>file:///tmp/deploy</value>
</list>...
vfs.xml
======
...
<entry>
<key>file:///tmp/deploy</key>
<value><inject bean="VfsNamesExceptionHandler"/></value>
</entry>...
Tested it by moving the jmx-console.war from the standard deploy directory to "/tmp/deploy" and tested the hot deployment by touching the deployment descriptor file (WEB-INF/web.xml). Tested also and edited the index.jsp within the archive witout any problems. I also made a "test.ear" file where I packed the jmx-console.war within with no problems.
-
9. Re: Jboss 5.1: Unable to enable hot deployment with custom deploy directory
jaikiran Sep 2, 2010 5:39 AM (in response to rsangam)raghav Sangam wrote:
What does the hdscanner-jboss-beans.xml in the deploy folder look like? What's the scanPeriod set to?
-
10. Re: Jboss 5.1: Unable to enable hot deployment with custom deploy directory
welle Sep 2, 2010 5:40 AM (in response to jaikiran)Ok
-
11. Re: Jboss 5.1: Unable to enable hot deployment with custom deploy directory
welle Sep 2, 2010 5:42 AM (in response to jaikiran)I haven't touched the hdscanner-jboss-beans.xml at all.
-
12. Re: Jboss 5.1: Unable to enable hot deployment with custom deploy directory
jaikiran Sep 2, 2010 5:51 AM (in response to welle)Anders Welen wrote:
I haven't touched the hdscanner-jboss-beans.xml at all.
That question about hdscanner-jboss-beans.xml was for Raghav
-
13. Re: Jboss 5.1: Unable to enable hot deployment with custom deploy directory
rsangam Sep 2, 2010 6:10 AM (in response to jaikiran)Hi Jaikiran - Here is the part of hdscanner-jboss-beans.xml (same as the one in jboss default profile) :
<bean name="HDScanner" class="org.jboss.system.server.profileservice.hotdeploy.HDScanner">
<property name="deployer"><inject bean="ProfileServiceDeployer"/></property>
<property name="profileService"><inject bean="ProfileService"/></property>
<property name="scanPeriod">5000</property>
<property name="scanThreadName">HDScanner</property>
</bean>Anders - thanks for your reply.Do you have exploded ear under your custom /tmp directory?. I had tried that with exploded folder which looks like this
<our-deploy-folder>/app.ear/ - which as all exploded jars and wars.
Interesting, so it means HD is supported with custom deployment folder? I'll try with some helloworld application and check if it has something to do with my application.
- Raghav.
-
14. Re: Jboss 5.1: Unable to enable hot deployment with custom deploy directory
welle Sep 2, 2010 6:43 AM (in response to rsangam)Raghav: Yes I was testing using the exploded archive jmx-console.war. and also put that in an exploded XXX.ear.
aikiran pai: Aha...sorry