Isn't JBoss EAP 6.1 supported?

410 views
Skip to first unread message

Tuan Anh Nguyen

unread,
Oct 12, 2014, 12:13:26 AM10/12/14
to hotswa...@googlegroups.com
Hi HSA team,

I'm trying to integrate Hotswap Agent with my JBoss EAP 6.1 (run outside eclipse).

What I've done:
- install DCEVM.
- add VMargs to standalone.conf: "-XXaltjvm=dcevm -javaagent:/home/ntanh/softs/hotswap-agent.jar=autoHotswap=true".
- deploy a simple web application (with 1 servlet) to JBoss deployments, it's working fine.
- start server and see that Hotswap agent is init properly: 
HOTSWAP AGENT: 10:38:54.634 INFO (org.hotswap.agent.HotswapAgent) - Loading Hotswap agent {0.1-beta4} - unlimited runtime class redefinition.
HOTSWAP AGENT: 10:38:54.840 INFO (org.hotswap.agent.config.PluginRegistry) - Plugin 'org.hotswap.agent.plugin.hotswapper.HotswapperPlugin' initialized in ClassLoader 'sun.misc.Launcher$AppClassLoader@774b9b80'.
HOTSWAP AGENT: 10:38:54.871 INFO (org.hotswap.agent.config.PluginRegistry) - Discovered plugins: [Hotswapper, AnonymousClassPatch, WatchResources, Hibernate, Spring, Jersey2, Jetty, Tomcat, ZK, Logback, JSF, Seam, ELResolver]
- then I try to modify servlet code in Eclipse and didn't see any effect.

It's quite clear. There seems to be no relation between deployed application and local resources (class files) need to be reloaded. While in JRebel, there is a rebel.xml file to declare monitored resources.

In github project page, it's said that Hotswap Agent has Automatic configuration feature, is it not working in JBoss? If not, do you have any plan for this? 
Otherwise, can you please help me to know what missing?

Thanks in advance,
Anh

Jiří Bubník

unread,
Oct 12, 2014, 2:05:27 AM10/12/14
to Tuan Anh Nguyen, hotswa...@googlegroups.com

Hi,

 

there is an open issue https://github.com/HotswapProjects/HotswapAgent/issues/27 for JBoss support of hotswap-agent.properites: extraClasspath, watchResources, webappDir. This is analogy to rebel.xml file and local resources setup. JBoss/WildFly full support is on top of our priority list, however it is quite complicated (OSGI container).

 

You can still use JBoss with debugging session – use apply changes with your IDE. This will work for changed classes (not other resources).

 

Jiri

--
You received this message because you are subscribed to the Google Groups "HotswapAgent" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hotswapagent...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nguyen Tuan Anh

unread,
Oct 12, 2014, 2:26:01 AM10/12/14
to hotswa...@googlegroups.com, anhnt...@gmail.com
Thanks for quick response,

I'm still not clear with "use apply changes with your IDE", there is no effect after I change classes in the IDE (no HAS log in server.log also). Am I missing something?

Anh

Vào 13:05:27 UTC+7 Chủ nhật, ngày 12 tháng mười năm 2014, Jiri Bubnik đã viết:
Reply all
Reply to author
Forward
0 new messages