Remoting from a Swing app to GWT server

To put it simple, I've written a JSE Swing app that needs to talk to a GWT server I've written earlier. I absolutely love the way GWT does remoting between it's javascript and server sides and wish I could utilize this mechanism. Has anyone managed to use GWT-RPC this way? Should I just go Restlet instead?

Asked by: Maria625 | Posted: 28-01-2022

Answer 1

If you are doing Java-to-Java communication, RMI would be simpler and more expedient. Serializing data to/from some XML or URL-based format doesn't add a lot of value.

With EJB3, it is dead simple to deploy remote objects and to call them. You can then turn those EJBs into web services if you need to later, but for Java-to-Java, I can't think of a good reason to not use some sort of RMI-based communication.

Answered by: Haris580 | Posted: 01-03-2022

Similar questions

Flash Remoting and Java

I want to use Flash Remoting in my Flash app that is backed by a Java server. I'm interested in what my options are for using Flash Remoting with Java. I know about BlazeDS but it seems to be fully geared towards Flex, not Flash (AS3). I'd like to make simple AMF calls, as like in the old days. If I can I use BlazeDS f...

Java Spring remoting options

A little context: I would like to separate the Java application I'm writing into a more or less typical server-client model. I would provide a "server" which takes care of business logic and persistence, but write it in a very service oriented fashion. Any front-end code (GUI) would then call upon the server to provide the functionality in a user friendly fashion. As I'm writing the application using Spring (and an...

java - How do I get the size of a response from a Spring 2.5 HTTP remoting call?

I've been poking around the org.springframework.remoting.httpinvoker package in Spring 2.5 trying to find a way to get visibility into the size of the response, but I keep going around in circles. Via another question I saw here, I think what I want to do is get a handle on the InputStream that represents the response from the server, and then wrap it with an Apache commons-io Count...

java - Spring Remoting - HTTP Invokers

What do you think of Spring's HTTP Invokers? I'd like that two Tomcat servers exchange objects, exposed by a service, through HTTPS. Do you think that Spring HTTP Invoker is a good choice? Thx

java - .Net interop to Direct Web Remoting (DWR), possible?

We have an existing code base which is using DWR. I'm wondering what options exist to have .Net clients communicate with the DWR endpoints? And by .Net I really mean CLR clients, not javascript generated by .Net based websites.

java - iPhone Grails remoting options

I'm desperately trying to find a suitable solution to connect my iPhone application with my Grails backend. In the past, I have tried HessianKit but it's not maintained anymore. I also tried cocoa-amf but like HessianKit, it doesn't support authentication out of the box. It seems like the most widespread option is to use RESTful services but I would like to avoid that. Everyone is aware of object-relational impeda...

java - Direct Web Remoting issue

I am having an issue with the Direct Web Remoting Javascript library in Safari browser (both Desktop and iPad) OR rather all webkit-based browsers.. The error is in the auto-generated engine.js file and is related to "Maximum call stack size exceeded error" Is anyone aware if this is a known issue and if yes, what is the solution for the same. The DWR version seems to be 2.0 Reference/Taken from:...

java - How does Direct Web Remoting (DWR) work?

How exactly or what exactly does Direct Web Remoting (DWR) do? While I have already gone through the official site I wanted to understand in simple language.. Specifically I have following questions; 1. While engine.js is standard Javascript library, how exactly does it help in including that in our app ? 2. What is so spec...

java - Spring remoting using Https and tomcat

My application is a swing based client communicating to tomcat using spring remoting Http invoker, I want to convert to https. org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [https://localhost:8443/aten_server/metadataservice/MetaDataService-httpinvoker]; nested exception is PKIX p...

java - JAX-RPC remoting of enum

I wrote a function using an enum for filtering with this signature: /** * Match a profile with other profiles meaning they are similar. * * @param profileId * the profile to match * @param actuality * the actuality to use for filtering * @return a ordered list of the best matching profiles */ public Match[] match(String profileId, Actuality actuality) The enu...

Still can't find your answer? Check out these amazing Java communities for help...

Java Reddit Community | Java Help Reddit Community | Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)