Jump to: navigation, search

Difference between revisions of "Jetty/HowTo/Using Jetty with IntelliJ"

(New page: {{Jetty Howto | introduction = Jetty can be used in a variety of ways when developing in IntelliJ. }} == Embedded Usage == Another often used mechanism for developing in intellij is th...)
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{Jetty Howto  
 
{{Jetty Howto  
| introduction = Jetty can be used in a variety of ways when developing in IntelliJ.
+
| introduction =  
 +
 
 +
{{Jetty TODO}}
 +
 
 +
You can use Jetty in a variety of ways when developing in IntelliJ.
 
}}
 
}}
  
  
== Embedded Usage ==
+
== Embedded Use ==
  
Another often used mechanism for developing in intellij is the embedded approach.  This strategy involves writing a small main method that starts up jetty and deploys your servlets programmatically and you can control the starting and stopping of your webapp through normal runtime measures.   
+
An often used way to develop in Intellij is the embedded approach.  This strategy involves writing a small main method that starts Jetty and deploys your servlets programmatically. You can control starting and stopping your webapp through normal runtime measures.   
  
== Testing Usage ==
+
== Testing Use ==
  
A very popular approach to developing in intellij and one that we employ heavily in jetty is the usage of jetty with junit or the like where in @Before and @After there is a starting and stopping of a jetty server.  If your interested in this approach look through the unit tests for things like jetty-server and jetty-client for a wealth of examples.  Also the embedded-examples project as a number of simple examples for very common usage scenarios.
+
A very popular approach to developing in Intellij–and one that we employ heavily in Jetty–is using Jetty with JUnit or the like where in @Before and @After there is a starting and stopping of a Jetty server.  If you are interested in this approach, look through the unit tests for things like <tt>jetty-server</tt> and <tt>jetty-client</tt> for a wealth of examples.  Also look at the embedded-examples project for a number of simple examples for very common usage scenarios.
 +
,

Latest revision as of 14:14, 23 April 2013



Introduction

Warning2.png
Some or all of this content remains to be ported to Jetty 9 Documentation.
If you are interested in migrating this content see our contribution guide or contact us.


You can use Jetty in a variety of ways when developing in IntelliJ.


Embedded Use

An often used way to develop in Intellij is the embedded approach. This strategy involves writing a small main method that starts Jetty and deploys your servlets programmatically. You can control starting and stopping your webapp through normal runtime measures.

Testing Use

A very popular approach to developing in Intellij–and one that we employ heavily in Jetty–is using Jetty with JUnit or the like where in @Before and @After there is a starting and stopping of a Jetty server. If you are interested in this approach, look through the unit tests for things like jetty-server and jetty-client for a wealth of examples. Also look at the embedded-examples project for a number of simple examples for very common usage scenarios. ,