GWT Comet Integration (Server Push) Help - gwt

I am getting some difficulties with comet on the server
First, I am working with the default configuration of the gwt hosted
mode(i.e. using jetty), do i need to make any change to enable comet
Now, on the server what I want is a client will send a request and
then he will be enrolled in a so-called group. Whenever, any change
happens to all group, all client connected to that group are made
aware.
Can someone help with this??

Check out http://code.google.com/p/gwt-comet/wiki/GettingStarted

Related

Spring Integration XMPP and File Transfer

I need to transfer files to a user connected to a XMPP Server.
The file transfer is supported by Spring Integration XMPP? (The current release version is 4.1.6-RELEASE, the snapshot is 4.2.0-SNAPSHOT).
I succesfully send text messages using the XMPP Message Outbound Gateway using a configuration like this:
<int-xmpp:outbound-channel-adapter id="outboundEventAdapter"
channel="outboundEventChannel"
xmpp-connection="testConnection"/>
Using this Outbound Gateway I'm not able to send files (only String and org.jivesoftware.smack.packet.Message payloads are supported)
Thanks in advance.
Massimo
The Spring Integration XMPP module is fully based on the Smack library, so I'd be glad to hear from you or from anybody else who confirm and show us how to do that with Smack first of all.
And only after that we will be able to come with some adaptation from our perspective.
Please, refer to Smack XMPP File Transfer for more information.
From other side if you are able to come up with some solution on the matter you always can wrap it to the standard <int:service-activator> to make your application working.

Loopback.io backup server and server to server replication

I am thinking of adopting Loopback.io to create a REST API. I may need the following approach: an inTERnet server (run by me) to which clients connect, plus a fallback inTRAnet server to which clients connect only in case the internet connection is down. This secondary fallback server should then replicate data on the main server when the internet connection is up and running again. As clients are on the same inTRAnet they should be able to switch automatically to the fallback server. Is this possible as an idea and if so, what do you recommend i start digging into?
Thank you all!
Matteo
Simon from my other account. I believe what you want is possible as you can use whatever client side technology you want with LoopBack. As for easy solutions, I'm not familiar enough with Cordova to give any insight there.
It is definitely possible, but I suggest going through the getting started tutorial first. You'd probably create two application servers and have another proxy in front to route the requests to server a or b based a heartbeat from the main server. You would have to code all the logic and set up the infrastructure yourself though.

REST call from client side on GWT and avoid cross-domain restriction

I developed a WEB application using Google App Engine and GWT that makes REST calls to a internal RT service inside my company. I used for that the RT-Rest API making the calls from the server side.
The problem came when, for internal security reasons, we have to use a VPN to access to this RT service, so that the calls from App Engine Server are not allowed. I decided to move this logic and make the calls from the client side, as far as everyone should have the VPN up on their computers. But as we are working in different domains I found the problem of cross-domain calls not allowed (CORS).
At this point I am stuck, I cannot make the calls from the server because the VPN inconvenience nor from the client side because of the CORS. And I don't have access to modify the REST service to add the Access-Control-Allow-Origin header in the response.
Everything says that there is not very much things I can do, but maybe I am missing something or someone has a good idea to solve the inconveniences and make the calls to the RT service.
Any suggestion will be very useful. Thanks so much.
You could use the Secure Data Connector to connect AppEngine to services behind a firewall :
https://developers.google.com/secure-data-connector/

gwt connection between clients

I’m very new to gwt developing and I would like to know, if it is possible to change client information’s from another client. I would like to do following;
Person A adds a new car to a list, this modification should also add automatically to another client (website). Is that possible with gwt? Right now, I’m just having the idea to use a solution with a SQL database. Is there a way to connect two websites?
Greet
There is no way to do that directly from client to client.
You will have to implement it via a backend (not necessarily a SQL Server).
Client A sends the modifications/data to the backend.
In order for Client B to see the update you can rely on two different techniques:
Pull by polling via a Timer (easy to implement)
Push either by Websockets or Comet (check out atmosphere project)
Push via event based service (check out gwteventservice project)

Ajax Push Engine

I'm researching methods to find ways for an event driven web application where a server can push data to the web page. Can I use APE ?? If so how can I use it and some resources please??
Thank You!!
People have been writing event driven servers since the dawn of the network. A simple google search will find your way.
However, since the client is a browser, your server must re-act upon keeping an HTTP connection open instead of simply doing socket work.
This is basically the only small difference than say an IRC server or a simple chat server.