Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am new to this web application thing and I have just started creating a web application using JSP for my implant training but I am very much tangled with these questions in my head.
Do the computers in the client side need java installed for utilizing my web application because I am using JSP ?
How will the computers access my web application after I host it in the server?
What is the procedure to host the application in the server.
I am developing my web application in Netbeans IDE and the server is Tomcat but everything is in my personal computer, very soon I will have to deploy it in actual server and how should I make my web application a stand alone application ( To work without NetBeans IDE ).
No, client only need a web browser.
Client can call your server IP address (http://192.168.1.10/app) or call its domain if you have setup your domain (http://yourdomain.com/app)
You can run your application on any computer (Linux, Windows, Mac, Solaris, BSD, etc.) capable of running Java SE (Standard Edition). Tomcat runs on top of Java SE.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am going to build web application in Java (JSP). In my web application ;JApplet will communicate with the database that is on other place(Remote Database).
My question is that how applet can take and give the data from the database.
I am Using MYSQL database.
Can I use JDBC for that ?If so then how?
Unsigned applets must follow the same origin policy, hence the applet will only be able to talk with the server from where it was downloaded. For this case it may work, assuming you bundle JDBC driver somehow (like moving driver classes into applet jar, or trying to use multiple jars in the same applet).
However if you want to deploy the application more widely, it may be better to use text based communication (XML or JSON) on the server port 80. JDBC port may be blocked by various firewalls.
As the alternative to the applet technology, you may also look into Google Web Toolkit. It is the same Java (just toolkit compiles to JavaScript) and you should feel at home, but it is easier to deploy reliably. GWT provides callbacks to pass the data to and from the server.
what you exactly wanted to do is run to your applet inside your web container for that you study the architecture of J2EE web container that how it run applet container.you can check on the oracle site link : about j2EE containers. for the architecture you can view this :http://tekmarathon.files.wordpress.com/2012/10/j2ee_component_diagram.png
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
i am creating an android application which has got two parts a client part and a server part. So the client will be asking the serveer for a particular data and server need to give it back to the client. My question is how i can run this server program (jar file ) in a web server. I have tested it locally using eclipse but i need to know how i can put this into a web server and run it there. So that the client can use a data connection and connect to the server program and get back the respose from there Sorry for the inconvenience caused and a thank you in advance
From the way you describe your server it sounds like a simple .jar file that you built. If this is the case, you can simply deploy the jar on any compatible computer (or webserver) that you have shell access to.
Build runnable jar in eclipse
Place the jar file on some server
Make sure the server has java installed (same java you used to build your runnable jar)
Run the jar using java -jar path_to_jar.jar
To answer your question, you can run this in the background of a server running other services as long as you pick a port that isn't already in use. Make sure you enable port forwarding on your router/firewall (if you have one) if you want to access the service externally.
You will require Tomcat server for running Java ,jsp
To start with hosting this link might help you.
How to host a JSP website on a webserver?
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I have a simple web application based on Java and javascript. I have only used it in Windows OS.
Is it possible to run the server on a unix machine? And access it from other machines?
What server does unix support?
If it is possible, what steps would be involved in doing so?
Current environment:
Application Server: Apache tomcat
Java Version :JDK 1.6.
OS: Windows XP
I have no idea about UNIX machines and have not used one before. I am assuming JDK can be installed on the UNIX server. And change of application server should not be an issue.
Java Platform Independent feature comes in.
It will run, only thing is your code should not have things specific to OS, like using File path separator like "/" instead use File.separator.
Also, you will need JVM specific to OS ie unix variant.
And access it from other machines?
Yes, Application deployed on server is accessible from any place in UNIX as well.
What server does unix support?
You can use Tomcat to test (Others based on your need).
what steps would be involved in doing so?
Same as what you did in Windows what you did.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
According to https://stackoverflow.com/a/5039371/769384, which clearly states the difference between servlet containers and app servers, it seems that a web container such as Tomcat should not be widely used in enterprise applications.
Lots of libraries would have to be installed additionally, so it's a lot easier to install an app server that provides it.
The question is - do I get it right? Are there any enterprise applications run on tomcat? What would be the benefit of deploying a Java EE (EJB+JPA+JSF+...) on a Tomcat instead of a GlassFish server?
Servlet containers which can be also called web containers don't support EJBs', they only support Servlets and JSPs' along with other related technologies.
If you need to deploy and EJB, you'll then need an application server.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I need to make an on-line system/webapp/server that connects to an mySQL Server. this web app/server must accept incoming communications from an android app and then make changes to the database. Also there needs to be an "Web Admin Console" to do manual data manipulation.
I was considering using Java with Tomcat for the web application the system needs to run on:
open source frameworks
be well documented technology
secure data transmission
are there any other software/languages i could use? how do i set up the web console? there needs to be an SSH access as well...
How do I start with making this online system?
You can develop complete system in JEE6. You can choose RESTful WebServices for integrating Android Application and Web Application too. For developing web application you can go with JSF if you want rich look and feel. Else you can stick with normal JSP and frameworks like jQuery and Twitter Bootstrap etc.