Removing logging.rst and servlet.rst and moving the guice-integration.rst into the Java section
This commit is contained in:
parent
b72b455f60
commit
b30a164357
4 changed files with 6 additions and 48 deletions
|
|
@ -45,6 +45,8 @@ Retrieve the external Guice dependency
|
||||||
--------------------------------------
|
--------------------------------------
|
||||||
|
|
||||||
The external dependency can be retrieved like this:
|
The external dependency can be retrieved like this:
|
||||||
`<code format="java">`_
|
|
||||||
Ext ext = manager.getExternalDependency(Ext.class);
|
.. code-block:: java
|
||||||
`<code>`_
|
|
||||||
|
Ext ext = manager.getExternalDependency(Ext.class);
|
||||||
|
|
||||||
|
|
@ -17,3 +17,4 @@ Java API
|
||||||
fault-tolerance
|
fault-tolerance
|
||||||
dispatchers
|
dispatchers
|
||||||
routing
|
routing
|
||||||
|
guice-integration
|
||||||
|
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
Logging
|
|
||||||
=======
|
|
||||||
|
|
||||||
Logging has been removed. See the `Event Handler <event-handler>`_.
|
|
||||||
|
|
@ -1,41 +0,0 @@
|
||||||
Akka Servlet
|
|
||||||
============
|
|
||||||
|
|
||||||
=
|
|
||||||
|
|
||||||
Module stability: **STABLE**
|
|
||||||
|
|
||||||
Akka has a servlet; ‘se.scalablesolutions.akka.comet.AkkaServlet’ that can use to deploy your Akka-based application in an external Servlet container. All you need to do is to add the servlet to the ‘web.xml’, set ‘$AKKA_HOME’ to the root of the distribution (needs the ‘$AKKA_HOME/config/*’ files) and add the JARs in the ‘$AKKA_HOME/lib’ to your classpath (or put them in the ‘WEB-INF/lib’ directory in the WAR file).
|
|
||||||
|
|
||||||
Also, you need to add the Akka initialize/cleanup listener in web.xml
|
|
||||||
|
|
||||||
.. code-block:: xml
|
|
||||||
|
|
||||||
<web-app>
|
|
||||||
...
|
|
||||||
<listener>
|
|
||||||
<listener-class>se.scalablesolutions.akka.servlet.Initializer</listener-class>
|
|
||||||
</listener>
|
|
||||||
...
|
|
||||||
</web-app>
|
|
||||||
|
|
||||||
And to support REST actors and/or comet actors, you need to add the following servlet declaration:
|
|
||||||
|
|
||||||
`<code format="xml">`_
|
|
||||||
<web-app>
|
|
||||||
...
|
|
||||||
<servlet>
|
|
||||||
<servlet-name>Akka</servlet-name>
|
|
||||||
<!-- Both Comet + REST -->
|
|
||||||
<servlet-class>se.scalablesolutions.akka.comet.AkkaServlet</servlet-class>
|
|
||||||
<!-- Or if you don't want to use comet, but only REST -->
|
|
||||||
<servlet-class>se.scalablesolutions.akka.rest.AkkaServlet</servlet-class>
|
|
||||||
</servlet>
|
|
||||||
<servlet-mapping>
|
|
||||||
<url-pattern>*</url-pattern>
|
|
||||||
<servlet-name>Akka</servlet-name>
|
|
||||||
</servlet-mapping>
|
|
||||||
...
|
|
||||||
</web-app>
|
|
||||||
|
|
||||||
`<code>`_
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue