calling gwt from external client

33 views
Skip to first unread message

fchas

unread,
Jul 22, 2011, 12:59:06 PM7/22/11
to Google Web Toolkit
My use case is:
I have a gwt application with a mysql db and UI that preforms crud ops
on some simple domain objects. One domain object is called a "task",
it represents some work that is executed by the gwt application. The
gwt application will check the db periodically for tasks and run
them.

Tasks can be entered by users via the UI, but I also want to support
Task creation from outside of the application by another program,
curl, wget, etc. How can I achieve this with GWT?

thanks in advance!

Jeff Larsen

unread,
Jul 22, 2011, 1:07:48 PM7/22/11
to google-we...@googlegroups.com
If the GWT app periodically checks the db for tasks, I don't think you need to do anything to get it to work other than implement your other clients. 

VisualFox

unread,
Jul 22, 2011, 2:35:17 PM7/22/11
to Google Web Toolkit
a) want to create a web API - if you just need to populate your db you
are free to use whatever technology as Jeff said. If you want to
expose some part of the GWT app you may want to check GWT Exporter:
http://code.google.com/p/gwt-exporter/

b) you need some server side client and in this case you can use
whatever language to push data to the server. My favorite will be redis
+octobot.

In any case I don't think you can call and execute a GWT application
from wget or curl but node.js may be your friend

Saeed Zarinfam

unread,
Jul 23, 2011, 12:27:20 AM7/23/11
to Google Web Toolkit
Hi
You can write web service for task creation operation and then call
web service from out side of the application for creating task.
Reply all
Reply to author
Forward
0 new messages