The Artima Developer Community
Sponsored Link

Java Answers Forum
Standalone and Web-Based

1 reply on 1 page. Most recent reply: Jun 6, 2005 11:40 PM by Kondwani Mkandawire

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Dan Mintz

Posts: 1
Nickname: baseball
Registered: Jun, 2005

Standalone and Web-Based Posted: Jun 6, 2005 3:32 PM
Reply to this message Reply
Advertisement
Any suggestions re structure/overall architecture is I wanted an application (for example a game) to:

(1) Run standalone - accessing files on the initiating PC

(2) Run as a web service - accessing files on the server

but have as much as possible the same code base both for the UI and backend processing and data access.


Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: Standalone and Web-Based Posted: Jun 6, 2005 11:40 PM
Reply to this message Reply
How about having a Controller which does your file
accessing (your controller would be your base code),
and the UI code (Swing, or some other API) then
interacts with the Controller, and you web
applications (JSPs) would the also interact
with your controller (which has access to
the file system).

Flat View: This topic has 1 reply on 1 page
Topic: Thread Previous Topic   Next Topic Topic: Object Serialisation

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use