This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Stand alone to web Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Stand alone to web" Watch "Stand alone to web" New topic
Author

Stand alone to web

adeeb alexander
Ranch Hand

Joined: May 29, 2008
Posts: 267
Hi all.
I have developed a stand alone application using swing for a college. Now that college has two branches, i need to use the application on web. Please suggest me. Can i give the ip address in the driver URL, or any other way.




Thanks and Regards.
Alex
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 8439

Way I look at things, you got two options which will mean minimal code changes.
1) Java Web Start
2) Applets

[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

Anything other requires a completely new technique like JSF or GWT, and therefore would require an almost full rewrite of all user interface related code.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
Rob Prime wrote:Anything other requires a completely new technique like JSF or GWT, and therefore would require an almost full rewrite of all user interface related code.


Which is one of the best arguments available for striving to separate UI from logic!
Piyush Patel
Ranch Hand

Joined: Feb 24, 2009
Posts: 127

hi,
am not sure of this,
run your app using mysql or any other database. get IP of the machine in which database is running.
set or edit IP, Username,password in GUI app and run application in your two branches.
all data will be stored in centralized database...

are you getting?


[My Blog] [ Follow @Twitter] | Innovations never goes out of Style...
Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

Piyush Patel wrote:hi,
am not sure of this,
run your app using mysql or any other database. get IP of the machine in which database is running.
set or edit IP, Username,password in GUI app and run application in your two branches.
all data will be stored in centralized database...

are you getting?



This is an over simplification. There is a lot to consider when going this route the least of which not being updates to the application. I'd recommend JWS over this approach and Applets.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Stand alone to web
 
Similar Threads
how to use jpa & database connection pool in swing?
code that runs automatically to update sql tables on a specified date and time
Install shield for swing application?
Session Time out
Dialect class not found