Is a LAMJ stack a possible environment? [closed] - java

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 7 years ago.
Improve this question
Is it possible to use Java instead of PHP with Linux, Apache and MySQL?

the 'LAMP' stack is not some special thing, only that there is a lot of support in the form or frameworks etc based on it. There is no problem to create an application based on Linux, Apache, MySQL and Java (LAMJ) but it will have totally different benefits and drawbacks than LAMP because Java is so totally different from PHP.
Where MySQL used to be the database of choice for Java developers I believe that has now shifted towards PostgreSQL. Some folk like NoSQL databases like MongoDB but that really ties into the Java frameworks you want to use. Also you need some sort of web container to run your Java web application in. The most popular is still a web server like Tomcat I think, you could also use Jetty. For larger projects requiring more extensive application management support and clustering you could consider Glassfish or JBoss.
Maybe you should consider an LTPJ stack (Linux Tomcat PostgreSQL Java). I think that will give you more joy in the way of community support.
EDIT: 2019 update. In my perception the 'standard' has shifted to Spring Boot, with which you can run a web application as a standalone jar using an embedded Tomcat instance. Spring Boot offers a lot of out of the box support like Spring Actuator for management endpoints (e.g. application health).

Related

Moving application to the cloud, Tomcat, Java, MySQL - Azure/AWS options LAMP or services? [closed]

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/

What is best way to manage spring boot applications on unix systems [closed]

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 5 years ago.
Improve this question
We have multiple springboot applications running on unix. It is very easy to start them by using java -jar .jar in a bash script. Now we are expanding. having more and more applications on spring boot. I am worried how to manage these kind of applications across multiple unix systems making sure that they are running and responding properly.
Do i have any other options apart from writing bash scripts, checking status etc ?
What is best way to manage multiple springboot applications ?
I see fabric8. https://fabric8.io/guide/springboot.html
Are there any good opensource platforms to support and manage multiple spring boot applications deployed across multiple systems.
Checkout this manual here Spring Boot allows you to configure and run your applications as executables and as services.
If you are building a microservice architecture I would recommend to use Spring Cloud and there is a default monitor system Spring Boot Admin UI or even Eureka would give you enough information about microservice status

About Using Hibernate in a Web Application (J2EE) [closed]

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
I'm new in Java EE (J2EE) , i would like to build web application that store users and passwords in databases than they can login and login out , after that i want let them can add , delete and edit fields like in this pic:
Table
Edit table
Is there examples of that, thank you
There are no specific technologies for building an application like that, there are hundreds of technologies in thousands of combinations that will build a simple CRUD web application. You have specified that you want to use Java EE, but even that is not specific enough: do you want to use Java as a front end technology (eg JSP, JSF, etc) or just for server side processing? I would recommend that you investigate front end frameworks/technologies, different types of databases and different architectural styles and decide which combination is right for your application. Only that can you begin to think about examples and tutorials that will show you how to put them together.
To give you a starting point, the flavour of the month in front end technologies seems to be javascript frameworks like AngularJS (prior to that java based technologies were preferred in many cases). You can use this to communicate with RESTful web services written in Java EE. NoSQL databases like MongoDB are popular at the moment, but you could use a more traditional relational database like MySQL. Both of these databases work well with hibernate.
Bear in mind that is just a starting point for your research and may not be appropriate for your application.

JAVA EE web application and big traffic [closed]

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 8 years ago.
Improve this question
I choose java to make my web application with maven + hibernate + spring MVC + apache tomcat server (Java EE).
My web application will have many users and many visitors every day.
But my friend told me that web application with java don't support a lot of connections and it's made just for Intranet and business application with network within an organization.
So is it true apache tomcat can't handle all that traffic ?
i'm not looking for who is the best between java, php and .NET i want just know if web application with java can handle a big traffic ?
also explain me if there is some other negative points of using java and apache tomcat server.
The Java based technology stack you describe is extremely scalable, if you want it to be, and I would have no worries about using it for high traffic applications.
You may want to look at distributed hosting and load balancing, to make things more reliable. Lots of high traffic applications use Java and Spring stacks.
using plain old jsp/servlets are faster than spring and hibernate because spring or hibernate have a middle tier with classes which renders the page slowly and takes more memory at the server.
For production environs with huge scale applications you will end up writing plain jsp/servlets as they are a breeze to write and maintain.
Also i would like to add that struts library(jar file) had some security vulnerabilities in late 2013 only. Stay away from Struts and Spring.
People may be down voting but there is truth behind what i have actually experienced.

How to get a webinterface for a small Java program? [closed]

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 4 years ago.
Improve this question
Actually I have a Java application running on a Linux server as daemon. Now I'll provide a simple web-based configuration page. I have no clue how to solve this without using big frameworks.
What I fell that I don't want is to use Java EE or sth like this. A "small" free (for commercial use) library is ok.
Any ideas?
I would recommend you to use Jetty(it is probably most Java lightweight server) with pure Servlets and JSP. If you need only one or two pages with few configuration options then any framework seem to me like unnessecary overkill.
I can recommend play framework if you want to stay in the java space or if you are adventurous you might consider any number of microframeworks/environments in other languages.
flask(python)
scalatra(scala)
meteor.js(javascript)
node.js(javascript)
twisted(python)
sinatra(ruby)
All of these offer very lightweight web servers(Often allowing you to create dynamic web content in just a few lines) in conjunction with languages that have os integration that will allow you to manage the configuration and status of your application.
You can use Apache Tomcat or Jetty.
Look into com.sun.net.httpserver if you are using the jre. It's already there any very easy the embed.
For configurations you can also use JMX. The jconsole can easily access your application and there is also a JMX HTTP adapter. This adapter allows you to monitor the setting and also change them. This gives you a web page for free but of course its not a "pretty" page.

Categories

Resources