Thursday, December 30, 2010

Re: Example to test RequestFactory in JRE

Ah, I think I see it:

Try saving RequestContext when you first call rF.userRequest(), and
then re-use it when you call create() and persist().

On Dec 30, 11:05 am, Simon Majou <si...@majou.org> wrote:
> I completed with that code from RequestFactoryJreTest :
>
>   DomainRequestFactory rF =
> RequestFactoryMagic.create(DomainRequestFactory.class);
>   EventBus eventBus = new SimpleEventBus();
>   ServiceLayer serviceLayer = ServiceLayer.create();
>   SimpleRequestProcessor processor = new
> SimpleRequestProcessor(serviceLayer);
>   rF.initialize(eventBus, new InProcessRequestTransport(processor));
>
> But still the same error.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate