Is Jetty ever used for production deployment? [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 8 years ago.
Improve this question
Why would it be preferred over Tomcat?
Is your experience with big or little companies? Internal or external (customer/public facing) systems?

You could look at this page listing products that use Jetty.
One example you might (unknowingly) be familiar with is that the Eclipse IDE's help system uses Jetty.

Google App Engine for Java (GAE/J) uses Jetty as servlet container.

We use Jetty for a production environment. Very small and easy to install.

Jetty is in a lot of production environments. It is very easy to install, configure and deploy on. No fluffy management stuff that gets in the way.

I have seen Jetty used for production deployments for lightweight http servers for restful services. For simple servers that relay requests back to a service Jetty is often enough.

It is used quite often in embedded mode. If your server needs extra http component, you can just throw in Jetty, write few servlets, and you're done. Tomcat isn't/wasn't as good for embedding as Jetty is.

Related

servlet container vs app server - in commercial use [closed]

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.

infrastructure software for developing web service [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'm developing a web service and as being new to the technology, I did a bit of research on the internet on the infrastructure software/technologies needed. Below are my findings and hope to get your precious opinion:
Application Server - Tomcat6
Web service engine - Axis2
Web service implementation - POJO
Accessing Database MySql - JPA (Only 5 simple tables)
Do they look good to you?
I'm thinking of using EJB3 for point3, but there are a lot of people on the internet (and this forum) saying EJB3 is not worth the effort, POJO will do. What's your view?
Thanks,
Sarah
Might be worth trying on programmers.stackexchange.com as its not specifically a coding question. For my 2 cents, I'd seriously consider whether you wanted to go down the SOAP route (Axis is SOAP only) or whether you should use REST.
Tomcat is usually a good choice for a server, as is MySQL for a DB. If you're going to use JPA, you need to choose a JPA implementation; the obvious one is Hibernate. If you do choose to use REST then I can recommend Jersey, which is Sun's reference implementation.

What would be a good implementation for running java (javaserver pages) on a linux server? [closed]

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 12 years ago.
Improve this question
I want to install and use java on a linux server. specifically, for creating large web applications, so I want to use JavaServer pages technology
My question: is this possible?
and how do I get started?
thanks,
av
Yes, absolutely.
Tomcat is what you need. It's an open source servlet container that supports JSP (Java Server Pages) and it works fine on Linux. It's very stable and sustains very high throughput.
I can tell you first from first hand experience that some surprisingly large companies with a lot of daily traffic use Java, Linux, and Tomcat to build their webapps.
EDIT: So, if all you are interested in is JSP, Tomcat is the place to go. For large Java webapps, some other standard technologies get used. Based on your question, these may be more than you are looking for now, but just in case....
Apache HTTP Webserver - Can provide
some caching, load balancing, and
HTTPS termination.
Hibernate - Database relational mapping
Spring - Dependency Injection and
configuration, among other things.
Struts or Spring MVC - Web App
framework
Velocity or Freemarker -
Alternatives to JSP for templating
Memcached - Distributed caching.
These are some of the other larger moving parts. All free, open source, and work very well on linux. There are tons of smaller parts that I haven't mentioned.

Do you use a solution for all server related stuff (Git repositories, mail, database, web services) or many solutions? [closed]

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 8 years ago.
Improve this question
I would like to solve all my problems with domain
place where I can store all my git repositories
place where I can deploy my Java, (python, php) applications
place where I have my jabber, mail, silc on my own domain
I don't have enough technical knowledge to run my own server, I would like to use somebody else solution but as cheap as possible. Is there cloud solution with these capabilities? Is there a trustful, cheap server provider? Or do you use many solutions like - gmail, github, aws/gae, etc?
Finding everything you need in one place is fairly unlikely. I typically use Google Apps for email and docs (they also support jabber), then use other services like GitHub for Git hosting where needed. Deployment varies by project, but usually includes AppEngine, Heroku, SliceHost, or EC2.
I'd advise that you get familiar with a few services and try them out. If your experience is anything like mine, you will settle on services you like (and can afford).

Monitoring application-specific metrics using JMX and Hyperic [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 3 years ago.
Improve this question
My webapp exposes some application-specific metrics (think "orders placed") via JMX, which I'd like to monitor using Hyperic HQ (open source edition).
According to the Hyperic Inventory Model, my Linux server is called a Platform hosting my Tomcat 6 Server, which in turn hosts Services (e.g. "Servlet Monitor") that finally expose Metrics (e.g. "Error Count per Minute").
I assume I need to develop a custom Hyperic plugin (just an XML file, really) that would point the agent and server at the correct JMX MBeans. Ideally, I would like to see my webapp listed as a Service hosted by the Tomcat 6 Server, but looking at the Plugin Development docs, that doesn't seem to be possible.
Maybe that's not too bad anyway, because in theory, I might want to switch my app to Jetty. But I figure that's a very common use case, so are there any best practices? I couldn't really find any examples of this on the web, so I thought I might just ask the experts..
Please note: The Hyperic docs I linked to seem to require an account to view.

Categories