deploying chat application on web server - java

I have build one chat application, which consists of server and client part & backend uses sql server 2005. Now i want to deploy my chat app on Apache web server. by converting it to exe and allow users an option to download my exe file through jsp file.
Now what i need to know is:
What exactly i need to convert in exe(is it server or client or both seperately).
Can my chat application automatically access database if i convert it into exe.
Do i need to deploy both client and server exe on web server.
I hope i am clear enough.

Related

How to create simple Web Server for Map/Java Application?

I want to create web server for (localhost) which:
1-provides HTML code (https://leafletjs.com/)
2-receives requests (Ajax requests) from the client that calls corresponding methods in the backend and their send the result back to the client.
Install an "Apache Tomcat" application server and write a "Servet Application" or use "Java Server Faces". Google for those keywords.
I wrote a german tutorial about this: http://stefanfrings.de/jsf_tutorial/index.html there is a translation link in the upper right corner.
If you do not want to install an application server, then you may prefer to use Jetty, which is basically the same as Tomcat but embedded in your own executable program.

how to deploy java application on heroku?

I want to Deploy my server side java application on a server. I choose to use Heroku.
Currently, I am able to create server and client side application on java and run them from my laptop on different terminals and communicate between them. Now I want to do same over the internet and choose Heroku server but I don't understand how to deploy my application on its server. I tried to read their tutorial but I am not able to understand from it. Tutorials on youtube and other are very old.
Help me deploy my application to Heroku . I use Eclipse and know how to use git. Let me know if you need any other info.
Edit: As my first server application I would like to deploy a chat box. I will execute client side from my laptop and launch the server side (created by me) from Heroku.

Integrate a finished web service in a Android application

I don't know if the correct term is "integrate" or "connect" a finished web service in a android application. I mean,
Is there any possibility to "integrate" a finished RESTful Web Service in a Android application, which I have not developed, yet.?
Otherwise,
Are there some steps to develop a RESTful web service which I need to use from a Android application?
The last question is asked because I don't know if the first step is to finish my RESTful Web Service and then integrate it in my android application or or developing the RESTful web service and the android application at the same time.
In any case, how I can do it well? I need help to organise my mind
You will need three things:
Client(your app)
Server
Database
Lets say you have to create a login service for your app. Then your steps should be like given below:
Create a login form with android UI.
Get username and password from Edit Texts in strings.
Send these credentials to server(via http reqest).
At client side read response from url via input stream.
At the server side, use a server side technology in which you are familiar with.(If you are not familiar with any server side tech. I strongly recommend you php.)
Select/update/compare (Whatever you want) in data base and return response as a json string.
You can use server on your system. I suggest to use XAMPP(cross platform apache mysql php perl). As its name says, it includes server+database+php (its local). It will create a local apache server on your machine.
Follow this : XAMPP Tutorial , Working with XAMPP
Here are some nice tutorials of web services with android:
How to connect Android with PHP, MySQL
Using Database from an Android Application

Transfer .properties files from server to client in web application

I am developing web start java application. I need some initial setup files which needs to be transfered from server to client pc and are in .properties file format. I need these files before launching my application. How can I achieve this?

How can I host a Jar file on Tomcat

I have developed a simple management software like library,shop item management. when I compiled my java files I get a .Jar file which I want to host somewhere (tomcat etc.) so that anybody can go to that IP and add/modify the iteams. Is it possible ? I developed that software using java Jframe.
You need to create a JNLP (Java Network Launch Protocol)
The Java Network Launch Protocol (JNLP) enables an application to be launched on a client desktop by using resources that are hosted on a remote web server
See This for detail about JNLP.
Also you will get a lot of information from google about JNLP.

Categories