Forums Register Login

building a web app from a desktop app

+Pie Number of slices to send: Send
Hello
I have created a multi tabbed JDesktopPane The application is built using the MV2 framework and it interacts with a Derby embedded Database through properties files, XML properties and a DAO.


I would like to develop the Desktop Application into a combined or separate Web Application. How would I start this process? Will I be importing the app and building the web pages? I use an apache derby embedded database. Will I need to use another database? Can the JSP pages

Use my existing controllers and use the db to fill in JSP forms or can I use my existing app somehow? thanks

+Pie Number of slices to send: Send
You can use the same database in your web application, but you'll find the Swing part of your application to be mostly useless. You'll need to rewrite the GUI as a web application from scratch. You won't be able to reuse the panels in your GUI, but you'll probably want to mimic them in HTML and Javascript.

You may find that the "business logic" in your application can be copied directly over into your web application, but if it's entangled with GUI handling, which is easy to do when you're writing a Swing application, you might find it difficult to disentangle it. (I couldn't find anything online about that "MV2" framework so I have no comment about that.)
+Pie Number of slices to send: Send
I taught myself MVC by trial and error. My app has over 2million lines of code. I guess the final test will be to see how well I separated the model from the view. Thanks for the feedback. So what is up with the JRebel? I looked at the web site but I will have to study it further. Are there programs that will make my app. Deploy without writing the code?
+Pie Number of slices to send: Send
 

Steve Howerton wrote:Are there programs that will make my app. Deploy without writing the code?



No, you have to write the code and then deploy the resulting application.
+Pie Number of slices to send: Send
 

Steve Howerton wrote:I taught myself MVC by trial and error. My app has over 2million lines of code.



This sounds a lot like the Swing application I've been working on for a number of years. (It was originally written in Turbo Pascal back in the 90's and then rewritten in Java.) "Trial and error" are the keywords for it too. And I've been thinking about converting it to a web application as well, which I might do when I get time.

But 2 million lines of code? You've been busy. The company I work for does about $8 billion of sales of consumer goods annually out of about 30 warehouses in 2 countries and the code base to run almost the entire business is not much over 2 million lines, written over a 30-year period.
+Pie Number of slices to send: Send
Interesting. I have not offically counted the lines but it has over 800 classes and a very large majority of the classes are an easy 3000 lines. I think my estimate is low. Is there a way to count them?
I have another program written in action script that deals with graphical approach to teaching Music theory on the guitar. I have written a install program in java but have not been able to get any one to look at it or market it. Is there a way to sell or market this that I could use?
+Pie Number of slices to send: Send
If you're using Eclipse, there are various "code quality" plugins you can install, which give you metrics like "lines of code".
+Pie Number of slices to send: Send
I am not sure how counting lines of code is reaningfull. I am sorry I mentioned it. I guess my point was it would take forever to rewrite the thing. I would like to understand why I need a web app? I might be better off understanding local networking. Why can't a myapp.exe run on any computer
and do so by looking on my computer for the db instead of on one of the hardrives on the client? What about networks that are not local? should it not be able to find the database on my server or hard drive rather than someone elses server?
Thanks for your replies
Put the moon back where you found it! We need it for tides and poetry and stuff. Like this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1219 times.
Similar Threads
Webapplication (JSP's, Servlets, PostgreSQL DB) availble offline (locally).
Executable jar app doesn't find Driver
Swing Application w/Embedded Database
Derby Embedded vs. Derby Network Server
Embedding Derby
Thread Boost feature
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:15:36.