aspose file tools*
The moose likes Java in General and the fly likes Passing objects to remotely or access database remotely ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Passing objects to remotely or access database remotely ?" Watch "Passing objects to remotely or access database remotely ?" New topic
Author

Passing objects to remotely or access database remotely ?

Steve Yu
Ranch Hand

Joined: Mar 26, 2003
Posts: 60
I orginally posted this on "Distributed computing" but didn't get final answers. Here is the question ---
We found it slow to run some complex java 2D graphics (like a go game) on unix box, but it is faster to run it on windows (maybe many people have realized this). However the database is installed on unix machine and we need to use the database prior to creating java 2D. Which of the following two approaches makes more sense ?
1. Use RMI mechanism to split the code between unix and windows, let the unix part access local db, then pass generated objects to windows and let the codes on windows generate java 2D graph ? But this requires sending objects through network, it may slow down the process ?
2. Let the application mainly run on the windows, i.e. let the application access raw data from Unix database and then create customized objects on windows directly, and then run the graphics on windows directly ? This way we don't need to send any objects across network, right ? But I am not sure how slow it is to access database on a unix box from windows ? And what potential problem may arise ?

thanx
John Smith
Ranch Hand

Joined: Oct 08, 2001
Posts: 2937
The Performance forum is probably a better place for your question. I'd say you need to profile (using something like Borland OptimizeIt) your application to find out what the bottleneck is before you make any decisions about how to distribute it. Is it the network? The database? The graphics? The inefficient algorithms? There is no need to guess, -- the profiler will tell you all and will steer you in the right direction.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Passing objects to remotely or access database remotely ?
 
Similar Threads
Access and read files on a Windows server from a Java application installed on Unix Box
run java app
Is it proper to consider using RMI in this case ?
why Android
Passing objects to remotely or access database remotely ?