« BlazeDS: Use hibernate4gwt as Hibernate adapterTester une application multithread »

9 comments

Comment from: Kevin Stading [Visitor]
Hello!
Been looking for a blog.
Impressive. Great execution!
11/22/07 @ 09:41
Comment from: Emilio [Visitor]
Hello, Beanlib Works well, with a small modification can save the lazy loading problem.

The big issue is that GWT don't support BigDecimal.

Greetings.
11/22/07 @ 12:35
Comment from: Bruno Marchesson [Member] Email
Emilio,

BigInteger and BigDecimal are not Hibernate specific issues.
But it is true that the GWT supported JRE is limited and would have to be improved.

I did something similar to add SQL timestamps to the supported JRE (I published the way to do it in this blog_ sorry in french...). It works but need some work.

Bruno
11/22/07 @ 21:06
Comment from: Yegor [Visitor]
Bruno,

The problems you outlined are not specific to GWT. All of this applies to many other kinds of serialization of Hibernate-enhanced objects: XML over HTTP, Web-Services, RMI, Corba, etc. Whenever there is a client-server communication where both client and server share a subset of domain objects you have to make sure you are not trying to serialize and send Hibernate instances of your objects, otherwise the other side won't be able to deserialize them.

GWT 1.5 is not trying to solve this problem. All it will provide is an ability to use your __original__ annotated POJOs on both sides without having to maintain 1.4 duplicates and that's a big advantage.

I would say "GWT 1.5 won't solve all you Hibernate issues", but it will solve many.

Yegor
12/09/07 @ 01:40
Comment from: Bruno Marchesson [Member] Email
Yegor : your are right, this issue is not specific to GWT, and applies to JMS, RMI, etc...
But as I mentioned it at the beginning of the article, many, many people seems to think that sending Hibernate POJO to the GWT client side is just a matter of syntax...

Regards
Bruno
12/09/07 @ 15:18
Comment from: Yegor [Visitor]
There are (at least) two problems you have to solve to start using a POJO domain model on both server and client side:

1. Language-compatibility (on source and/or byte-code level) on the server and on the client ("the syntax")
2. Serialization of Hibernate-enhanced POJOs ("dynamic proxies")

I don't think there is any misunderstanding among Hibernate users about the second problem, the one you are talking about. We've seen it before even GWT existed. We have solutions for it. The only real problem that's left is the first one and there is no easy solution for it within GWT 1.4 framework.

GWT 1.5 aims to solve the first problem. The second one is already solved. Thus GWT 1.5 will indeed allow me "to send my Hibernate beans to the presentation layer". There is nothing wrong with this statement.

Relating the second problem to GWT is not appropriate. You might as well say "GWT 1.5 won't solve your Hibernate problems. You also have to learn Java language."? Doesn't make much sense, does it?

Yegor
12/10/07 @ 20:16
Comment from: Mike [Visitor]
Hi, Bruno,

Have a question about integrating acegi with gwt. I tried your blog, can not get it working. Do you mind sending me web.xml, acegi security config file, logon/logoff jsp and sample java codes for handing retrieving username and timeout? Thanks much.

02/12/08 @ 21:44
Comment from: Frederic Cote [Visitor]
Hi Bruno,

I would like to use hibernate4gwt with my GWT application. I have an integration with Spring with a single entry point. All GWT request are sent to a HandlerAdapter (which extends RemoteServiceServlet) and dispatch the RPC call to the right handler. Would this setup work with your library or I am required to have one servlet for each remote service?

Your project looks very interesting.

Thanks
06/25/08 @ 21:44
Comment from: sgudzwvb [Visitor] · http://ekdigzjp.com
[URL=http://srwxjrhl.com]dtkkywup[/URL] caiouncx ewlizxsj http://xdvrvtjj.com cjgfruuf baxqkwvf
08/26/08 @ 16:22

This post has 19 feedbacks awaiting moderation...

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)