开发者

How to hot reload classes in JBoss

开发者 https://www.devze.com 2023-01-08 18:24 出处:网络
I\'m using JBoss AS 4.2.3.GA and I want to make it to hot reload changed classes. Now, I have a running JBoss AS with deployed exploded war, after changing (recompiling) some classes, it starts to red

I'm using JBoss AS 4.2.3.GA and I want to make it to hot reload changed classes. Now, I have a running JBoss AS with deployed exploded war, after changing (recompiling) some classes, it starts to redeploy all war:

14:14:03,732 INFO [StandardContext] Reloading this Context has started

and redeployment takes a very long time. I want to avoid such time wasting, and maybe there is a way to tell JBoss, just to replace changed class files w/o redeploying all the war?

I've also tried reloadable="true" in

jboss-4.2.3.GA\server\default\deploy\jboss-web.depl开发者_如何学Coyer\server.xml

But, perhaps, that's not what i seek. I don't know if it matters, but the exploded war's directory is external to server's /default/deploy/ dir. All my classes are in WEB-INF/classes dir.


You probably need to research framework-specific solutions. Look for OSGi, Spring Dynamic Modules, JEE6 dependency injection.

Also, there may be an Eclipse plugin that will facilitate this for you. I know there is one for Glassfish and JEE6.

What technology are you developing this with?

0

精彩评论

暂无评论...
验证码 换一张
取 消