Home » Enterprise Java » jetty

jetty

Jetty Continuations Example

In this example, we will show how to use Jetty Continuations. Continuations are a way to implement asynchronous servlets. Added advantage of this feature compared to asynchronous feature of Servlet 3.0 api, is that it provides simple and portable interface. Jetty continuations suspend an HTTP request and releases the thread to the thread pool. It restarts suspended request on an ...

Read More »

Jetty Standalone Server Example

In this example, we will show how to use Jetty in Standalone mode. Jetty server can be used to deploy web servlets. We will show how a standalone jetty is configured and how a different configurations can be used to write a simple web servlet and deploy it on jetty server. Previously we saw how to use jetty in embedded ...

Read More »

Embedded Jetty Server Example

In this example, we will show how to use Jetty in embedded mode. Jetty can be used in standalone mode, but the main purpose behind building jetty was so that it could be used inside an application instead of deploying an application on jetty server. Generally you write a web application and build that in a WAR file and deploy ...

Read More »

Jetty Deploy War Example

In this example, we will see how to deploy a war file on a jetty and run the web application. In general, jetty server instance configures the deploy module. This will have web application deployer that hot deploys files. But other way to deploy a war file is through deployable descriptor XML file. 1. Environment Windows 7 SP 1 Eclipse ...

Read More »

Jetty Runner Example

In this example, we will show how to use jetty runner. Jetty runner is a concept where you run your web applications with a single jar without installing jetty. You don’t need to administer jetty distribution in this case. Jetty runner is a standalone jar which can be used to deploy multiple web applications or run web applications with different ...

Read More »

Jetty NIO Example

In this example, we will show how to use jetty with NIO based connector for server side communications with clients. Before Jetty 9 , there were both blocking Input/Output (BIO) and non-blocking Input/Output (NIO) and one has to specify protocol and implementation used through connector. Jetty 9 now only offers NIO connector and protocol is configured through collection of ConnectionFactory ...

Read More »

Jetty “JSP Support not Configured” Error

In this example, we will show how to resolve an error which is frequently encountered if you are using Java Server Pages (JSP). Java Server Pages is a server side technology and it is used to create dynamic java web application. JSP can be considered an extension to servlet technology. We will use embedded jetty to show the error and ...

Read More »

Jetty Session Clustering Example

In this example, we will show how to use jetty for session clustering purposes. During this, we will configure multiple jetty instances,a load balancer, and jetty session clustering. Jetty is an open source web server developed by Eclipse Foundation. You can read more about how to deploy a simple servlet on jetty here. Jetty can be used for high availability ...

Read More »

Jetty Servlet Example

In this example, we will show you how to make use of Jetty – Java HTTP Web Server and servlet container and run a sample servlet on this server. Jetty is an open source web server developed by Eclipse Foundation. As a part of this example we will create an eclipse project which will have our servlet code and to ...

Read More »

How to Install Jetty Application Server

Jetty is an open-source Servlet container and Application Server which is known to be lightweight, portable, robust, flexible, extensible and providing support for various technologies like SPDY, WebSocket, OSGi, JMX, JNDI, and JAAS. Jetty is very convenient for development and also widely used in production environments. In this post, we are going to detail how to install and configure a ...

Read More »