Google Groups Home
Help | Sign in
Message from discussion extending RemoteServiceServlet
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
jdwy  
View profile
 More options Feb 2 2007, 1:41 pm
From: "jdwy" <jdw...@gmail.com>
Date: Fri, 02 Feb 2007 18:41:37 -0000
Local: Fri, Feb 2 2007 1:41 pm
Subject: Re: extending RemoteServiceServlet
Hey Rob,
Thanks for introducing me to the "monster thread." I should've found
that.

I got a chance to look at the code and I do think that this will have
some nice results. For unit testing in particular.

Plugging in my little HibernateEscaping stream will be easier with
this structure. It looks like I'd subclass RemoteServiceServlet and
override processCall() with one that call my own RPC mechanism right?

The only further request I'd have is to make the RPC.java a bit easier
to extend since it's not so much that I want to replace the current
RPC imp as to extend it with my Hibernate filter. All I'd really need
is a public encodeResult(). Or perhaps a specific "filter" extension
point? I think that this a a really common result for anyone using ORM
software. The Hibernate folks are (with reason) absolutely aghast at
saying un-initialized == null, but sending lazy objects into the
presentation tier is a tricky thing to solve if you're allergic to
DTOs. In my personal opinion it's one of the real unsolved problems
with the current state of the art.

http://forum.hibernate.org/viewtopic.php?t=947299&highlight=bomb+lazy

If not I'll just end up duping this class and maintaining myself. I'd
understand if you think that this would be a bit dangerous to allow
people to fiddle with the RPC as they choose, but I think it might be
worth it.

ahh. I see it's a final class. sigh. sounds like I'm not going to win
this one :)  but do think about it for me would you? With clients as
powerful as GWT I just love being able to use my real domain objects
in the client, but there's a real sticking point here.

Thanks again,

-Jeff

On Feb 1, 2:48 pm, "Rob Jellinghaus" <r...@unrealities.com> wrote:

> See issue 389 and the monster thread about it in this forum right
> now :-)  It doesn't do exactly what you want (it doesn't have a
> specific hook for overriding the streamwriter), but it does break the
> code down enough that you should be able to override the new
> RemoteServiceServlet in a more convenient way.  Let us know what you
> think.

> Cheers!
> Rob


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google