0

ZK App Development Cycle Speedup

asked 2010-04-20 07:32:09 +0800

xmedeko gravatar image xmedeko
1031 1 16
http://xmedeko.blogspot.c...

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

delete flag offensive retag edit

9 Replies

Sort by ยป oldest newest

answered 2010-04-20 09:57:26 +0800

iantsai gravatar image iantsai
2755 1

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.

link publish delete flag offensive edit

answered 2010-04-20 13:28:28 +0800

xmedeko gravatar image xmedeko
1031 1 16
http://xmedeko.blogspot.c...

I have forgotten JRebel, I think I will give it a try.

link publish delete flag offensive edit

answered 2010-04-20 16:25:06 +0800

madruga0315 gravatar image madruga0315 flag of Brazil
937 2 12

@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

link publish delete flag offensive edit

answered 2010-04-21 02:05:50 +0800

xmedeko gravatar image xmedeko
1031 1 16
http://xmedeko.blogspot.c...

updated 2010-04-21 02:06:07 +0800

@madruga0315 Thanks, I know zkgrails, maybe I'll try it in the next project. I do not want to change our current project much.

link publish delete flag offensive edit

answered 2010-04-21 05:15:13 +0800

mjablonski gravatar image mjablonski
1284 3 5
http://www.jease.org/

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

link publish delete flag offensive edit

answered 2010-06-14 03:25:37 +0800

xmedeko gravatar image xmedeko
1031 1 16
http://xmedeko.blogspot.c...

Yeah, thanks Maik, jRebel works like a charm. It also gratly reduces the need of zscript.

link publish delete flag offensive edit

answered 2010-06-24 05:58:21 +0800

tomyeh gravatar image tomyeh
610 1 3
http://blog.zkoss.org ZK Team

updated 2010-06-24 06:01:46 +0800

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.

link publish delete flag offensive edit

answered 2010-06-25 16:45:18 +0800

xmedeko gravatar image xmedeko
1031 1 16
http://xmedeko.blogspot.c...

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.)

link publish delete flag offensive edit

answered 2010-06-29 23:52:22 +0800

PeterKuo gravatar image PeterKuo
481 2

For OSS, jRebel seems to be free.
http://www.zeroturnaround.com/blog/javarebel-for-open-source-development/

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-04-20 07:32:09 +0800

Seen: 1,151 times

Last updated: Jun 29 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More