{"id":295163,"date":"2019-11-25T15:00:35","date_gmt":"2019-11-25T15:00:35","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=295163"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=295163","title":{"rendered":"\u041f\u0435\u0440\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 (Avalanche \u2014 application framework for Java)"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/477350\/\">\n<h1 id=\"pervoe-prilozhenie--avalanche---application-framework-for-java\">\u041f\u0435\u0440\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 (Avalanche \u2014 application framework for Java)<\/h1>\n<p>  <\/p>\n<p>&quot;Avalanche \u2014 application framework for Java&quot; \u2014 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u0441\u0442\u0438\u0440\u0430\u044e\u0449\u0435\u0439 \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u044f \u043c\u0435\u0436\u0434\u0443<br \/>  \u0432\u044b\u0437\u043e\u0432\u0430\u043c\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430. \u041e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0441\u0442\u044c, \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u043c\u043e\u0441\u0442\u044c,<br \/>  \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u043c\u043e\u0441\u0442\u044c, \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u0430\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0438\u0434\u0443\u0442 \u0432 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0435 \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u043c\u0438 \u0431\u043e\u043d\u0443\u0441\u0430\u043c\u0438.<\/p>\n<p>  <\/p>\n<p>\u0412\u0441\u0435 \u044f\u0437\u044b\u043a\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0442 \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0432\u044b\u0432\u043e\u0434\u0430<br \/>  \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f &quot;Hello world&quot;. \u042d\u0442\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445<br \/>  \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 &quot;Avalanche \u2014 application framework for Java&quot;, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u044b\u0437\u043e\u0432 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0432\u0441\u0435\u0433\u0434\u0430<br \/>  \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0434\u043d\u0443 \u0438 \u0442\u0443 \u0436\u0435 \u0441\u0442\u0440\u043e\u043a\u0443 \u0438 \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a, \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0438\u0432\u0448\u0438\u0439 \u044d\u0442\u043e\u0442<br \/>  \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442.<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0432\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 (\u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435), \u043e\u0434\u0438\u043d<br \/>  \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 (\u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u0438) \u0438 \u043e\u0434\u043d\u0443 JSP \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u043e\u0435<br \/>  \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c Tomcat.<\/p>\n<p>  <\/p>\n<h2 id=\"realizaciya-klassa-funkcii---demofunction\">\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u2014 DemoFunction<\/h2>\n<p>  <\/p>\n<p>\u0412 \u043a\u043b\u0430\u0441\u0441\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0433\u043e, \u044d\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 Java. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435<br \/>  \u043a\u043b\u0430\u0441\u0441\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u043b\u044e\u0431\u043e\u0439 \u043a\u043b\u0430\u0441\u0441. \u041f\u0443\u0441\u0442\u044c \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<br \/>  \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438\u0437 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b: PID \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0438 \u0438\u043c\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430;<br \/>  \u0432\u0435\u0440\u0441\u0438\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<p><em>\u041a\u043e\u0434 \u043a\u043b\u0430\u0441\u0441\u0430 DemoFunction.java<\/em><\/p>\n<p>  <\/p>\n<pre><code class=\"java\">package ru.funsys.demo.avalanche;  import java.lang.management.ManagementFactory; import java.util.Hashtable;  public class DemoFunction {      \/**      * \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438\u0437 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435.&lt;br&gt;      * &lt;br&gt;      *  \u0418\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0432\u044b\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f&lt;br&gt;      * &lt;b&gt;os.name&lt;\/b&gt; - \u0438\u043c\u044f \u041e\u0421,&lt;br&gt;      * &lt;b&gt;os.version&lt;\/b&gt; - \u0432\u0435\u0440\u0441\u0438\u044f \u041e\u0421&lt;br&gt;      * \u0438 &lt;b&gt;PID@name&lt;\/b&gt; - \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0438 \u0438\u043c\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430       *       * @return \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u041e\u0421      *\/     public Hashtable&lt;String, String&gt; getInfo() {         Hashtable&lt;String, String&gt; result = new Hashtable&lt;String, String&gt;();         result.put(&quot;os.name&quot;, System.getProperty(&quot;os.name&quot;));         result.put(&quot;os.version&quot;, System.getProperty(&quot;os.version&quot;));         result.put(&quot;PID@name&quot;, ManagementFactory.getRuntimeMXBean().getName());         return result;     }  }<\/code><\/pre>\n<p>  <\/p>\n<h2 id=\"realizaciya-adaptera---demoadapter\">\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430 \u2014 DemoAdapter<\/h2>\n<p>  <\/p>\n<p>\u0421 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u044f\u0437\u044b\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Java, \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u2014 \u044d\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c<br \/>  \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u044b \u043a\u043b\u0430\u0441\u0441\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044d\u0442\u043e\u0433\u043e<br \/>  \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430. \u0414\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u0430 DemoFunction \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430<\/p>\n<p>  <\/p>\n<p><em>\u041a\u043e\u0434 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 DemoAdapter.java<\/em><\/p>\n<p>  <\/p>\n<pre><code class=\"java\">package ru.funsys.demo.avalanche;  import java.util.Hashtable;  import ru.funsys.avalanche.AvalancheRemote;  public interface DemoAdapter {      public Hashtable&lt;String, String&gt; getInfo() throws AvalancheRemote;  }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0432\u0441\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 <strong><em>DemoAdapter<\/em><\/strong> \u0434\u043e\u043b\u0436\u043d\u044b<br \/>  \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f <strong><em>AvalancheException<\/em><\/strong>. \u0414\u0430\u043d\u043d\u0430\u044f<br \/>  \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0447\u0435\u043c \u0442\u043e \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e <strong>RMI<\/strong> \u0432 \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Java, \u043d\u043e \u0435\u0441\u0442\u044c \u0438<br \/>  \u043e\u0442\u043b\u0438\u0447\u0438\u044f:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u041a\u043b\u0430\u0441\u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 (<em>\u0432 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u2014 DemoFunction<\/em>) \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430<br \/>  (\u0432 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u2014 DemoAdapter)<\/li>\n<li>\u0412 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 (<em>\u043f\u0440\u0438\u043c\u0435\u0440 \u2014 DemoAdapter<\/em>) \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0432\u0441\u0435 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0435<br \/>  \u043c\u0435\u0442\u043e\u0434\u044b \u043a\u043b\u0430\u0441\u0441\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 (<em>\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 DemoFunction<\/em>), \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0442\u043e\u0434\u044b,<br \/>  \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0434\u0430\u043d\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0433\u0434\u0435 \u0431\u044b \u043e\u043d\u0430 \u043d\u0435 \u0431\u044b\u043b\u0430 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u0430.<\/p>\n<p>  <\/p>\n<h2 id=\"realizaciya-klassa-prilozheniya---demoapplication\">\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u2014 DemoApplication<\/h2>\n<p>  <\/p>\n<p>\u041a\u043b\u0430\u0441\u0441 DemoApplication \u2014 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0432\u044b\u0437\u043e\u0432 \u043c\u0435\u0442\u043e\u0434\u0430 <strong><em>getInfo()<\/em><\/strong> \u043a\u043b\u0430\u0441\u0441\u0430 <strong><em>DemoFunction<\/em><\/strong><br \/>  \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430 <strong><em>DemoAdapter<\/em><\/strong>. \u041f\u0443\u0441\u0442\u044c \u043a\u043b\u0430\u0441\u0441 DemoApplication \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442<br \/>  \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0437\u043e\u0432\u0430 getInfo() \u0432 \u0444\u043e\u0440\u043c\u0430\u0442 TXT \u0438\u043b\u0438 HTML.<\/p>\n<p>  <\/p>\n<p><em>\u041a\u043e\u0434 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 DemoApplication.java<\/em><\/p>\n<p>  <\/p>\n<pre><code class=\"java\">package ru.funsys.demo.avalanche;  import java.util.Enumeration; import java.util.Hashtable;  import ru.funsys.avalanche.Application; import ru.funsys.avalanche.AvalancheRemote;  public class DemoApplication extends Application {      \/**      * \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044f \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430      *\/     private DemoAdapter info;      \/**      * \u041c\u0435\u0442\u043e\u0434 \u0432\u044b\u0437\u043e\u0432\u0430 \u043c\u0435\u0442\u043e\u0434\u0430 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430 \u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430      * \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u0438\u043b\u0438 \u0444\u043e\u0440\u043c\u0430\u0442 HTML \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u043c\u0435\u0442\u043e\u0434\u0430.      *       * @param html true, \u0435\u0441\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c \u0444\u043e\u0440\u043c\u0430\u0442 HTML, \u0438\u043d\u0430\u0447\u0435 false      *       * @return \u0442\u0435\u043a\u0441 \u0438\u043b\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 HTML \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u041e\u0421      *\/     public String getInfo(boolean html) {         StringBuilder builder = new StringBuilder();         if (html) {             builder.append(&quot;&lt;table border=\\&quot;1\\&quot;&gt;&quot;);             builder.append(&quot;&lt;tr&gt;&lt;th&gt;key&lt;\/th&gt;&lt;th&gt;value&lt;\/th&gt;&lt;\/tr&gt;&quot;);         }         try {             \/\/ \u0412\u044b\u0437\u043e\u0432 \u043c\u0435\u0442\u043e\u0434\u0430 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430             Hashtable&lt;String, String&gt; result = info.getInfo();              for (Enumeration&lt;String&gt; enumeration = result.keys(); enumeration.hasMoreElements(); ) {                 String key = enumeration.nextElement();                 String value = result.get(key);                 if (html) {                     builder.append(&quot;&lt;tr&gt;&lt;td&gt;&quot;).append(key).append(&quot;&lt;\/td&gt;&lt;td&gt;&quot;).append(value).append(&quot;&lt;\/td&gt;&lt;\/tr&gt;&quot;);                 } else {                     builder.append(key).append(&quot;: &quot;).append(value).append(&quot;\\r\\n&quot;);                 }             }         } catch (AvalancheRemote e) {             if (html) {                 builder.append(&quot;&lt;tr&gt;&lt;td&gt;&quot;).append(&quot;error&quot;).append(&quot;&lt;\/td&gt;&lt;td&gt;&quot;).append(e.getLocalizedMessage()).append(&quot;&lt;\/td&gt;&lt;\/tr&gt;&quot;);             } else {                 builder.append(&quot;error&quot;).append(&quot;: &quot;).append(e.getLocalizedMessage()).append(&quot;\\r\\n&quot;);             }         }         if (html) builder.append(&quot;&lt;\/table&gt;&quot;);         return builder.toString();     }  }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a \u043a\u043b\u0430\u0441\u0441\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u044a\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0435: \u043e\u043d \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u043b\u0436\u0435\u043d \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 <strong>ru.funsys.avalanche.Application<\/strong>.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u043b\u0435 <em>info<\/em> \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e \u0438\u043c\u0435\u043d\u0438, \u0432\u044b\u0437\u0432\u0430\u0432 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u043c\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 <em>getAdapter(String name)<\/em> \u043a\u043b\u0430\u0441\u0441\u0430 <strong>ru.funsys.avalanche.Application<\/strong>. \u0418\u043c\u044f \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430 \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u044c \u043e\u0431\u044a\u0435\u043c \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>  <\/p>\n<h2 id=\"realizaciya-jsp-stranicy---firstjsp\">\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f JSP \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u2014 first.jsp<\/h2>\n<p>  <\/p>\n<p>JSP \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0437\u043e\u0432\u0430 \u043c\u0435\u0442\u043e\u0434\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435. \u0421\u043f\u0435\u0440\u0432\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043a\u043b\u0430\u0441\u0441 <em>DemoApplication<\/em> \u0438 \u0434\u0430\u043b\u0435\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0435\u0433\u043e \u043c\u0435\u0442\u043e\u0434 <em>getInfo<\/em> c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c <em>true<\/em>.<\/p>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;%@ page import=&quot;ru.funsys.demo.avalanche.DemoApplication&quot;%&gt; &lt;%@ page language=&quot;java&quot; contentType=&quot;text\/html; charset=UTF-8&quot;     pageEncoding=&quot;UTF-8&quot;%&gt; &lt;!DOCTYPE html PUBLIC &quot;-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN&quot; &quot;http:\/\/www.w3.org\/TR\/html4\/loose.dtd&quot;&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text\/html; charset=UTF-8&quot;&gt; &lt;title&gt;\u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435&lt;\/title&gt; &lt;\/head&gt; &lt;body&gt; &lt;h1&gt;\u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435&lt;\/h1&gt; &lt;jsp:useBean id='DemoApp' scope='application' class='ru.funsys.demo.avalanche.DemoApplication'\/&gt;  &lt;%= DemoApp.getInfo(true) %&gt; &lt;br&gt;  &lt;\/body&gt; &lt;\/html&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430. \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  <\/p>\n<h2 id=\"fayl-webxml\">\u0424\u0430\u0439\u043b web.xml<\/h2>\n<p>  <\/p>\n<p>\u0412 \u0444\u0430\u0439\u043b\u0435 web.xml \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0441\u0435\u043a\u0446\u0438\u044e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u0435\u0440\u0432\u043b\u0435\u0442\u0430 AvalancheServlet, \u0443\u043a\u0430\u0437\u0430\u0432 \u0432 \u0435\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 \u0438\u043c\u0435\u043d\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043b\u043e\u0433\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f log4j. \u0421\u0435\u0440\u0432\u043b\u0435\u0442 AvalancheServlet \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u0442 \u0432\u0441\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0444\u0430\u0439\u043b\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 avalanche-config.xml.<\/p>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;!-- web-app xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot; xmlns=&quot;http:\/\/java.sun.com\/xml\/ns\/javaee&quot; xsi:schemaLocation=&quot;http:\/\/java.sun.com\/xml\/ns\/javaee http:\/\/java.sun.com\/xml\/ns\/javaee\/web-app_3_0.xsd&quot; id=&quot;WebApp_ID&quot; version=&quot;3.0&quot;  --&gt; &lt;web-app xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot; xmlns=&quot;http:\/\/xmlns.jcp.org\/xml\/ns\/javaee&quot; xsi:schemaLocation=&quot;http:\/\/xmlns.jcp.org\/xml\/ns\/javaee http:\/\/xmlns.jcp.org\/xml\/ns\/javaee\/web-app_3_1.xsd&quot; id=&quot;WebApp_ID&quot; version=&quot;3.1&quot;&gt;      &lt;display-name&gt;Demo Avalanche&lt;\/display-name&gt;     &lt;description&gt;         \u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c framework Avalanche     &lt;\/description&gt;      &lt;welcome-file-list&gt;         &lt;welcome-file&gt;index.html&lt;\/welcome-file&gt;         &lt;welcome-file&gt;index.htm&lt;\/welcome-file&gt;         &lt;welcome-file&gt;index.jsp&lt;\/welcome-file&gt;         &lt;welcome-file&gt;default.html&lt;\/welcome-file&gt;         &lt;welcome-file&gt;default.htm&lt;\/welcome-file&gt;         &lt;welcome-file&gt;default.jsp&lt;\/welcome-file&gt;     &lt;\/welcome-file-list&gt;      &lt;servlet&gt;         &lt;display-name&gt;AvalancheServlet&lt;\/display-name&gt;         &lt;servlet-name&gt;AvalancheServlet&lt;\/servlet-name&gt;         &lt;servlet-class&gt;ru.funsys.servlet.http.AvalancheServlet&lt;\/servlet-class&gt;         &lt;init-param&gt;             &lt;param-name&gt;avalanche.config&lt;\/param-name&gt;             &lt;param-value&gt;${catalina.base}\/conf\/avalanche-config.xml&lt;\/param-value&gt;         &lt;\/init-param&gt;         &lt;init-param&gt;             &lt;param-name&gt;avalanche.log4j&lt;\/param-name&gt;             &lt;param-value&gt;${catalina.base}\/conf\/avalanche-log4j.xml&lt;\/param-value&gt;         &lt;\/init-param&gt;         &lt;load-on-startup&gt;1&lt;\/load-on-startup&gt;     &lt;\/servlet&gt;  &lt;\/web-app&gt;<\/code><\/pre>\n<p>  <\/p>\n<h2 id=\"fayl-konfiguracii-prilozheniya-avalanche-configxml\">\u0424\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f avalanche-config.xml<\/h2>\n<p>  <\/p>\n<p>\u0424\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u0432\u044b\u0437\u043e\u0432\u043e\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u043c\u0435\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0432\u0438\u0434<\/p>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;avalanche name=&quot;Demo Application&quot;&gt;      &lt;function class=&quot;ru.funsys.demo.avalanche.DemoFunction&quot; name=&quot;info-function&quot; description=&quot;\u0421\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e\u0431 \u0443\u0437\u043b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b&quot; \/&gt;      &lt;application class=&quot;ru.funsys.demo.avalanche.DemoApplication&quot; name=&quot;DemoApp&quot; &gt;         &lt;adapter class=&quot;ru.funsys.demo.avalanche.DemoAdapter&quot; name=&quot;info&quot; uri=&quot;info-function&quot; \/&gt;     &lt;\/application&gt;  &lt;\/avalanche&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u044d\u0442\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u0434\u0432\u0435 \u0441\u0435\u043a\u0446\u0438\u0438 &lt;function&gt; \u0438 &lt;application&gt;. \u0421\u0435\u043a\u0446\u0438\u044f &lt;application&gt; \u0438\u043c\u0435\u0435\u0442 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 &lt;adapter&gt;, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0435 <em>uri<\/em> \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0438\u043c\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 (\u0441\u043c. \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430 <em>name<\/em> \u0441\u0435\u043a\u0446\u0438\u0438 &lt;function&gt;).<\/p>\n<p>  <\/p>\n<p>\u041e\u0431\u0440\u0430\u0449\u0430\u044e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430 <em>name<\/em> \u0441\u0435\u043a\u0446\u0438\u0438 &lt;application&gt;, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430 <em>DemoApp<\/em> \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0435 <em>id<\/em> \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043a\u043b\u0430\u0441\u0441\u0430 DemoApplication \u0432 JSP \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435.<\/p>\n<p>  <\/p>\n<h2 id=\"udalennyy-vyzov-funkcii-demofunction\">\u0423\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 DemoFunction<\/h2>\n<p>  <\/p>\n<p>\u0412\u044b\u0437\u043e\u0432 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043e\u0431\u044b\u0447\u043d\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0439 \u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0432 \u043a\u0430\u043a\u043e\u0435 \u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0438\u0437 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 REST, SOAP \u0438\u043b\u0438 \u043a\u0430\u043a\u0443\u044e \u0442\u043e \u0434\u0440\u0443\u0433\u0443\u044e.<\/p>\n<p>  <\/p>\n<p>&quot;Avalanche \u2014 application framework for Java&quot; \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 DemoFunction. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043f\u0438\u044e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<\/p>\n<p>  <\/p>\n<p>\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b avalanche-config.xml \u0441\u0435\u043a\u0446\u0438\u0438:<\/p>\n<p>  <\/p>\n<ul>\n<li>&lt;interface&gt;, \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u044b\u0437\u043e\u0432 \u043c\u0435\u0442\u043e\u0434 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0445 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u043e\u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043f\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443<\/li>\n<li>&lt;connector&gt;, \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u043c\u0435\u0442\u043e\u0434\u0430\u043c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0441 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0445 \u0443\u0437\u043b\u043e\u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/li>\n<\/ul>\n<p>  <\/p>\n<h2 id=\"udalennyy-vyzov-po-protokolu-rmi\">\u0423\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 RMI<\/h2>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 RMI \u0432 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0435\u043a\u0446\u0438\u044e<\/p>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;interface name=&quot;rmi-interface&quot; uri=&quot;rmi:\/\/localhost:23000\/rmi-connector&quot; \/&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0433\u0434\u0435:<\/p>\n<p>  <\/p>\n<ul>\n<li><em>localhost<\/em> \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0430\u0434\u0440\u0435\u0441 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0443\u0437\u043b\u0430<\/li>\n<li><em>23000<\/em> \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043f\u043e\u0440\u0442 RMI Remote Server \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0443\u0437\u043b\u0430<\/li>\n<li><em>rmi-connector<\/em> \u0438\u043c\u044f \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440\u0430 \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c \u0443\u0437\u043b\u0435<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u041d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c \u0443\u0437\u043b\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0435\u043a\u0446\u0438\u044e &lt;connector&gt;<\/p>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;connector class=&quot;RMIConnector&quot; name=&quot;rmi-connector&quot; port=&quot;23000&quot; &gt;     &lt;publish name=&quot;info&quot; function=&quot;info-function&quot; \/&gt; &lt;\/connector&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0433\u0434\u0435:<\/p>\n<p>  <\/p>\n<ul>\n<li><em>rmi-connector<\/em> \u0438\u043c\u044f \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440\u0430<\/li>\n<li><em>23000<\/em> \u043f\u043e\u0440\u0442 RMI Remote Server<\/li>\n<li>&lt;publish&gt; \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u0442 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e <em>info-function<\/em> \u0432 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440\u0435, \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f <em>info-function<\/em> \u0431\u0443\u0434\u0435\u0442 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u043c \u0443\u0437\u043b\u0430\u043c \u043f\u043e\u0434 \u0438\u043c\u0435\u043d\u0435\u043c <em>info<\/em> <\/li>\n<\/ul>\n<p>  <\/p>\n<h2 id=\"udalennyy-vyzov-po-protokolu-http\">\u0423\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 HTTP<\/h2>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 HTTP \u0432 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0435\u043a\u0446\u0438\u044e<\/p>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;interface name=&quot;http-interface&quot; uri=&quot;http:\/\/localhost:8080\/demo\/connector\/http-connector&quot; \/&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0433\u0434\u0435:<\/p>\n<p>  <\/p>\n<ul>\n<li><em>localhost<\/em> \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0430\u0434\u0440\u0435\u0441 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0443\u0437\u043b\u0430<\/li>\n<li><em>8080<\/em> \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043f\u043e\u0440\u0442 HTTP Server \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0443\u0437\u043b\u0430<\/li>\n<li><em>demo<\/em> \u0438\u043c\u044f \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/li>\n<li><em>connector<\/em> \u0438\u043c\u044f \u0441\u0435\u0440\u0432\u043b\u0435\u0442\u0430 AvalancheServlet<\/li>\n<li><em>http-connector<\/em> \u0438\u043c\u044f \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440\u0430 \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c \u0443\u0437\u043b\u0435<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u041d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c \u0443\u0437\u043b\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0435\u043a\u0446\u0438\u044e &lt;connector&gt;<\/p>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;connector class=&quot;HTTPConnector&quot; name=&quot;http-connector&quot; &gt;     &lt;publish name=&quot;info&quot; function=&quot;info-function&quot; \/&gt; &lt;\/connector&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0433\u0434\u0435:<\/p>\n<p>  <\/p>\n<ul>\n<li><em>http-connector<\/em> \u0438\u043c\u044f \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440\u0430<\/li>\n<li>&lt;publish&gt; \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u0442 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e <em>info-function<\/em> \u0432 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440\u0435, \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f <em>info-function<\/em> \u0431\u0443\u0434\u0435\u0442 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u043c \u0443\u0437\u043b\u0430\u043c \u043f\u043e\u0434 \u0438\u043c\u0435\u043d\u0435\u043c <em>info<\/em> <\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435! \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 HTTP \u043f\u043e\u0440\u0442\u0430 \u043d\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440 HTTP \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (Tomcat).<\/p>\n<p>  <\/p>\n<p>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0435\u043a\u0446\u0438\u0438 &lt;multipart-config&gt; \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0441\u0435\u0440\u0432\u043b\u0435\u0442\u0430 AvalancheServlet \u0438 &lt;servlet-mapping&gt; \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f URI \u044d\u0442\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u043b\u0435\u0442\u0430 \u0432 \u0444\u0430\u0439\u043b\u0435 web.xml.<\/p>\n<p>  <\/p>\n<p>\u041d\u043e\u0432\u0430\u044f \u0440\u0435\u0434\u0430\u043a\u0446\u0438\u044f \u0444\u0430\u0439\u043b\u0430 web.xml<\/p>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;!-- web-app xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot; xmlns=&quot;http:\/\/java.sun.com\/xml\/ns\/javaee&quot; xsi:schemaLocation=&quot;http:\/\/java.sun.com\/xml\/ns\/javaee http:\/\/java.sun.com\/xml\/ns\/javaee\/web-app_3_0.xsd&quot; id=&quot;WebApp_ID&quot; version=&quot;3.0&quot;  --&gt; &lt;web-app xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot; xmlns=&quot;http:\/\/xmlns.jcp.org\/xml\/ns\/javaee&quot; xsi:schemaLocation=&quot;http:\/\/xmlns.jcp.org\/xml\/ns\/javaee http:\/\/xmlns.jcp.org\/xml\/ns\/javaee\/web-app_3_1.xsd&quot; id=&quot;WebApp_ID&quot; version=&quot;3.1&quot;&gt;      &lt;display-name&gt;Demo Avalanche&lt;\/display-name&gt;     &lt;description&gt;         \u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c framework Avalanche     &lt;\/description&gt;      &lt;welcome-file-list&gt;         &lt;welcome-file&gt;index.html&lt;\/welcome-file&gt;         &lt;welcome-file&gt;index.htm&lt;\/welcome-file&gt;         &lt;welcome-file&gt;index.jsp&lt;\/welcome-file&gt;         &lt;welcome-file&gt;default.html&lt;\/welcome-file&gt;         &lt;welcome-file&gt;default.htm&lt;\/welcome-file&gt;         &lt;welcome-file&gt;default.jsp&lt;\/welcome-file&gt;     &lt;\/welcome-file-list&gt;      &lt;servlet&gt;         &lt;display-name&gt;AvalancheServlet&lt;\/display-name&gt;         &lt;servlet-name&gt;AvalancheServlet&lt;\/servlet-name&gt;         &lt;servlet-class&gt;ru.funsys.servlet.http.AvalancheServlet&lt;\/servlet-class&gt;         &lt;init-param&gt;             &lt;param-name&gt;avalanche.config&lt;\/param-name&gt;             &lt;param-value&gt;${catalina.base}\/conf\/avalanche-config.xml&lt;\/param-value&gt;         &lt;\/init-param&gt;         &lt;init-param&gt;             &lt;param-name&gt;avalanche.log4j&lt;\/param-name&gt;             &lt;param-value&gt;${catalina.base}\/conf\/avalanche-log4j.xml&lt;\/param-value&gt;         &lt;\/init-param&gt;         &lt;load-on-startup&gt;1&lt;\/load-on-startup&gt;         &lt;multipart-config&gt;             &lt;!-- 50MB max --&gt;             &lt;max-file-size&gt;52428800&lt;\/max-file-size&gt;             &lt;max-request-size&gt;52428800&lt;\/max-request-size&gt;             &lt;file-size-threshold&gt;0&lt;\/file-size-threshold&gt;         &lt;\/multipart-config&gt;     &lt;\/servlet&gt;      &lt;servlet-mapping&gt;         &lt;servlet-name&gt;AvalancheServlet&lt;\/servlet-name&gt;         &lt;url-pattern&gt;\/connector\/*&lt;\/url-pattern&gt;     &lt;\/servlet-mapping&gt;  &lt;\/web-app&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0434\u0432\u0435 \u043a\u043e\u043f\u0438\u0438 \u0441\u0435\u043a\u0446\u0438\u0438 &lt;application&gt; \u0441 \u0438\u043c\u0435\u043d\u0430\u043c\u0438 RMIApp \u0438 HTTPApp. \u0410\u0442\u0440\u0438\u0431\u0443\u0442\u044b <em>uri<\/em> \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 &lt;adapter&gt; \u044d\u0442\u0438\u0445 \u0441\u0435\u043a\u0446\u0438\u0439 \u043f\u0440\u0438\u043c\u0443\u0442 \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <em>\u0438\u043c\u044f-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\/\u0438\u043c\u044f-\u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/em>, \u0442.\u0435. <em>rmi-interface\/info<\/em> \u0438 <em>http-interface\/info<\/em>.<\/p>\n<p>  <\/p>\n<p>\u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u0430\u044f \u0440\u0435\u0434\u0430\u043a\u0446\u0438\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 avalanche-config.xml \u0434\u043b\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430\u043c RMI \u0438 HTTP<\/p>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;avalanche name=&quot;Demo Application&quot;&gt;      &lt;interface name=&quot;rmi-interface&quot; uri=&quot;rmi:\/\/localhost:23000\/rmi-connector&quot; \/&gt;      &lt;interface name=&quot;http-interface&quot; uri=&quot;http:\/\/localhost:8080\/demo\/connector\/http-connector&quot; \/&gt;      &lt;function class=&quot;ru.funsys.demo.avalanche.DemoFunction&quot; name=&quot;info-function&quot; description=&quot;\u0421\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e\u0431 \u0443\u0437\u043b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b&quot; \/&gt;      &lt;application class=&quot;ru.funsys.demo.avalanche.DemoApplication&quot; name=&quot;DemoApp&quot; &gt;         &lt;adapter class=&quot;ru.funsys.demo.avalanche.DemoAdapter&quot; name=&quot;info&quot; uri=&quot;info-function&quot; \/&gt;     &lt;\/application&gt;      &lt;application class=&quot;ru.funsys.demo.avalanche.DemoApplication&quot; name=&quot;RMIApp&quot; &gt;         &lt;adapter class=&quot;ru.funsys.demo.avalanche.DemoAdapter&quot; name=&quot;info&quot; uri=&quot;rmi-interface\/info&quot; \/&gt;     &lt;\/application&gt;      &lt;application class=&quot;ru.funsys.demo.avalanche.DemoApplication&quot; name=&quot;HTTPApp&quot; &gt;         &lt;adapter class=&quot;ru.funsys.demo.avalanche.DemoAdapter&quot; name=&quot;info&quot; uri=&quot;http-interface\/info&quot; \/&gt;     &lt;\/application&gt;      &lt;connector class=&quot;RMIConnector&quot; name=&quot;rmi-connector&quot; port=&quot;23000&quot; &gt;         &lt;publish name=&quot;info&quot; function=&quot;info-function&quot; \/&gt;     &lt;\/connector&gt;      &lt;connector class=&quot;HTTPConnector&quot; name=&quot;http-connector&quot; &gt;         &lt;publish name=&quot;info&quot; function=&quot;info-function&quot; \/&gt;     &lt;\/connector&gt;  &lt;\/avalanche&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 JSP \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b first.jsp \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0435\u0435 \u043a\u043e\u043f\u0438\u0438 \u0434\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 RMI \u0438 HTTP, \u0443\u043a\u0430\u0437\u0430\u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0435 <em>id<\/em> RMIApp \u0438 HTTPApp \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e.<\/p>\n<p>  <\/p>\n<p>\u041a\u043e\u0434 rmi.jsp<\/p>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;%@ page import=&quot;ru.funsys.demo.avalanche.DemoApplication&quot;%&gt; &lt;%@ page language=&quot;java&quot; contentType=&quot;text\/html; charset=UTF-8&quot;     pageEncoding=&quot;UTF-8&quot;%&gt; &lt;!DOCTYPE html PUBLIC &quot;-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN&quot; &quot;http:\/\/www.w3.org\/TR\/html4\/loose.dtd&quot;&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text\/html; charset=UTF-8&quot;&gt; &lt;title&gt;\u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 - RMI&lt;\/title&gt; &lt;\/head&gt; &lt;body&gt; &lt;h1&gt;\u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 - RMI&lt;\/h1&gt; &lt;p&gt; \u0423\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 - \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b RMI &lt;\/p&gt; &lt;jsp:useBean id='RMIApp' scope='application' class='ru.funsys.demo.avalanche.DemoApplication'\/&gt;  &lt;%= RMIApp.getInfo(true) %&gt;  &lt;\/body&gt; &lt;\/html&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u043e\u0434 http.jsp<\/p>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;%@ page import=&quot;ru.funsys.demo.avalanche.DemoApplication&quot;%&gt; &lt;%@ page language=&quot;java&quot; contentType=&quot;text\/html; charset=UTF-8&quot;     pageEncoding=&quot;UTF-8&quot;%&gt; &lt;!DOCTYPE html PUBLIC &quot;-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN&quot; &quot;http:\/\/www.w3.org\/TR\/html4\/loose.dtd&quot;&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text\/html; charset=UTF-8&quot;&gt; &lt;title&gt;\u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 - HTTP&lt;\/title&gt; &lt;\/head&gt; &lt;body&gt; &lt;h1&gt;\u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 - HTTP&lt;\/h1&gt; &lt;p&gt; \u0423\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 - \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b HTTP &lt;\/p&gt; &lt;jsp:useBean id='HTTPApp' scope='application' class='ru.funsys.demo.avalanche.DemoApplication'\/&gt;  &lt;%= HTTPApp.getInfo(true) %&gt;  &lt;\/body&gt; &lt;\/html&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0443\u0437\u0435\u043b, \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 localhost \u043d\u0430 \u0430\u0434\u0440\u0435\u0441 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0443\u0437\u043b\u0430 \u0432 \u0441\u0435\u043a\u0446\u0438\u044f\u0445 &lt;interface&gt; \u0444\u0430\u0439\u043b\u0430 avalanche-config.xml, \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u0438\u0437 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430, \u0434\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0432\u043d\u043e\u0441\u0438\u0442\u044c \u043a\u0430\u043a\u0438\u0445 \u043b\u0438\u0431\u043e \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u043e\u043a \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u043a\u043e\u0434 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430.<\/p>\n<p>  <\/p>\n<p>\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u043a\u043e\u0434\u044b, \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043d\u043e\u0433\u043e \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u044b \u043d\u0430 <a href=\"https:\/\/github.com\/java2ee\/avalanche-demo\/tree\/master\/demo\">GitHub<\/a><\/p>\n<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d() } } }t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>      <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/477350\/\"> https:\/\/habr.com\/ru\/post\/477350\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/477350\/\">\n<h1 id=\"pervoe-prilozhenie--avalanche---application-framework-for-java\">\u041f\u0435\u0440\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 (Avalanche \u2014 application framework for Java)<\/h1>\n<p>  <\/p>\n<p>&quot;Avalanche \u2014 application framework for Java&quot; \u2014 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u0441\u0442\u0438\u0440\u0430\u044e\u0449\u0435\u0439 \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u044f \u043c\u0435\u0436\u0434\u0443<br \/>  \u0432\u044b\u0437\u043e\u0432\u0430\u043c\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430. \u041e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0441\u0442\u044c, \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u043c\u043e\u0441\u0442\u044c,<br \/>  \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u043c\u043e\u0441\u0442\u044c, \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u0430\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0438\u0434\u0443\u0442 \u0432 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0435 \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u043c\u0438 \u0431\u043e\u043d\u0443\u0441\u0430\u043c\u0438.<\/p>\n<p>  <\/p>\n<p>\u0412\u0441\u0435 \u044f\u0437\u044b\u043a\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0442 \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0432\u044b\u0432\u043e\u0434\u0430<br \/>  \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f &quot;Hello world&quot;. \u042d\u0442\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445<br \/>  \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 &quot;Avalanche \u2014 application framework for Java&quot;, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u044b\u0437\u043e\u0432 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0432\u0441\u0435\u0433\u0434\u0430<br \/>  \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0434\u043d\u0443 \u0438 \u0442\u0443 \u0436\u0435 \u0441\u0442\u0440\u043e\u043a\u0443 \u0438 \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a, \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0438\u0432\u0448\u0438\u0439 \u044d\u0442\u043e\u0442<br \/>  \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442.<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0432\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 (\u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435), \u043e\u0434\u0438\u043d<br \/>  \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 (\u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u0438) \u0438 \u043e\u0434\u043d\u0443 JSP \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u043e\u0435<br \/>  \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c Tomcat.<\/p>\n<p>  <\/p>\n<h2 id=\"realizaciya-klassa-funkcii---demofunction\">\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u2014 DemoFunction<\/h2>\n<p>  <\/p>\n<p>\u0412 \u043a\u043b\u0430\u0441\u0441\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0433\u043e, \u044d\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 Java. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435<br \/>  \u043a\u043b\u0430\u0441\u0441\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u043b\u044e\u0431\u043e\u0439 \u043a\u043b\u0430\u0441\u0441. \u041f\u0443\u0441\u0442\u044c \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<br \/>  \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438\u0437 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b: PID \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0438 \u0438\u043c\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430;<br \/>  \u0432\u0435\u0440\u0441\u0438\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-295163","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/295163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=295163"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/295163\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=295163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=295163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=295163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}