You can have as many RPC servlets as you want in a GWT module, and
each servlet can have as many methods as you want. How you structure
it is up to you. I tend to group related use cases together as
multiple methods in a single servlet. So in your login/security
scenario, I would group all the services relating to this in one
remote RPC servlet called LoginServiceImpl or SecurityServiceImpl or
some such. That way when I need to add a new security use case, I just
add a new method to the main SecurityService interface and my IDE
prompts me to add it to the asynch interface and the RPC servlet
implementation.
The entries in your <moduleName>.gwt.xml file for your RPC servlets
are just used for running in hosted mode using an embedded Tomcat
instance. You will need to transfer these entries (and amend them
somewhat) to web.xml when you want to deploy for web mode running. I
would recommend using an Ant script to build a WAR file to deploy a
GWT application - search the group for example ant scripts and web.xml
definitions for RPC servlets.
On Oct 20, 12:42 pm, Michi_de <[EMAIL PROTECTED]> wrote:
> Hey guys! Thank you so far, you realy helped me.
> I put all the logic into my servlet now, it works just fine. My
> servlet returns a string now, which tells me what was done, eg. "user
> allready exists" etc... its ok, but not perfect. I need then to
> implement some code like this "if (doubleuser.equals("user allready
> exists")) ... " to make it do something. Its working, but it doesnt
> seem like good coding to me.
>
> Some other question on similar topic as my first posting:
> How can i use different calls ? Did i make everything right in my .xml
> files? Or is it not that easy, to implement 2 or more servlets? I
> realy need another servlet now, in another file, but its the same
> project so its the same .xml file and i havent wrote the code yet, but
> im pretty sure it wont work, ..... ;-)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---