According to the docs,
http://code.google.com/docreader/#p(google-web-toolkit-doc-1-5)s(google-web-toolkit-doc-1-5)t(DevGuideMakingACall),
RemoteServiceRelativePath annotation is meant to be used when creating
a client proxy so that you don't have to call setServiceEntryPoint()
on ServiceDefTarget. The example given uses it exactly like that,
i.e.
@RemoteServiceRelativePath("email")
MyEmailServiceAsync emailService = (MyEmailServiceAsync)
GWT.create(MyEmailService.class);
However, in the very next example they revert to using the old means
of proxy initialization, i.e. calling
ServiceDefTarget.setServiceEntryPoint().
I've played about with RemoteServiceRelativePath but it doesn't seem
to work as documented. It can't even be used in the way suggested by
the example. It's annotated with @Target(ElementType.TYPE) which would
mean that it can only be used on a "Class, interface (including
annotation type), or enum declaration".
Has anyone had any luck using it?