2

new Zksample2 app. Spring, -AOP, -Security, Hibernate, Hibernate-Generic-DAO, Jasper

asked 2010-01-17 08:29:28 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2013-03-27 08:56:18 +0800

jimyeh gravatar image jimyeh
2047 1 4
ZK Team

Hi all,

today we have checked in the new Zksample2 application as maven2 projects on sourceforge.net. You can reach the project homepage under the link http://zksample2.sourceforge.net/ here.

You will find there 3 eclipse maven subprojects and the folder for the documentation.

  1. KeyGenZkoss = one-time-password generator
  2. spring-hibernate-backend = backend
  3. zkoss = frontend
  4. zksample2_doc = documentation

The Documentation you can download seperately as a pdf-file from here.

The documentation is a work in progress so be sure to check sometimes for the newest file.

For checkout and evaluate or work with the application please download and read first the documentation.

Mainly changes to the first sample app are: - change project structure as maven2 projects - spring managed frontend - @Secured() for securing methods with own implementation - login statistic - several integration options of ipToCountry - one-time-password sources are opend - Refactoring all Domain/DAO/Service Classes to english names - many many code changes - documentation

We whish all fun with it and hope that it can be usefull for others.

best Stephan and Björn

delete flag offensive retag edit

213 Replies

Sort by » oldest newest

answered 2010-06-18 05:49:27 +0800

ComBin gravatar image ComBin
12

Checkout from SVN repository: https://zksample2.svn.sourceforge.net/svnroot/zksample2

link publish delete flag offensive edit

answered 2010-06-18 06:42:05 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

If you have the m2Eclipse plugin in your Eclipse IDE? Than try first a 'run as' --> maven:install of all project folders.

link publish delete flag offensive edit

answered 2010-06-20 01:41:50 +0800

ComBin gravatar image ComBin
12

updated 2010-06-20 13:58:02 +0800

I have tried 'maven:install' of 3 maven project folders. This exception is still called. What else to try?

link publish delete flag offensive edit

answered 2010-06-27 15:28:20 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Have a new try with a checkout from the /trunk

link publish delete flag offensive edit

answered 2010-07-01 07:35:20 +0800

ComBin gravatar image ComBin
12

Big thanks Stephan! Now all works.

link publish delete flag offensive edit

answered 2010-08-04 05:08:57 +0800

rizkyk gravatar image rizkyk
6

Hi Stephan,

Nice Work !!
Just curious, how we implement the "real" user online instead randomize value to put user online on the front-end of Zkoss sample application just like wordpress or blogspot did.
Also the IP of user online.
Shall it get from Active Session or Active Desktop ?
Need lighted...
thanx

link publish delete flag offensive edit

answered 2010-08-04 15:34:04 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2010-08-04 15:36:08 +0800

Hi rizkyk,

Hehehehe, yeah that's the 1000$ Question.

1. The IP we get in our case from the spring-security framework from the Authentication Object. (search for class: LoginLoggingPolicyService.java --> 'clientAddress' )
2. For counting how many users are really online. It depends on the declared 'timeout' time. If a user don't do a right logout from the application by i.e. closing the browser it's sessionId is cleaned at the earliest after it is over their timeout time. So a http-based solution is only approximately. But it's possible to run an application wide counterClass. This calls holds only a list of SessionIds. Each time a new user is logged in his sessionID is added and the whole List is verified with a list from spring.

If we have time for such things we will made an implementation (I think the zk5 EventQueues are a good staring point for such things).
Please do not hesitate to send us codes for this.

best
Stephan

PS: In the next days we will check in a new version based on zk5 and with new architecture logic on some of the gui modules.

link publish delete flag offensive edit

answered 2010-08-06 05:26:22 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2010-08-06 05:26:40 +0800

Today we have checked in the updated Zksample2 application based now on the zk version 5.0.3
Three modules are ready changed to work completely annotated databinded. Next will follow.

Have fun with it.

best
Stephan and Björn

link publish delete flag offensive edit

answered 2010-08-09 16:00:41 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2010-08-09 16:04:39 +0800

Today we have added the DynamicJasper framework (v3.0.13) and updated JasperReport to (v3.5.0).
For all who are interested in building JasperReports without iReport or xml-files. The first simple report is placed in the article module.
I recommend to have a look on this addon for Jasper.

best
Stephan

PS: Don't worry if the online demo throws a permGen Space error. Seems that our used little vServer environment reaches his limit

link publish delete flag offensive edit

answered 2010-08-26 00:29:41 +0800

andyx gravatar image andyx
51

updated 2010-08-26 00:37:56 +0800

hi Stephan,
You had created a very useful project framework, i am happy to find your masterpiece and studying right now.
When i try to build project base on MySQL 5, it seems have to correct zksample2\tags\v2.2_(last_zk_3.6.3)\zkoss\db\createDB_MySQL.sql and relation files ,
How do i update these files to you? (to help people to use MySQL)
Another thing is about Hibernate code generation with reverse engine, how do you get these by hibernate tool?

Meanwhile, just let you know, i can't find zksample2_v5_0_323(zk5.0.3) on http://zksample2.svn.sourceforge.net/svnroot/zksample2/ .

Best regards.

Andyx

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
4 followers

RSS

Stats

Asked: 2010-01-17 08:29:28 +0800

Seen: 29,058 times

Last updated: May 27 '16

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