-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I use ZK@JBoss. When I change some Java class (e.g. composer) I have to redeploy (undeploy/deploy) the whole application. It takes a while to deploy ZK web application (from 3 to 15sec). Is it similar when you develop ZK@Spring? I am looking for a way how to speed up this process.
So far, I know:
1. Use scripting (BSH, Groovy, etc.). It would require major change in my application. Scripting has some drawbacks, too, so I do not want to use it (at least not now).
2. Eclipse debugger code hot replacement - works only for small changes in the code. Consumes too much memory when the application is redeployed, so I have to restart JBoss after a few redeployments. Not a big advantage.
3. Tomcat has some possibility to serialize the session on the disk, reload classes and deserialize the session, but I have not tried it yet, though.
Thanks for your help and suggestions
The slow dev-process is always a pain in the ass in JEE development, there might be a lot of ways to do it, but I prefer the easist one - brute-force.
The computer I built myself(got every pieces on the list and assembled them) has Intel i7 CPU, tri channel 6G RAM, 10000RPM HDD and a little bit over-clock(I got finest Air cooling system to make it stable).
So I just use Zscript + Eclipse Debug Mode and there's no problem.
Life is short, and good stuff makes you happy, that's my philosophy.
PS: Oh, althouth I love newest PC stuff, I still kept using my old P4(Socket 478) untill last week, she served me for almost 7 good years, R.I.P my friend.
I have forgotten JRebel, I think I will give it a try.
@xmedeko We're using grails with zkgrails plugin.
After our domain model is defined. We can apply any changes on the Composer (handles ui) or on the Services (handle business logic), that grails will hot reload those artifacts.
You could evaluate grails and see if fits your needs.
Regards,
Madruga
@madruga0315 Thanks, I know zkgrails, maybe I'll try it in the next project. I do not want to change our current project much.
Hi,
I'm using JRebel for the development of my ZK-based Jease-CMS-Project and it works fantastic, no Tomcat restarts for a whole weekend:
http://www.jease.org/coffeeklatsch/jrebel
Cheers, Maik
Yeah, thanks Maik, jRebel works like a charm. It also gratly reduces the need of zscript.
Great to know it. I thought JRebel was easy to run into the inconsistency issue with multiple versions of objects. Looks like I am wrong. At least, it works well for the application development. I guess it is because the older version of most of application objects would be dropped after refreshing a page.
Does anyone have the experience of using JRebel with Websphere? The deployment cycle of Websphere is really painful.
Sometimes, the development with jRebel is even more agile then zscript - I do not need to reload the ZUL everytime.
I think the jRebel has a problem with Java reflection. When I create a method onClick() in a controller, and then change it to the onClick(Event event), the ZK under jRebel still tries to access the old onClick() method, which results in the MethodNotFoundException. Then I have to redeploy the WAR.
(I have no experience with Websphere, sorry.)
Asked: 2010-04-20 07:32:09 +0800
Seen: 1,151 times
Last updated: Jun 29 '10