473,320 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

RMI solution?

I have a distributed application requirement which should have a
server listening for requests and a client sending an image and some
data to the server. The server on receiving this, does some
preprocessing and posts this to a database.

I was thinking of using RMI to do the sending from the client, but it
seems to be an overkill to use RMI just for sending data. Is there a
better solution using an alternate technology? Thanks!

Jul 18 '05 #1
6 2616
<ah*********@gmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
I have a distributed application requirement which should have a
server listening for requests and a client sending an image and some
data to the server. The server on receiving this, does some
preprocessing and posts this to a database.

I was thinking of using RMI to do the sending from the client, but it
seems to be an overkill to use RMI just for sending data. Is there a
better solution using an alternate technology? Thanks!


You can use a floppy, or burn a CD.
Jul 18 '05 #2
I hope you were being serious.
Anyway, it is really a client/server situation in which there is a
constant stream (10/minute lets say) of message sending with the image
and meta-data. The data needs to be posted to the DB immediately.
Clearly your solution is an overkill as well as costly and time
consuming. But thanks though.

Jul 18 '05 #3
No, I am not being serious - just sarcastic. You didn't want to use RMI,
thinking it is an "overkill", so I offered the real overkill instead. Any
solution other than the RMI would be even harder to implement. E.g., a
direct socket-to-socket connection, or JMS, or packaging your server as an
EJB and running it inside an application server etc.

In my experience, RMI is suited for the data exchange just fine.

<ah*********@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
I hope you were being serious.
Anyway, it is really a client/server situation in which there is a
constant stream (10/minute lets say) of message sending with the image
and meta-data. The data needs to be posted to the DB immediately.
Clearly your solution is an overkill as well as costly and time
consuming. But thanks though.

Jul 18 '05 #4
Thanks for your comments Alex.
Makes sense, except - Why is a direct socket-socket connection harder
to do than RMI? Would it not be easier to do?

Jul 18 '05 #5
With the socket-to-socket connection you have to:

1. create an anchor (server) socket on the server side
2. create the connecting socket in the client
3. organize the read/write loops with blocking i/o
4. serialize and de-serialize your data (if it includes objects)

With the RMI, you only need to create a server object, bind it to the
registry and export it on the selected port (equivalent of 1 in the s-s
scenario). You also have to create the RMI stubs by running rmic, but this
can be done once in a script/bat file, and put the Naming.lookup code in
your client (equivalent of 2). After that, you are free to send/receive any
data through simple method calls, without worrying about serialization, i/o
etc. Items 3 and 4 in the s-s version are gone.

RMI is a higher-level abstraction of the socket mechanism, with lots of
mundane socket stuff hidden, and lots of convenience wrapping added.

Decide for yourself, which is easier. Or, if in doubt, try the sockets
first, and it won't be long before you quit and turn to the RMI.

<ah*********@gmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
Thanks for your comments Alex.
Makes sense, except - Why is a direct socket-socket connection harder
to do than RMI? Would it not be easier to do?

Jul 18 '05 #6
Thanks. It does make sense.

Jul 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Wayne Wengert | last post by:
I have a solution. I want to clone it to try some different options. Is there a way to open Solution A, save it as Solution B and then be able to try some things in Solution B without affecting...
10
by: Simon Jefferies | last post by:
Hello, I'm getting a strange problem where when I load up my solution that has three projects:- a managed C++ .NET, one C++ lib, and a VB library. It locks up and doesn't load completely, I...
0
by: TEK | last post by:
Hello We have a quite huge project. To limit the solution size, rebuild time and so on we have divided the project in two different solution. One solution that holds the buiness entities, or...
6
by: I_AM_DON_AND_YOU? | last post by:
I have a small VB.Net Solution. The solution has filename LABELMAKER.SLN and the the project has filename LABELMAKER.VBPROJ. There is another file LABELMAKER.VBPROJ.USER. All these are in a...
5
by: kai | last post by:
Hi, I use XP Pro and VS2005. I find when I create a new Website, I only see the Project node not Solution. After I add sedcond project under the solution tree, then I see the solution node. How...
2
by: mkd1919 | last post by:
I'm developing a web service that will eventually be sent to other like organizations to communicate for a particular application. After a few weeks, I decided it would be better to split of the...
3
by: Manikandan | last post by:
Hi, I'm copying projects from a solution in the vss. In my local system i created solution ,added that project(make modification related to solution) When i added this solution to vss, projects...
0
by: techie | last post by:
List of Solution manuals: Engineering Circuit Analysis 6Ed - Hayt Solutions Manual Norbury - Solutions manual for mechanics and thermodynamics Physics For Scientists And Engineers - Solution...
9
by: GaryDean | last post by:
I know this is a vs issue but nobody seems to answer posts over there... In VS 2008 I can't seem to get a multiple project solution. If I create a blank solution and add a project to it, it...
16
by: =?Utf-8?B?RHdlZWJlcmVsbGE=?= | last post by:
I created an Access 2007 application for my customer. The application is shared by three employees on a server. It maintains a contact list including financial data and social security numbers. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.