Thanks for the reply Shaffer. The problem is my app needs to run completely independently from the client.
As is; the application will be launched once a web client makes an RPC request. Let me try to clarify as I may have been misunderstood. I am developing a GUI based java application which will have a web server embedded in it - Jetty in this case. Once I launch the application, it will act as a web server and therefore web browsers will be able to connect to it and get the GWT app and execute it. The GWT app needs to make RPC to the java app to retrieve information. Now, the ServiceImpl is instantiated once the first RPC call is made (is this wrong?) it needs to somehow refer to the already running app and call a method from it without re-instantiating a new version. Basically I'm trying to connect my webapp to an already executing java app. There has got to be a way to do this, right? Thanks. On Feb 14, 5:24 pm, "[email protected]" <[email protected]> wrote: > If I'm understanding what you're attempting correctly, that's the > easiest way to do it. Your ServiceImpl is still running in pure Java, > and that's where an existing Java app can live. Your client will be > compiled out into Javascript, so if you wanted your existing Java > classes to be available on the client, the will be subject to the GWT > compilation process. An amazing and powerful process, but it might > yield references to Java libraries that are not compatible with the > GWT Java/Javascript library. > > Good luck! > > Later, > > Shaffer > > On Feb 14, 9:21 am, hermis <[email protected]> wrote: > > > Hello all, > > > I am developing a Java application which will eventually embed a HTTP > > server and then act as the server for my GWT application. > > > I need help with getting the GWT app to access a method in the Java > > app :) > > > Until now, just for the sake of developing I have been instantiating > > my java app in the ServiceImpl and calling the required method from > > there. > > > What is the proper way of doing this? How do I connect the ServiceImpl > > to my app? > > > Thanks in advance! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
