Friday, September 20, 2013

Re: GWT Code Splitting : RPC issue

Hi,

I have commented all the service calls from my code and left only one service call which uses the new data service that i have created (say TestDataService ). Now i have something similar to

interface TestAction extends Action {}
interface TestResponse extends Response {}

TestDataService extends RemoteService {
  TestResponse execute(TestAction action)
}


But still  All my Rpc classes are getting serialized initially. and all my other action classes are getting serialized. In the compiler report it shows my other Action classes has a reference to TestAction.



As you can seen in the screen shot, DefacultAction has been serialized inside TestDataService. Psychically there is no reference to DefaultAction inside TestDataService. Do you have any idea about this ?

Any help on this would be really appreciated as im stuck with this. Thanks in advance.



On Mon, Sep 16, 2013 at 8:49 PM, Jens <jens.nehlmeier@gmail.com> wrote:
Don't think so. RemoteService is just a marker interface so that GWT can find your services during compilation and generate their implementation.

They should end up in the split point where you call GWT.create(<service>) the first time. Maybe some serializer will be in the left over fragment because they are used in both services which makes them non-unique. These could be ArrayList, Date, String, etc. but also your own classes if they are shared between your modules.

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.



--

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment