Salut,
Starting playing with GWT and Comet, I tried to make running the sample app of atmosphere "gwt-auction" with the last download of GWT : 1.7.1
Here is my feedback about trying to make it run.
Rework on the sample :
1/ the file atmosphere.xml is missing. Needs to be added to META-INF
2/ in the class StreamingServlet, the line :
AtmosphereResourceEvent e = (AtmosphereResourceEvent) request
.getAttribute("org.atmosphere.cpr.AtmosphereResourceEvent");
returns a null Object.
Instead you must use :
AtmosphereResource vAtmoResource = (AtmosphereResource) request
.getAttribute("org.atmosphere.cpr.AtmosphereResource");
and adapt the code of the following lines.
3/ When using the attribute rename-to (for simplied paths) on the module element of the App.gwt.xml file, you need to rework paths in :
- the App.html file
- web.xml file
- atmosphere file
in order to add the module path. Example :
/gwt-auction/streamingService instead of /streamingService
Google AppEngine :
1/ First problem : sessions must be activated in the appengine-web.xml
<sessions-enabled>true</sessions-enabled>
2/ It seems that Google AppEngine can't be used because of restrictions on a java Security constraint : modifyThreadGroup.
You'll get this error on jetty (running automatically with GAE restrictions, really fine !) :
java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)
on the method sendMessage of the StreamingServiceImpl object.
I had to deactivate GAE usage on my Eclipse Project to pass through.
Now my sample works very well on my dev box ! ;-)
But unfortunately will not on GAE :-(
-- Thanks Jeanfrancois for this promising framework.