Factor your server code.  Service "Impls" are Servlets; you don't
instantiate them.  So take the parts that are needed by Chat (which
are probably data access methods, right?), factor those out into a DAO
object (not a Servlet), and call that from both "impls".

On Nov 18, 7:46 am, str16star <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm just getting started with gwt and java, so this is probably quite
> a simple question.
>
> I am building an app that has an RPC service called UserManagement so
> the server side code is in UserManagementImpl
>
> I also have an RPC service called Chat.  The ChatImpl class needs to
> call methods from UserManagementImpl but any instances I try to create
> of UserManagementImpl are always null.
>
> I'm using the following line of code in ChatImpl:
> UserManagementImpl user = new UserManagementImpl();
>
> I've tried it with an empty constructor method for UserManagmentImpl
> and without.
>
> I can post more code if required.
>
> Any help appreciated.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to