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 developed a website using netbeans 6.9.1 and glassfish and now i have to install it on a real server. What are the steps i should take to make this working ?
1.) Install the exact version of MySQL i was working on my machine
2.) Install Glass fish (I think i did something after logging into
Glassfish admin portal, but i am not sure what i did)
Can someone brief me up with what i have to do ?
You must take care of several things:
correct / supported OS (MySQL, Glassfish, JDK) and hosting environment (physical, virtual, cloud, etc.)
JDK version / vendor
storage requirements
Glassfish installation, installation guide is here
MySQL installation, if I remember correctly it's packaged with the product
Configure all components for production (e.g. JVM heap size, OS configuration)
If required set up appropriate monitoring tools (servers up, storage allocations, etc.)
Verify whether you can get a least 2 (e.g. virtual) servers (production, staging/test)
You should create proper installation guides and operational manuals, this depends on your environment. This can become a complex task...
Edit: Depending on your non-functional requirements you may want to have the DB on a separate server and build an application server cluster. As #Vineet mentioned you should look for professional help if it's a large environment.
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 1 year ago.
Improve this question
I have several questions about dockers for freshers, could somebody help me please?
As I learned, containers don't have OS inside of them, they all share one OS of the cloud server.
But what if I want to deploy app that was written from diff platform?
For example I have Linux on server, but on my own machine I've Windows.
So I develop java app, using JDK for windows..
Now I use docker to build the image (as I understand I should pack my app, its libs and JDK for windows at one container with help of docker file and put it to Linux Server...so how my app will work on Linux inside of container?)
Please help me to understand how does it work, becouse I miss something here
Scalability. Why we want to copy the applications on server (as written, the containers are very lightweight and easy to copy), why not to use multithreading?
Containers do have OS's - for example you can run AlpineOS or Fedora containers on Ubuntu. The package space and libraries are not shared with the host.
Java doesn't care where you run it; Docker is not a requirement. In any case, you can package the app with a Windows JDK (no container) and copy it into a container with only a JRE (you should only need a JDK to compile). Or you use multi-stage Docker builds to use a Linux JDK to compile and package your artifacts, then copy that into the same JRE runtime layer
Containers and multithreading aren't exclusive. Besides, I think you meant multi-processing which would require an external supervisor process (which is specific to the OS), compared to using a container orchestrator. Also copies of the application artifact shouldn't be needed, only memory space needed for the process(es)
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 2 years ago.
Improve this question
I need to bring over a system from locally hosted to cloud services. Right now the system runs on Tomcat 6, MySQL 5.1 and JDK 8.xx running on Windows Server 2012
What is the best approach to move this forward - right now it is running on Windows Server, for licensing costs, etc it seems cheaper to move to Linux as the OS and spin up a LAMP server or use AWS or Azure services for a serverless solution if I understand things correctly. I understand there are also solutions like Bitnami with pre-built environments.
This is far from my area of expertise so I'm looking for advice on the current preferred solutions for this kind of setup. Not married to Azure, AWS, any particular solution. Wondering what needs to happen code wise too so we can take the necessary steps to move to new infrastructure.
Any advice, pitfalls, solutions would be welcome just to find some direction. Sorry if this seems vague can offer up more info as needed.
One good solution is to move towards containerized solution. Both Azure and AWS offer managed Kubernetes service. Moving to container based solution will also have added benefit in your case that you can build your own container even with older versions of your existing apps or pick base image from the plethora of public images (e.g. for Tomcat https://hub.docker.com/_/tomcat). So it will be quicker migration with lift and shift approach.
For more details about container service offering in Azure, refer https://learn.microsoft.com/en-us/azure/containers/
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 7 years ago.
Improve this question
hello I am working on a software product (ie. type of purchase and sell recording software for a shop) build especially for client base, I mean front end application and database should be keep in client machine. I need a feasible solution to provide those package in a one bundle. I am using javafx for frond end, hibernate for relational mapping and mysql (basically opensource like H2, JavaDB) as database.
Q1.Is it feasible for this kind solution?
If not can you suggest me a substitute way.
And if yes, I need those package in one bundle, I mean client don't need to configure database password or other configuration. Can we provide a script or any kind of batch installation which can install jre or jdk, mysql or any opensouce db, our software and configures it automatically (ie. setting up root password). I know Install4j can done the bundle but I need the automated database configuration.
Q2. How can I do this?
I need a some kind of expert opinion.
Thank you.
If you use mysql, installation for you client will be a little bit involved for you and your customer as you will probably need to package the mysql installation package with your app and have your installer invoke the mysql installer.
I'd suggest a lighter weight database than mysql which is written completely in Java. For example h2 as mentioned in your question or hsqldb, both are just a jar with no native portion - this will make distribution and configuration easier. Using Self Contained Application Packaging, the javafx deployment tools can package your app with it's supporting libraries, the hsqldb engine and a jre installation. Hibernate provides all of the database configuration mechanisms you need.
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
I want to build a client-server architecture software, and I want the server component can be easily installed by average people on their Windows or Mac OS X operating systems.
The server-side:
1. contains a self-running web server
2. hosts a web-based administrator site to manage business data and master data
3. provides API endpoints (in JSON) over WIFI
4. has sqlite 3 or MySQL database to hold business data
5. the data volume is low, the
The client-side are mobile applications which talk with server via API endpoints over WIFI.
I started thinking about Java, as JVM is installed on almost every computer, but what about the web-server and database? In a sense, as I use MAMP on my Mac a lot, I like the approach of this nice product, easy install, one click to launch all services.
Can anyone point me a possible direction?
You have suggested MySQL. That sounds fine to me.
I would suggest Tomcat as a pretty widely used web-server.
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 11 years ago.
Improve this question
Anybody knows why godaddy.com cannot host Java based website in Windows machine? Is there any technical difficulty to do so?
EDIT:
this link has answer and solution: http://www.oreillynet.com/onjava/blog/2006/09/why_is_javaenabled_hosting_so_1.html
To host a Java-based website (I guess you mean JSP or similar), then you need a Java application server, e.g. Apache Tomcat.
There is no technical reason why a Java application server cannot run on Windows. There are commercial reasons why web hosting providers generally do not offer, or charge more for, Java hosting versus more "standard" configurations based on Apache httpd or Windows IIS.
Is your hosting option from GoDaddy for a Linux based host or a full Linux virtual machine?
The problem is likely that you have a Linux based host where you have your own chroot to isolate your files and data from other customers and your pages are served with their webserver.
What you would need to find is a hosting plan which includes a Java server, like Glassfish or Websphere. You could also find a host where you get an entire Linux virtual machine that you can install your own software on and run your own webserver.
Can you please identify what the problem is? You are asking why Godaddy.com does not offer Java web application hosting on Windows. This is a strategic decision by Godaddy.com, there is no technical reason behind it. Your question is like asking why Ford does not offer pink as a stock color on their cars.
If you are looking for an alternative hosting provider who offers Java web application hosting, you should ask a new question stating exactly that.