Skip to main content

WLAN Dataexchange via RMI or Generic Connection Framework?

1 reply [Last post]
Joined: 2008-08-27

I want to send an byte-array via WLAN from PDA to PC and getting a string as answer.
Which connection is the best? RMI or the options of the connection framework, http for example.

fast transfer
minimum waiting time
small programm on server

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-06-15

If your target is for fast transfer, then HTTP is most likely your fastest, from both a setup calls to post the message to getting the response.

RMI on JavaME is not native, as RMI requires a classloader which CLDC does not have. However if you are on a CDC device (as a PDA might be) then RMI makes a bit more since.

I find the complexity of the build process going through the standard javaC then RMIC, getting the wrapper classes in the right area all extra movements without a great deal of return. If you are using CDC, you might look at

However if by Small program on server you mean the entire code (app server + application code), then RMI and Cajo are going to be the winners their.

But really to just get it done, HTTP and a simple servlet engine like Tomcat or Jetty is going to get you up and running in no time. For that matter you could use PHP as your server or some other simple scripting engine if there was no need for power of java on the server.

Best regards,