Source code file content

Revision: 6330

Site update for 1.9.56.
» Project Revision History

» Checkout URL

svn / trunk / www / docs / docbkx1.9 / html / ch01s04.html

Size: 18045 bytes, 1 line
<html><head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
   <title>Dependencies</title><link rel="stylesheet" href="css/style.css" type="text/css"><meta name="generator" content="DocBook XSL-NS Stylesheets V1.73.2"><link rel="start" href="grizzly-docs.html" title="Grizzly 1.9.56 User's Guide"><link rel="up" href="ch01.html" title="Chapter&nbsp;1.&nbsp;Grizzly 1.9.56"><link rel="prev" href="ch01s03.html" title="Quick Start"><link rel="next" href="ch01s05.html" title="Samples"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Dependencies</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch01s03.html">Prev</a>&nbsp;</td><th width="60%" align="center">Chapter&nbsp;1.&nbsp;Grizzly 1.9.56</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="ch01s05.html">Next</a></td></tr></table><hr></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e86"></a>Dependencies</h2></div></div></div><p>Grizzly is built, assembled and installed using Maven. Grizzly
    artifacts are available on maven central.</p><p>An application depending on Grizzly requires that it in turn
    includes the set of jars that Grizzly depends on. Grizzly has a pluggable
    component architecture so the set of jars required to be include in the
    class path can be different for each application.</p><p>All Grizzly components are built using Java SE 5 compiler. It means,
    you will also need at least Java SE 5 to be able to compile and run your
    application.</p><p>Developers using maven are likely to find it easier to include and
    manage dependencies of their applications than developers using ant or
    other build technologies. This document will explain to both maven and
    non-maven developers how to depend on Jersey for their application. Ant
    developers are likely to find the Ant Tasks for Maven very useful.</p><p>In general, if you're not using Maven, most probably you'd need to
    download dependencies (jar files) directly from the Maven
    repository.</p><p>Grizzly's runtime dependencies are categorized into the
    following:</p><div class="itemizedlist"><ul type="disc"><li><p>Core framework. The Grizzly core module. The rest of Grizzly
          modules depend on it;</p></li><li><p>HTTP framework. Grizzly HTTP server implementation;</p></li><li><p>Port unification;</p></li><li><p>HTTP Servlet framework. Basic Grizzly based Servlet
          support;</p></li><li><p>HTTP Servlet Deployer framework. Provides advanced web
          container features support;</p></li><li><p>Comet;</p></li><li><p>WebSockets;</p></li><li><p>OSGi HTTP Service. Grizzly based OSGi HTTP Service
          implementation.</p></li></ul></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="core-dep_19x"></a>Core framework</h3></div></div></div><p>Maven developers require a dependency on the grizzly core module.
      The following dependency needs to be added to the pom:</p><pre class="programlisting">&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">dependency</i>&gt;
    &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">groupId</i>&gt;com.sun.grizzly&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/groupId</i>&gt;
    &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">artifactId</i>&gt;grizzly-framework&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/artifactId</i>&gt;
    &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">version</i>&gt;1.9.56&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/version</i>&gt;
&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/dependency</i>&gt;</pre><p>Non-maven developers require:</p><div class="itemizedlist"><ul type="disc"><li><p><a class="link" href="http://search.maven.org/remotecontent?filepath=com/sun/grizzly/grizzly-framework/1.9.56/grizzly-framework-1.9.56.jar">grizzly-framework.jar</a></p></li><li><p><a class="link" href="http://search.maven.org/remotecontent?filepath=com/sun/grizzly/grizzly-utils/1.9.56/grizzly-utils-1.9.56.jar">grizzly-utils.jar</a></p></li><li><p><a class="link" href="http://search.maven.org/remotecontent?filepath=com/sun/grizzly/grizzly-lzma/1.9.56/grizzly-lzma-1.9.56.jar">grizzly-lzma.jar</a></p></li></ul></div><p>or use single bundle: <a class="link" href="http://search.maven.org/remotecontent?filepath=com/sun/grizzly/grizzly-nio-framework/1.9.56/grizzly-nio-framework-1.9.56.jar">grizzly-nio-framework.jar</a></p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="portunif-dep_19x"></a>Port unification</h3></div></div></div><p>Maven developers require a dependency on the portunif module. The
      following dependency needs to be added to the pom:</p><pre class="programlisting">&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">dependency</i>&gt;
     &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">groupId</i>&gt;com.sun.grizzly&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/groupId</i>&gt;
     &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">artifactId</i>&gt;grizzly-portunif&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/artifactId</i>&gt;
     &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">version</i>&gt;1.9.56&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/version</i>&gt;
&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/dependency</i>&gt;</pre><p>Non-maven developers, additionally to jars, required by <a class="link" href="ch01s04.html#core-dep_19x" title="Core framework">Core framework</a>, require:</p><div class="itemizedlist"><ul type="disc"><li><p><a class="link" href="http://search.maven.org/remotecontent?filepath=com/sun/grizzly/grizzly-portunif/1.9.56/grizzly-portunif-1.9.56.jar">grizzly-portunif.jar</a></p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="http-dep_19x"></a>HTTP framework</h3></div></div></div><p>Maven developers require a dependency on the http module. The
      following dependency needs to be added to the pom:</p><pre class="programlisting">&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">dependency</i>&gt;
     &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">groupId</i>&gt;com.sun.grizzly&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/groupId</i>&gt;
     &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">artifactId</i>&gt;grizzly-http&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/artifactId</i>&gt;
     &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">version</i>&gt;1.9.56&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/version</i>&gt;
&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/dependency</i>&gt;</pre><p>Non-maven developers, additionally to jars, required by <a class="link" href="ch01s04.html#core-dep_19x" title="Core framework">Core framework</a> and <a class="link" href="ch01s04.html#portunif-dep_19x" title="Port unification">Port unification</a>,
      require:</p><div class="itemizedlist"><ul type="disc"><li><p><a class="link" href="http://search.maven.org/remotecontent?filepath=com/sun/grizzly/grizzly-http/1.9.56/grizzly-http-1.9.56.jar">grizzly-http.jar</a></p></li></ul></div><p>or use single bundle: <a class="link" href="http://search.maven.org/remotecontent?filepath=com/sun/grizzly/grizzly-http-webserver/1.9.56/grizzly-http-webserver-1.9.56.jar">grizzly-http-webserver.jar</a></p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="http-servlet-dep_19x"></a>HTTP Servlet framework</h3></div></div></div><p>Maven developers require a dependency on the http-servlet module.
      The following dependency needs to be added to the pom:</p><pre class="programlisting">&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">dependency</i>&gt;
     &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">groupId</i>&gt;com.sun.grizzly&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/groupId</i>&gt;
     &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">artifactId</i>&gt;grizzly-http-servlet&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/artifactId</i>&gt;
     &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">version</i>&gt;1.9.56&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/version</i>&gt;
&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/dependency</i>&gt;</pre><p>Non-maven developers require:</p><div class="itemizedlist"><ul type="disc"><li><p><a class="link" href="http://search.maven.org/remotecontent?filepath=com/sun/grizzly/grizzly-http-servlet/1.9.56/grizzly-http-servlet-1.9.56.jar">grizzly-http-servlet.jar</a></p></li><li><p><a class="link" href="http://search.maven.org/remotecontent?filepath=com/sun/grizzly/grizzly-utils/1.9.56/grizzly-utils-1.9.56.jar">grizzly-utils.jar</a></p></li><li><p><a class="link" href="http://search.maven.org/remotecontent?filepath=com/sun/grizzly/grizzly-lzma/1.9.56/grizzly-lzma-1.9.56.jar">grizzly-lzma.jar</a></p></li><li><p><a class="link" href="http://mirrors.ibiblio.org/pub/mirrors/maven2/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar">servlet-api.jar</a></p></li></ul></div><p>or use single bundle: <a class="link" href="http://search.maven.org/remotecontent?filepath=com/sun/grizzly/grizzly-servlet-webserver/1.9.56/grizzly-servlet-webserver-1.9.56.jar">grizzly-servlet-webserver.jar</a></p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="http-servlet-deployer-dep_19x"></a>HTTP Servlet Deployer framework</h3></div></div></div><p>Maven developers require a dependency on the http-servlet module.
      The following dependency needs to be added to the pom:</p><pre class="programlisting">&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">dependency</i>&gt;
     &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">groupId</i>&gt;com.sun.grizzly&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/groupId</i>&gt;
     &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">artifactId</i>&gt;grizzly-servlet-deployer&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/artifactId</i>&gt;
     &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">version</i>&gt;1.9.56&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/version</i>&gt;
&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/dependency</i>&gt;</pre><p>Non-maven developers, additionally to jars, required by <a class="link" href="ch01s04.html#http-servlet-dep_19x" title="HTTP Servlet framework">HTTP Servlet framework</a>,
      require:</p><div class="itemizedlist"><ul type="disc"><li><p><a class="link" href="http://search.maven.org/remotecontent?filepath=com/sun/grizzly/grizzly-servlet-deployer/1.9.56/grizzly-servlet-deployer-1.9.56.jar">grizzly-servlet-deployer.jar</a></p></li><li><p><a class="link" href="http://search.maven.org/remotecontent?filepath=com/sun/grizzly/grizzly-compat/1.9.56/grizzly-compat-1.9.56.jar">grizzly-compat.jar</a></p></li><li><p><a class="link" href="http://search.maven.org/remotecontent?filepath=com/sun/grizzly/grizzly-cometd/1.9.56/grizzly-cometd-1.9.56.jar">grizzly-cometd.jar</a></p></li></ul></div><p>or use single bundle: <a class="link" href="http://search.maven.org/remotecontent?filepath=com/sun/grizzly/grizzly-http-servlet-deployer/1.9.56/grizzly-http-servlet-deployer-1.9.56.jar">grizzly-http-servlet-deployer.jar</a></p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="comet-dep_19x"></a>Comet</h3></div></div></div><p>Maven developers require a dependency on the http-comet module.
      The following dependency needs to be added to the pom:</p><pre class="programlisting">&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">dependency</i>&gt;
     &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">groupId</i>&gt;com.sun.grizzly&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/groupId</i>&gt;
     &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">artifactId</i>&gt;grizzly-comet&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/artifactId</i>&gt;
     &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">version</i>&gt;1.9.56&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/version</i>&gt;
&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/dependency</i>&gt;</pre><p>Non-maven developers, additionally to jars, required by <a class="link" href="ch01s04.html#http-dep_19x" title="HTTP framework">HTTP framework</a>, require:</p><div class="itemizedlist"><ul type="disc"><li><p><a class="link" href="http://search.maven.org/remotecontent?filepath=com/sun/grizzly/grizzly-comet/1.9.56/grizzly-comet-1.9.56.jar">grizzly-comet.jar</a></p></li></ul></div><p>or use single bundle: <a class="link" href="http://search.maven.org/remotecontent?filepath=com/sun/grizzly/grizzly-comet-webserver/1.9.56/grizzly-comet-webserver-1.9.56.jar">grizzly-comet-webserver.jar</a></p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="websockets-dep_19x"></a>WebSockets</h3></div></div></div><p>Maven developers require a dependency on the websockets module.
      The following dependency needs to be added to the pom:</p><pre class="programlisting">&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">dependency</i>&gt;
     &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">groupId</i>&gt;com.sun.grizzly&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/groupId</i>&gt;
     &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">artifactId</i>&gt;grizzly-websockets&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/artifactId</i>&gt;
     &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">version</i>&gt;1.9.56&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/version</i>&gt;
&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/dependency</i>&gt;</pre><p>Non-maven developers, additionally to jars, required by <a class="link" href="ch01s04.html#http-dep_19x" title="HTTP framework">HTTP framework</a> and , <a class="link" href="ch01s04.html#http-servlet-dep_19x" title="HTTP Servlet framework">HTTP Servlet framework</a>
      require:</p><div class="itemizedlist"><ul type="disc"><li><p><a class="link" href="http://search.maven.org/remotecontent?filepath=com/sun/grizzly/grizzly-websockets/1.9.56/grizzly-websockets-1.9.56.jar">grizzly-websockets.jar</a></p></li></ul></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="osgi-http-service-dep_19x"></a>OSGi HTTP Service</h3></div></div></div><p>Maven developers require a dependency on the http-servlet module.
      The following dependency needs to be added to the pom:</p><pre class="programlisting">&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">dependency</i>&gt;
     &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">groupId</i>&gt;com.sun.grizzly.osgi&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/groupId</i>&gt;
     &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">artifactId</i>&gt;grizzly-httpservice&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/artifactId</i>&gt;
     &lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">version</i>&gt;1.9.56&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/version</i>&gt;
&lt;<i xmlns:fo="http://www.w3.org/1999/XSL/Format" class="hl-tag">/dependency</i>&gt;</pre><p>Non-maven developers, additionally to jars, required by <a class="link" href="ch01s04.html#http-dep_19x" title="HTTP framework">HTTP framework</a> and , <a class="link" href="ch01s04.html#http-servlet-dep_19x" title="HTTP Servlet framework">HTTP Servlet framework</a>
      require:</p><div class="itemizedlist"><ul type="disc"><li><p><a class="link" href="http://search.maven.org/remotecontent?filepath=com/sun/grizzly/osgi/grizzly-httpservice/1.9.56/grizzly-httpservice-1.9.56.jar">grizzly-httpservice.jar</a></p></li><li><p><a class="link" href="http://repository.ops4j.org/maven2/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar">org.osgi.core.jar</a></p></li><li><p><a class="link" href="http://repository.ops4j.org/maven2/org/osgi/org.osgi.compendium/4.1.0/org.osgi.compendium-4.1.0.jar">org.osgi.compendium.jar</a></p></li></ul></div><p>or use single bundle: <a class="link" href="http://search.maven.org/remotecontent?filepath=com/sun/grizzly/osgi/grizzly-httpservice-bundle/1.9.56/grizzly-httpservice-bundle-1.9.56.jar">grizzly-httpservice-bundle.jar</a></p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch01s03.html">Prev</a>&nbsp;</td><td width="20%" align="center"><a accesskey="u" href="ch01.html">Up</a></td><td width="40%" align="right">&nbsp;<a accesskey="n" href="ch01s05.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Quick Start&nbsp;</td><td width="20%" align="center"><a accesskey="h" href="grizzly-docs.html">Home</a></td><td width="40%" align="right" valign="top">&nbsp;Samples</td></tr></table></div></body></html>
Terms of Use; Privacy Policy; Copyright ©2013-2015 (revision 20150626.29986a4)
 
 
Close
loading
Please Confirm
Close