magazine resources subscribe about advertising

New Architect Daily
Commentary and updates on current events and technologies

CMP Media E-Book

Download your copy today.

Research
Search for reports and white papers from industry vendors and analysts.

This Week at NewArchitect.com Subscribe now to our free email newsletter and get notified when the site is updated with new articles







Day of Defeat Online Gaming

 New Architect > Archives > 1999 > 08 > Java@Work

Practical Client/Server Without the Server!

Last month we looked at how to write custom servers in Java that can handle specialized tasks on behalf of a Java applet. The example program, a tic-tac-toe game, used a custom server to connect applets on different machines.

This works well for applets, but sometimes an applet isn't the best answer to a problem. In client/server programming today, it's clear that the Web browser is the ultimate client. Not only does everyone have a Web browser these days, but big companies like Microsoft are pouring tremendous sums of money into their development. It's unlikely that on my budget I'm going to come up with a piece of client software to rival Microsoft's or Netscape's.

Consider a very simple case. Suppose your sales force wants to enter orders on a personal computer for input into an order-entry system on a mainframe. Of course, there are various ways to do this, but to keep things simple, further suppose that you wanted to save the input to some comma-delimited files on the server. Perhaps the mainframe will read them as a batch.

This isn't very hard. You could do it with Perl, of course, or any CGI-scripting language. Active Server Pages would work and so would Java servlets. However, all of these methods presuppose one thing: that you can connect to a server to use. In other words, as long as the salespeople are in the office (and the network is up), no problem. But what happens if they're in the field and don't have a connection to the server?

In this case, the client software should write to a local file on the user's hard disk.




  Day of Defeat Online Gaming

home | daily | current issue | archives | features | critical decisions | case studies | expert opinion | reviews | access | industry events | newsletter | research | careers | info centers | advertising | subscribe | subscriber service | editorial calendar | press | contacts


Copyright © 2006 CMP Media, LLC Read our privacy policy, your California privacy rights, terms of service.
SDMG Web sites: BYTE.com, C/C++ Users Journal, Developer Pipeline, Dr. Dobb's Journal, DotNetJunkies, MSDN Magazine, Sys Admin,
SD Expo, SD Magazine, SqlJunkies, The Perl Journal, Unixreview, Windows Developer Network, New Architect

web2