0

Howto use container managed JPA transactions with ZK?

asked 2010-09-27 06:13:10 +0800

Linuxhippy gravatar image Linuxhippy
57

Hi,

I would like to use container managed JPA with ZK, including container managed transactions as well as EntityManager injections.
Is this possible at all, and if yes how? The tutorials I saw only wrote about JPAUtil and howto get an EntityManager by "hand".

Thank you in advance, Clemens

PS: I am using Scala to develop a ZK application. However the ZUL Editor always complains about "The type xxyyy is not visisble" is I use a custom class in ZUL. However in Scala classes are by default public, also the bytecode decompiled to java source shows "public class xxyyy".
So although everything works fine, the ZUL xml editor somehow thinks the classes generated by Scala are not visible.
Should I file a bug about this?

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2010-09-27 08:58:03 +0800

Linuxhippy gravatar image Linuxhippy
57

Just found out about org.zkoss.zkplus.hibernate.OpenSessionInViewListener and it does exactly what I was looking for.

Thanks, Clemens

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-09-27 06:13:10 +0800

Seen: 516 times

Last updated: Sep 27 '10

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