I have one stand alone client server application.
I want to move it to Spring MVC so that it can be deployed on some server (eg. TOMCAT etc).
I’ve referred to many Spring MVC tutorials etc but couldn’t get any idea how I can deploy my own app.
The application outline is as followed.
SERVER accepts data from client and processes it, checks whether data is already in there or DB or not, if not it inserts it in DB as well as writes it on a particular file based on ID specified by client.
CLIENT sends just randomly generated data as of now.
Now what I want to do is create web pages where I can, by clicking on a button, initiate the client and send data to the server as well as show the response on a client page (eg. connected, data received, data inserted in DB, data already exists in DB etc.)
_ I’m badly stuck here and don’t have any idea how to move forward so please guys help me out here. _
I can post the code if required in editing.
Thanks in advance. 🙂
In order to deploy a web-application you need to create a .war file. In the eclipse IDE you simply chosse “run as” / “run on server”.
You should also specifiy the spring-version, your build system (ant or maven).
Using spring-sts (as plugin or sts-workbench) you would have templates which will setup your project correctly.
There
so many options, my suggsestion for a quick start would be: create a project with
maven by entering on the command line
then select the archtype (project template)
run
import the project into eclipse, perfom a build and choose “run on server”