{"id":288859,"date":"2018-09-02T20:55:02","date_gmt":"2018-09-02T16:55:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=288859"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=288859","title":{"rendered":"\u041a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u043a\u043e\u0434\u0430 \u0438 sql-\u043b\u043e\u0433\u0430\u043c\u0438 \u043e\u0434\u043d\u043e\u0439 maven \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u0434\u043b\u044f \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438"},"content":{"rendered":"\n<div data-io-article-url=\"https:\/\/habr.com\/post\/422061\/\" class=\"post__text post__text-html js-mediator-article\">\n<p>\u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043e\u043f\u044b\u0442\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f payra-micro \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u043a\u043e\u043c\u0443-\u0442\u043e \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u043b\u044e \u0432\u0440\u0435\u043c\u044f, \u0442\u0430\u043a \u043a\u0430\u043a \u0442\u0430\u043a\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u0448\u043b\u043e \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0441\u0440\u0430\u0437\u0443. \u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 Payara \u0438\u043b\u0438 Glassfish \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u043e\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0438\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0435\u0441\u044c \u043e\u043a\u0443\u043d\u0443\u0442\u044c\u0441\u044f \u0432 \u043c\u0438\u0440 javaee, \u0442\u043e payara-micro \u0438 \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u0434\u043b\u044f \u0412\u0430\u0441.<\/p>\n<p>  <\/p>\n<p>\u0412\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f web-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c maven \u0432 war-\u0430\u0440\u0445\u0438\u0432, \u0438 Java 8 (\u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u0430\u0440\u0448\u0438\u0445 \u0440\u0430\u0431\u043e\u0442\u0443 \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b).<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043f\u043e\u043b\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u043f\u0440\u043e\u0444\u0438\u043b\u044f, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043c\u044b \u0435\u0433\u043e \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043d\u0430 \u043a\u0443\u0441\u043e\u0447\u043a\u0438 \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u043c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u043c\u0438 \u0434\u0435\u0442\u0430\u043b\u044f\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0432\u0438\u0434\u043d\u044b \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u043a\u043e\u0434\u0435.<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">maven \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0434\u043b\u044f payara-micro<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">        &lt;profile&gt;             &lt;id&gt;micro&lt;\/id&gt;             &lt;build&gt;                 &lt;plugins&gt;                     &lt;plugin&gt;                         &lt;artifactId&gt;maven-dependency-plugin&lt;\/artifactId&gt;                         &lt;version&gt;2.6&lt;\/version&gt;                         &lt;executions&gt;                             &lt;execution&gt;                                 &lt;id&gt;copy-payara-micro&lt;\/id&gt;                                 &lt;phase&gt;package&lt;\/phase&gt;                                 &lt;goals&gt;                                     &lt;goal&gt;copy&lt;\/goal&gt;                                 &lt;\/goals&gt;                                 &lt;configuration&gt;                                     &lt;outputDirectory&gt;${project.build.directory}&lt;\/outputDirectory&gt;                                     &lt;stripVersion&gt;true&lt;\/stripVersion&gt;                                     &lt;silent&gt;true&lt;\/silent&gt;                                     &lt;artifactItems&gt;                                         &lt;artifactItem&gt;                                             &lt;groupId&gt;fish.payara.extras&lt;\/groupId&gt;                                             &lt;artifactId&gt;payara-micro&lt;\/artifactId&gt;                                             &lt;type&gt;jar&lt;\/type&gt;                                         &lt;\/artifactItem&gt;                                     &lt;\/artifactItems&gt;                                 &lt;\/configuration&gt;                             &lt;\/execution&gt;                         &lt;\/executions&gt;                     &lt;\/plugin&gt; &lt;cut\/&gt;                     &lt;plugin&gt;                         &lt;groupId&gt;org.codehaus.mojo&lt;\/groupId&gt;                         &lt;artifactId&gt;exec-maven-plugin&lt;\/artifactId&gt;                         &lt;version&gt;1.2.1&lt;\/version&gt;                         &lt;executions&gt;                             &lt;execution&gt;                                 &lt;goals&gt;                                     &lt;goal&gt;exec&lt;\/goal&gt;                                 &lt;\/goals&gt;                             &lt;\/execution&gt;                         &lt;\/executions&gt;                         &lt;configuration&gt;                             &lt;executable&gt;java&lt;\/executable&gt;                             &lt;arguments&gt;                                 &lt;!--http:\/\/blog.payara.fish\/using-hotswapagent-to-speed-up-development--&gt;                                 &lt;argument&gt;-XXaltjvm=dcevm&lt;\/argument&gt;                                 &lt;argument&gt;-javaagent:hotswap\/hotswap-agent.jar&lt;\/argument&gt;                                 &lt;argument&gt;-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9009&lt;\/argument&gt;                                 &lt;argument&gt;-Duser.language=en&lt;\/argument&gt;                                 &lt;argument&gt;-Duser.region=US&lt;\/argument&gt;                                 &lt;argument&gt;-Ddb.ora.url=jdbc:p6spy:oracle:thin:@localhost:1521:XE&lt;\/argument&gt;                                 &lt;argument&gt;-Ddb.pg.url=jdbc:p6spy:postgresql:\/\/localhost:5432\/postgres&lt;\/argument&gt;                                 &lt;argument&gt;-jar&lt;\/argument&gt;                                 &lt;argument&gt;${project.build.directory}\/${project.build.finalName}-microbundle.jar&lt;\/argument&gt;                                 &lt;!--&lt;argument&gt;&amp;#45;&amp;#45;prebootcommandfile&lt;\/argument&gt;--&gt;                                 &lt;!--&lt;argument&gt;src\/main\/setup\/payara-micro-domain-config.txt&lt;\/argument&gt;--&gt;                                 &lt;argument&gt;--domainConfig&lt;\/argument&gt;                                 &lt;argument&gt;src\/main\/setup\/domain.xml&lt;\/argument&gt;                                 &lt;argument&gt;--deploy&lt;\/argument&gt;                                 &lt;argument&gt;${project.build.directory}\/${project.build.finalName}.war&lt;\/argument&gt;                                 &lt;argument&gt;--rootDir&lt;\/argument&gt;                                 &lt;argument&gt;${project.build.directory}\/payaramicro&lt;\/argument&gt;                             &lt;\/arguments&gt;                         &lt;\/configuration&gt;                     &lt;\/plugin&gt;                     &lt;plugin&gt;                         &lt;groupId&gt;fish.payara.maven.plugins&lt;\/groupId&gt;                         &lt;artifactId&gt;payara-micro-maven-plugin&lt;\/artifactId&gt;                         &lt;version&gt;1.0.0&lt;\/version&gt;                         &lt;executions&gt;                             &lt;execution&gt;                                 &lt;goals&gt;                                     &lt;goal&gt;bundle&lt;\/goal&gt;                                     &lt;goal&gt;start&lt;\/goal&gt;                                 &lt;\/goals&gt;                             &lt;\/execution&gt;                         &lt;\/executions&gt;                         &lt;configuration&gt;                             &lt;payaraVersion&gt;4.1.2.173&lt;\/payaraVersion&gt;                             &lt;autoDeployArtifact&gt;false&lt;\/autoDeployArtifact&gt;                             &lt;customJars&gt;                                 &lt;artifactItem&gt;                                     &lt;groupId&gt;p6spy&lt;\/groupId&gt;                                     &lt;artifactId&gt;p6spy&lt;\/artifactId&gt;                                     &lt;version&gt;2.3.1&lt;\/version&gt;                                 &lt;\/artifactItem&gt;                                 &lt;artifactItem&gt;                                     &lt;groupId&gt;com.oracle&lt;\/groupId&gt;                                     &lt;artifactId&gt;ojdbc6&lt;\/artifactId&gt;                                     &lt;version&gt;11.2.0.3&lt;\/version&gt;                                 &lt;\/artifactItem&gt;                                 &lt;dependency&gt;                                     &lt;groupId&gt;org.postgresql&lt;\/groupId&gt;                                     &lt;artifactId&gt;postgresql&lt;\/artifactId&gt;                                     &lt;version&gt;42.2.0&lt;\/version&gt;                                 &lt;\/dependency&gt;                             &lt;\/customJars&gt;                         &lt;\/configuration&gt;                     &lt;\/plugin&gt;                 &lt;\/plugins&gt;             &lt;\/build&gt; &lt;cut\/&gt;             &lt;dependencies&gt;                 &lt;dependency&gt;                     &lt;groupId&gt;fish.payara.extras&lt;\/groupId&gt;                     &lt;artifactId&gt;payara-micro&lt;\/artifactId&gt;                     &lt;version&gt;4.1.2.173&lt;\/version&gt;                     &lt;scope&gt;provided&lt;\/scope&gt;                 &lt;\/dependency&gt;                 &lt;dependency&gt;                     &lt;groupId&gt;p6spy&lt;\/groupId&gt;                     &lt;artifactId&gt;p6spy&lt;\/artifactId&gt;                     &lt;version&gt;2.3.1&lt;\/version&gt;                     &lt;scope&gt;provided&lt;\/scope&gt;                 &lt;\/dependency&gt;                 &lt;dependency&gt;                     &lt;groupId&gt;com.oracle&lt;\/groupId&gt;                     &lt;artifactId&gt;ojdbc6&lt;\/artifactId&gt;                     &lt;version&gt;11.2.0.3&lt;\/version&gt;                     &lt;scope&gt;provided&lt;\/scope&gt;                 &lt;\/dependency&gt;                 &lt;dependency&gt;                     &lt;groupId&gt;org.postgresql&lt;\/groupId&gt;                     &lt;artifactId&gt;postgresql&lt;\/artifactId&gt;                     &lt;version&gt;42.2.0&lt;\/version&gt;                     &lt;scope&gt;provided&lt;\/scope&gt;                 &lt;\/dependency&gt;             &lt;\/dependencies&gt;         &lt;\/profile&gt;        <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u041f\u0435\u0440\u0432\u043e\u0435, \u0447\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u2014 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0441\u0430\u043c \u0430\u0440\u0445\u0438\u0432 payara-micro. \u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043b\u0430\u0433\u0438\u043d (<em>maven-dependency-plugin<\/em>). \u0410\u0440\u0445\u0438\u0432 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u0438\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u043a\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e\u0435 java-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043f\u043b\u0430\u0433\u0438\u043d (<em>payara-micro-maven-plugin<\/em>) \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d \u043d\u0430 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e payra-micro <em>4.1.2.173<\/em>. \u0418\u0437 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0437\u0434\u0435\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0437\u0430\u043f\u0430\u043a\u043e\u0432\u043a\u0438 web-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 bundle, \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043a \u0437\u0430\u043f\u0443\u0441\u043a\u0443. \u0415\u0441\u0442\u044c \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430 payara-micro, \u043d\u043e \u0437\u0434\u0435\u0441\u044c \u043e\u043d\u0438 \u043d\u0430\u043c \u043d\u0435 \u043f\u0440\u0438\u0433\u043e\u0434\u044f\u0442\u0441\u044f.<\/p>\n<p>  <\/p>\n<p>\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0438 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0435 \u0432\u043e\u0435\u0434\u0438\u043d\u043e. \u0414\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0438\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u043a\u0430\u043a \u0440\u0430\u0437 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <em>exec-maven-plugin<\/em>. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;configuration&gt;                             &lt;executable&gt;java&lt;\/executable&gt;                             &lt;arguments&gt;                                 &lt;!--http:\/\/blog.payara.fish\/using-hotswapagent-to-speed-up-development--&gt;                                 &lt;argument&gt;-XXaltjvm=dcevm&lt;\/argument&gt;                                 &lt;argument&gt;-javaagent:hotswap\/hotswap-agent.jar&lt;\/argument&gt;                                 &lt;argument&gt;-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9009&lt;\/argument&gt;                                 &lt;argument&gt;-Duser.language=en&lt;\/argument&gt;                                 &lt;argument&gt;-Duser.region=US&lt;\/argument&gt;                                 &lt;argument&gt;-Ddb.ora.url=jdbc:p6spy:oracle:thin:@localhost:1521:XE&lt;\/argument&gt;                                 &lt;argument&gt;-Ddb.pg.url=jdbc:p6spy:postgresql:\/\/localhost:5432\/postgres&lt;\/argument&gt;                                 &lt;argument&gt;-jar&lt;\/argument&gt;                                 &lt;argument&gt;${project.build.directory}\/${project.build.finalName}-microbundle.jar&lt;\/argument&gt;                                 &lt;argument&gt;--domainConfig&lt;\/argument&gt;                                 &lt;argument&gt;src\/main\/setup\/domain.xml&lt;\/argument&gt;                                 &lt;argument&gt;--deploy&lt;\/argument&gt;                                 &lt;argument&gt;${project.build.directory}\/${project.build.finalName}.war&lt;\/argument&gt;                                 &lt;argument&gt;--rootDir&lt;\/argument&gt;                                 &lt;argument&gt;${project.build.directory}\/payaramicro&lt;\/argument&gt;                             &lt;\/arguments&gt;                         &lt;\/configuration&gt; <\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u0435 \u0434\u0432\u0430 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 (<em>-XXaltjvm=dcevm -javaagent:hotswap\/hotswap-agent.jar<\/em>) \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0432\u0442\u043e\u0440\u043e\u043c\u0443 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0443 (<em>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9009<\/em>) \u043c\u044b \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u043e\u0442\u043b\u0430\u0434\u043a\u0438, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u043a\u043e\u0434\u0430 \u0432 \u043e\u0442\u043b\u0430\u0434\u043a\u0435 \u0432 IDE \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043b\u043e \u0441\u0430\u043c\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432, \u043d\u043e \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u043f\u043e\u043b\u044f \u0438 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u043e\u043c \u0438\u0437 IDE, \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0441 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f.<\/p>\n<p>  <\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0432\u0430 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 (<em>-Duser.language=en -Duser.region=US<\/em>) \u043d\u0443\u0436\u043d\u044b \u0434\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b jdbc-\u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0441 Oracle. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u0421\u0423\u0411\u0414 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 <em>-D<\/em> \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b. \u0412 \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u0432\u0438\u0434\u0430 <em>${db.ora.url}<\/em> \u043d\u0430 \u044d\u0442\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 \u0444\u0430\u0439\u043b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0438\u0445 \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435. \u041f\u043e\u0434\u043c\u0435\u043d\u0430 \u0444\u0430\u0439\u043b\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0441 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u043c\u0438 \u0438\u043b\u0438 \u043f\u0440\u043e\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u0442\u043e\u0436\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0432 maven \u0438 \u0435\u0433\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0444\u0430\u0439\u043b\u044b.<\/p>\n<p>  <\/p>\n<p>\u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043f\u0443\u0442\u044c (<em>&#8212;domainConfig src\/main\/setup\/domain.xml<\/em>) \u0434\u043e \u0444\u0430\u0439\u043b\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0434\u043e\u043c\u0435\u043d\u0430, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043f\u0443\u0442\u044c \u0434\u043e war-\u0444\u0430\u0439\u043b\u0430 (<em>&#8212;deploy ${project.build.directory}\/${project.build.finalName}.war<\/em>), \u043f\u043e\u0434\u043b\u0435\u0436\u0430\u0449\u0435\u0433\u043e \u0434\u0435\u043f\u043b\u043e\u044e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043e\u043c\u0435\u043d\u0430 \u0431\u044b\u043b\u0438 \u043c\u043d\u043e\u0439 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u0430\u0440\u0445\u0438\u0432\u0430. \u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430. \u0414\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e.<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">domain.xml<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;!--      DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.      Copyright (c) 2010-2013 Oracle and\/or its affiliates. All rights reserved.      The contents of this file are subject to the terms of either the GNU     General Public License Version 2 only (\"GPL\") or the Common Development     and Distribution License(\"CDDL\") (collectively, the \"License\").  You     may not use this file except in compliance with the License.  You can     obtain a copy of the License at     https:\/\/glassfish.dev.java.net\/public\/CDDL+GPL_1_1.html     or packager\/legal\/LICENSE.txt.  See the License for the specific     language governing permissions and limitations under the License.      When distributing the software, include this License Header Notice in each     file and include the License file at packager\/legal\/LICENSE.txt.      GPL Classpath Exception:     Oracle designates this particular file as subject to the \"Classpath\"     exception as provided by Oracle in the GPL Version 2 section of the License     file that accompanied this code.      Modifications:     If applicable, add the following below the License Header, with the fields     enclosed by brackets [] replaced by your own identifying information:     \"Portions Copyright [year] [name of copyright owner]\"      Contributor(s):     If you wish your version of this file to be governed by only the CDDL or     only the GPL Version 2, indicate your decision by adding \"[Contributor]     elects to include this software in this distribution under the [CDDL or GPL     Version 2] license.\"  If you don't indicate a single choice of license, a     recipient has the option to distribute your version of this file under     either the CDDL, the GPL Version 2 or to extend the choice of license to     its licensees as provided above.  However, if you add GPL Version 2 code     and therefore, elected the GPL Version 2 license, then the option applies     only if the new code is made subject to such option by the copyright     holder. Portions Copyright [2016] [Payara Foundation and\/or its affiliates] --&gt;  &lt;domain log-root=\"${com.sun.aas.instanceRoot}\/logs\" application-root=\"${com.sun.aas.instanceRoot}\/applications\" version=\"10.0\"&gt;     &lt;security-configurations&gt;         &lt;authorization-service default=\"true\" name=\"authorizationService\"&gt;             &lt;security-provider name=\"simpleAuthorization\" type=\"Simple\" provider-name=\"simpleAuthorizationProvider\"&gt;                 &lt;authorization-provider-config support-policy-deploy=\"false\" name=\"simpleAuthorizationProviderConfig\"&gt;&lt;\/authorization-provider-config&gt;             &lt;\/security-provider&gt;         &lt;\/authorization-service&gt;     &lt;\/security-configurations&gt;     &lt;system-applications \/&gt;     &lt;applications \/&gt;     &lt;resources&gt;         &lt;jdbc-resource pool-name=\"DerbyPool\" jndi-name=\"jdbc\/__default\" object-type=\"system-all\" \/&gt;         &lt;jdbc-connection-pool is-isolation-level-guaranteed=\"false\" name=\"DerbyPool\" datasource-classname=\"org.apache.derby.jdbc.EmbeddedDataSource\" res-type=\"javax.sql.DataSource\"&gt;             &lt;property name=\"databaseName\" value=\"${com.sun.aas.instanceRoot}\/lib\/databases\/embedded_default\" \/&gt;             &lt;property name=\"connectionAttributes\" value=\";create=true\" \/&gt;         &lt;\/jdbc-connection-pool&gt;         &lt;context-service description=\"context service\" jndi-name=\"concurrent\/__defaultContextService\" object-type=\"system-all\"&gt;&lt;\/context-service&gt;         &lt;managed-executor-service maximum-pool-size=\"200\" core-pool-size=\"6\" long-running-tasks=\"true\" keep-alive-seconds=\"300\" hung-after-seconds=\"300\" task-queue-capacity=\"20000\" jndi-name=\"concurrent\/__defaultManagedExecutorService\" object-type=\"system-all\"&gt;&lt;\/managed-executor-service&gt;         &lt;managed-scheduled-executor-service core-pool-size=\"6\" long-running-tasks=\"true\" keep-alive-seconds=\"300\" hung-after-seconds=\"300\" jndi-name=\"concurrent\/__defaultManagedScheduledExecutorService\" object-type=\"system-all\"&gt;&lt;\/managed-scheduled-executor-service&gt;         &lt;managed-thread-factory description=\"thread factory\" jndi-name=\"concurrent\/__defaultManagedThreadFactory\" object-type=\"system-all\"&gt;&lt;\/managed-thread-factory&gt;     &lt;\/resources&gt;     &lt;servers&gt;         &lt;server name=\"server\" config-ref=\"server-config\"&gt;             &lt;resource-ref ref=\"jdbc\/__default\" \/&gt;         &lt;\/server&gt;     &lt;\/servers&gt;     &lt;configs&gt;         &lt;config name=\"server-config\"&gt;             &lt;health-check-service-configuration enabled=\"false\"&gt;                 &lt;log-notifier enabled=\"true\"\/&gt;                 &lt;eventbus-notifier enabled=\"false\"\/&gt;                 &lt;cpu-usage-checker unit=\"MINUTES\" name=\"CPU\" time=\"1\" enabled=\"true\" \/&gt;                 &lt;machine-memory-usage-checker unit=\"MINUTES\" name=\"MMEM\" time=\"3\" enabled=\"true\" \/&gt;                 &lt;heap-memory-usage-checker unit=\"MINUTES\" name=\"HEAP\" time=\"3\" enabled=\"true\" \/&gt;                 &lt;hogging-threads-checker unit=\"MINUTES\" name=\"HT\" time=\"5\" enabled=\"true\" \/&gt;                 &lt;garbage-collector-checker unit=\"MINUTES\" name=\"GC\" time=\"5\" enabled=\"true\" \/&gt;             &lt;\/health-check-service-configuration&gt;             &lt;http-service access-logging-enabled=\"false\"&gt;                 &lt;access-log format=\"%client.name% %auth-user-name% %datetime% %request% %status% %response.length%\" rotation-interval-in-minutes=\"15\" rotation-suffix=\"yyyy-MM-dd\"&gt;&lt;\/access-log&gt;                 &lt;virtual-server id=\"server\" access-logging-enabled=\"false\" access-log=\"\" network-listeners=\"http-listener, https-listener\"&gt;&lt;\/virtual-server&gt;             &lt;\/http-service&gt;             &lt;iiop-service&gt;                 &lt;orb use-thread-pool-ids=\"thread-pool-1\"&gt;&lt;\/orb&gt;                 &lt;iiop-listener id=\"orb-listener-1\" enabled=\"false\" address=\"0.0.0.0\"&gt;&lt;\/iiop-listener&gt;             &lt;\/iiop-service&gt;                 &lt;admin-service system-jmx-connector-name=\"system\" type=\"das-and-server\"&gt;                 &lt;jmx-connector port=\"8686\" address=\"0.0.0.0\" security-enabled=\"false\" auth-realm-name=\"admin-realm\" name=\"system\" enabled=\"false\"&gt;&lt;\/jmx-connector&gt;                 &lt;das-config&gt;&lt;\/das-config&gt;             &lt;\/admin-service&gt;                  &lt;connector-service class-loading-policy=\"global\" shutdown-timeout-in-seconds=\"30\"&gt;             &lt;\/connector-service&gt;             &lt;!--&lt;ejb-container steady-pool-size=\"0\" max-pool-size=\"32\" session-store=\"${com.sun.aas.instanceRoot}\/session-store\" pool-resize-quantity=\"8\"&gt;--&gt;                 &lt;!--&lt;ejb-timer-service ejb-timer-service=\"Hazelcast\"&gt;&lt;\/ejb-timer-service&gt;--&gt;             &lt;!--&lt;\/ejb-container&gt;--&gt;             &lt;log-service file=\"${com.sun.aas.instanceRoot}\/logs\/server.log\" log-rotation-limit-in-bytes=\"2000000\"&gt;                 &lt;module-log-levels \/&gt;             &lt;\/log-service&gt;             &lt;security-service activate-default-principal-to-role-mapping=\"true\" jacc=\"simple\"&gt;                 &lt;auth-realm classname=\"com.sun.enterprise.security.auth.realm.file.FileRealm\" name=\"admin-realm\"&gt;                     &lt;property value=\"${com.sun.aas.instanceRoot}\/config\/admin-keyfile\" name=\"file\" \/&gt;                     &lt;property value=\"fileRealm\" name=\"jaas-context\" \/&gt;                 &lt;\/auth-realm&gt;                 &lt;auth-realm classname=\"com.sun.enterprise.security.auth.realm.file.FileRealm\" name=\"file\"&gt;                     &lt;property value=\"${com.sun.aas.instanceRoot}\/config\/keyfile\" name=\"file\" \/&gt;                     &lt;property value=\"fileRealm\" name=\"jaas-context\" \/&gt;                 &lt;\/auth-realm&gt;                 &lt;auth-realm classname=\"com.sun.enterprise.security.auth.realm.certificate.CertificateRealm\" name=\"certificate\" \/&gt;                 &lt;jacc-provider policy-configuration-factory-provider=\"com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl\" policy-provider=\"com.sun.enterprise.security.provider.PolicyWrapper\" name=\"default\"&gt;                     &lt;property value=\"${com.sun.aas.instanceRoot}\/generated\/policy\" name=\"repository\" \/&gt;                 &lt;\/jacc-provider&gt;                 &lt;jacc-provider policy-configuration-factory-provider=\"com.sun.enterprise.security.jacc.provider.SimplePolicyConfigurationFactory\" policy-provider=\"com.sun.enterprise.security.jacc.provider.SimplePolicyProvider\" name=\"simple\" \/&gt;                 &lt;audit-module classname=\"com.sun.enterprise.security.ee.Audit\" name=\"default\"&gt;                     &lt;property value=\"false\" name=\"auditOn\" \/&gt;                 &lt;\/audit-module&gt;                 &lt;message-security-config auth-layer=\"SOAP\"&gt;                     &lt;provider-config provider-id=\"XWS_ClientProvider\" class-name=\"com.sun.xml.wss.provider.ClientSecurityAuthModule\" provider-type=\"client\"&gt;                         &lt;request-policy auth-source=\"content\" \/&gt;                         &lt;response-policy auth-source=\"content\" \/&gt;                         &lt;property value=\"s1as\" name=\"encryption.key.alias\" \/&gt;                         &lt;property value=\"s1as\" name=\"signature.key.alias\" \/&gt;                         &lt;property value=\"false\" name=\"dynamic.username.password\" \/&gt;                         &lt;property value=\"false\" name=\"debug\" \/&gt;                     &lt;\/provider-config&gt;                     &lt;provider-config provider-id=\"ClientProvider\" class-name=\"com.sun.xml.wss.provider.ClientSecurityAuthModule\" provider-type=\"client\"&gt;                         &lt;request-policy auth-source=\"content\" \/&gt;                         &lt;response-policy auth-source=\"content\" \/&gt;                         &lt;property value=\"s1as\" name=\"encryption.key.alias\" \/&gt;                         &lt;property value=\"s1as\" name=\"signature.key.alias\" \/&gt;                         &lt;property value=\"false\" name=\"dynamic.username.password\" \/&gt;                         &lt;property value=\"false\" name=\"debug\" \/&gt;                         &lt;property value=\"${com.sun.aas.instanceRoot}\/config\/wss-server-config-1.0.xml\" name=\"security.config\" \/&gt;                     &lt;\/provider-config&gt;                     &lt;provider-config provider-id=\"XWS_ServerProvider\" class-name=\"com.sun.xml.wss.provider.ServerSecurityAuthModule\" provider-type=\"server\"&gt;                         &lt;request-policy auth-source=\"content\" \/&gt;                         &lt;response-policy auth-source=\"content\" \/&gt;                         &lt;property value=\"s1as\" name=\"encryption.key.alias\" \/&gt;                         &lt;property value=\"s1as\" name=\"signature.key.alias\" \/&gt;                         &lt;property value=\"false\" name=\"debug\" \/&gt;                     &lt;\/provider-config&gt;                     &lt;provider-config provider-id=\"ServerProvider\" class-name=\"com.sun.xml.wss.provider.ServerSecurityAuthModule\" provider-type=\"server\"&gt;                         &lt;request-policy auth-source=\"content\" \/&gt;                         &lt;response-policy auth-source=\"content\" \/&gt;                         &lt;property value=\"s1as\" name=\"encryption.key.alias\" \/&gt;                         &lt;property value=\"s1as\" name=\"signature.key.alias\" \/&gt;                         &lt;property value=\"false\" name=\"debug\" \/&gt;                         &lt;property value=\"${com.sun.aas.instanceRoot}\/config\/wss-server-config-1.0.xml\" name=\"security.config\" \/&gt;                     &lt;\/provider-config&gt;                 &lt;\/message-security-config&gt;                 &lt;property value=\"SHA-256\" name=\"default-digest-algorithm\" \/&gt;             &lt;\/security-service&gt;             &lt;transaction-service tx-log-dir=\"${com.sun.aas.instanceRoot}\/logs\" &gt;             &lt;\/transaction-service&gt;             &lt;hazelcast-runtime-configuration enabled=\"false\" multicastGroup=\"224.2.2.4\" multicastPort=\"2904\" generate-names=\"true\"&gt;&lt;\/hazelcast-runtime-configuration&gt;             &lt;phone-home-runtime-configuration&gt;&lt;\/phone-home-runtime-configuration&gt;             &lt;request-tracing-service-configuration&gt;                 &lt;log-notifier enabled=\"true\"&gt;&lt;\/log-notifier&gt;             &lt;\/request-tracing-service-configuration&gt;             &lt;notification-service-configuration enabled=\"true\"&gt;                 &lt;log-notifier-configuration enabled=\"true\"&gt;&lt;\/log-notifier-configuration&gt;                 &lt;eventbus-notifier-configuration enabled=\"false\"&gt;&lt;\/eventbus-notifier-configuration&gt;             &lt;\/notification-service-configuration&gt;             &lt;batch-runtime-configuration table-prefix=\"jbatch\" data-source-lookup-name=\"jdbc\/__default\"&gt;&lt;\/batch-runtime-configuration&gt;             &lt;availability-service availability-enabled=\"true\" &gt;                 &lt;web-container-availability availability-enabled=\"true\" persistence-scope=\"modified-session\" sso-failover-enabled=\"true\" persistence-type=\"hazelcast\"&gt;&lt;\/web-container-availability&gt;                 &lt;!--&lt;ejb-container-availability sfsb-ha-persistence-type=\"hazelcast\" sfsb-persistence-type=\"hazelcast\" &gt;&lt;\/ejb-container-availability&gt;--&gt;             &lt;\/availability-service&gt;             &lt;network-config&gt;                 &lt;protocols&gt;                     &lt;protocol name=\"http-listener\"&gt;                         &lt;http default-virtual-server=\"server\" xpowered-by=\"false\" max-connections=\"250\"  comet-support-enabled=\"true\"&gt;                             &lt;file-cache enabled=\"false\"&gt;&lt;\/file-cache&gt;                         &lt;\/http&gt;                            &lt;\/protocol&gt;                     &lt;protocol security-enabled=\"true\" name=\"https-listener\"&gt;                         &lt;http default-virtual-server=\"server\" xpowered-by=\"false\" comet-support-enabled=\"true\" max-connections=\"250\"&gt;                             &lt;file-cache enabled=\"false\"&gt;&lt;\/file-cache&gt;                         &lt;\/http&gt;                         &lt;ssl classname=\"com.sun.enterprise.security.ssl.GlassfishSSLImpl\" ssl3-enabled=\"false\" cert-nickname=\"s1as\"&gt;&lt;\/ssl&gt;                     &lt;\/protocol&gt;                 &lt;\/protocols&gt;                 &lt;network-listeners&gt;                     &lt;network-listener port=\"8080\" protocol=\"http-listener\" transport=\"tcp\" name=\"http-listener\" thread-pool=\"http-thread-pool\" enabled=\"true\" \/&gt;                     &lt;network-listener port=\"8443\" protocol=\"https-listener\" transport=\"tcp\" name=\"https-listener\" thread-pool=\"http-thread-pool\" enabled=\"false\" \/&gt;                 &lt;\/network-listeners&gt;                 &lt;transports&gt;                     &lt;transport byte-buffer-type=\"HEAP\" name=\"tcp\" acceptor-threads=\"-1\"&gt;&lt;\/transport&gt;                 &lt;\/transports&gt;             &lt;\/network-config&gt;             &lt;thread-pools&gt;                 &lt;thread-pool name=\"http-thread-pool\" min-thread-pool-size=\"10\" max-thread-pool-size=\"200\" max-queue-size=\"4096\"&gt;&lt;\/thread-pool&gt;                 &lt;thread-pool name=\"thread-pool-1\" min-thread-pool-size=\"2\" max-thread-pool-size=\"200\"\/&gt;             &lt;\/thread-pools&gt;         &lt;\/config&gt;      &lt;\/configs&gt;     &lt;system-property name=\"fish.payara.classloading.delegate\" value=\"false\"\/&gt;     &lt;property name=\"administrative.domain.name\" value=\"domain1\"\/&gt; &lt;\/domain&gt;<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043f\u0440\u0438\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0434\u043b\u044f \u0438\u0445 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">glassfish-resources.xml<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt; &lt;!DOCTYPE resources PUBLIC \"-\/\/GlassFish.org\/\/DTD GlassFish Application Server 3.1 Resource Definitions\/\/EN\" \"http:\/\/glassfish.org\/dtds\/glassfish-resources_1_5.dtd\"&gt; &lt;resources&gt;     &lt;jdbc-resource enabled=\"true\" jndi-name=\"java:app\/ora_con\" object-type=\"user\" pool-name=\"java:app\/OraPool\"\/&gt;     &lt;jdbc-connection-pool             allow-non-component-callers=\"false\"             associate-with-thread=\"false\"             connection-creation-retry-attempts=\"0\"             connection-creation-retry-interval-in-seconds=\"10\"             connection-leak-reclaim=\"false\"             connection-leak-timeout-in-seconds=\"0\"             connection-validation-method=\"table\"             driver-classname=\"com.p6spy.engine.spy.P6SpyDriver\"             fail-all-connections=\"false\"             idle-timeout-in-seconds=\"300\"             is-connection-validation-required=\"true\"             is-isolation-level-guaranteed=\"true\"             lazy-connection-association=\"false\"             lazy-connection-enlistment=\"false\"             match-connections=\"false\"             max-connection-usage-count=\"0\"             max-pool-size=\"32\"             max-wait-time-in-millis=\"60000\"             name=\"java:app\/OraPool\"             non-transactional-connections=\"false\"             ping=\"false\"             pool-resize-quantity=\"2\"             pooling=\"true\"             res-type=\"java.sql.Driver\"             statement-cache-size=\"0\"             statement-leak-reclaim=\"false\"             statement-leak-timeout-in-seconds=\"0\"             statement-timeout-in-seconds=\"-1\"             steady-pool-size=\"8\"             validate-atmost-once-period-in-seconds=\"0\"             validation-table-name=\"DUAL\"             wrap-jdbc-objects=\"true\"&gt;         &lt;property name=\"URL\" value=\"${db.ora.url}\"\/&gt;         &lt;property name=\"User\" value=\"system\"\/&gt;         &lt;property name=\"Password\" value=\"1\"\/&gt;         &lt;property name=\"property.dynamic-reconfiguration-waittimeout-in-seconds\" value=\"60\" \/&gt;     &lt;\/jdbc-connection-pool&gt;     &lt;jdbc-resource enabled=\"true\" jndi-name=\"java:app\/pg_con\" object-type=\"user\" pool-name=\"java:app\/PGPool\"\/&gt;     &lt;jdbc-connection-pool             allow-non-component-callers=\"false\"             associate-with-thread=\"false\"             connection-creation-retry-attempts=\"0\"             connection-creation-retry-interval-in-seconds=\"10\"             connection-leak-reclaim=\"false\"             connection-leak-timeout-in-seconds=\"0\"             connection-validation-method=\"table\"             driver-classname=\"com.p6spy.engine.spy.P6SpyDriver\"             fail-all-connections=\"false\"             idle-timeout-in-seconds=\"300\"             is-connection-validation-required=\"true\"             is-isolation-level-guaranteed=\"true\"             lazy-connection-association=\"false\"             lazy-connection-enlistment=\"false\"             match-connections=\"false\"             max-connection-usage-count=\"0\"             max-pool-size=\"32\"             max-wait-time-in-millis=\"60000\"             name=\"java:app\/PGPool\"             non-transactional-connections=\"false\"             ping=\"false\"             pool-resize-quantity=\"2\"             pooling=\"true\"             res-type=\"java.sql.Driver\"             statement-cache-size=\"0\"             statement-leak-reclaim=\"false\"             statement-leak-timeout-in-seconds=\"0\"             statement-timeout-in-seconds=\"-1\"             steady-pool-size=\"8\"             validate-atmost-once-period-in-seconds=\"0\"             validation-table-name=\"DUAL\"             wrap-jdbc-objects=\"true\"&gt;         &lt;property name=\"URL\" value=\"${db.pg.url}\"\/&gt;         &lt;property name=\"User\" value=\"postgres\"\/&gt;         &lt;property name=\"Password\" value=\"postgres\"\/&gt;         &lt;property name=\"property.dynamic-reconfiguration-waittimeout-in-seconds\" value=\"60\" \/&gt;     &lt;\/jdbc-connection-pool&gt; &lt;\/resources&gt;<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c dcevm \u043c\u043e\u0436\u043d\u043e <a href=\"http:\/\/dcevm.github.io\/\">\u043e\u0442\u0441\u044e\u0434\u0430<\/a>. \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0439\u0442\u0435 \u0435\u0435 \u043a\u0430\u043a \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u0443\u044e JVM, \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u044b\u043b\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430 \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/p>\n<p>  <\/p>\n<p>\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0430\u0433\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u043d\u0435\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043a\u043e\u0434\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 hibernate \u043c\u043e\u0436\u043d\u043e <a href=\"http:\/\/hotswapagent.org\/\">\u043e\u0442\u0441\u044e\u0434\u0430<\/a>.<\/p>\n<p>  <\/p>\n<p>\u0418\u0434\u0435\u0438 \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043a\u043e\u0434\u0430 \u0434\u043b\u044f payara \u0431\u044b\u043b\u0438 \u043f\u043e\u0434\u0447\u0435\u0440\u043f\u043d\u0443\u0442\u044b <a href=\"http:\/\/blog.payara.fish\/using-hotswapagent-to-speed-up-development\">\u043e\u0442\u0441\u044e\u0434\u0430<\/a>. \u041d\u043e \u043f\u0440\u0430\u0434\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0430\u043c\u0430 \u0438\u0434\u0435\u044f, \u0442\u0430\u043a \u043a\u0430\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0434\u043b\u044f payara-micro \u0442\u0430\u043c \u043d\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f.<\/p>\n<p>  <\/p>\n<p>\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 p6spy \u0441\u0432\u043e\u0438 sql-\u043b\u043e\u0433\u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0439\u0442\u0438 \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u043f\u0430\u043f\u043a\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u2014 \u0444\u0430\u0439\u043b sql.log. \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 p6spy \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c, \u043d\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u0442\u0435\u043c\u0430 \u0441\u043e\u0432\u0441\u0435\u043c \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0448\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u044f \u0432 \u0432\u0430\u0448\u0435\u043c pom.xml \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043d\u044b\u0445 \u0432\u044b\u0448\u0435, \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043f\u0430\u043f\u043a\u0430\u0445 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<p>  <\/p>\n<pre><code>mvn install exec:exec -P micro<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432 IDE \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f&#8230;<\/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\/post\/422061\/\"> https:\/\/habr.com\/post\/422061\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div data-io-article-url=\"https:\/\/habr.com\/post\/422061\/\" class=\"post__text post__text-html js-mediator-article\">\n<p>\u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043e\u043f\u044b\u0442\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f payra-micro \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u043a\u043e\u043c\u0443-\u0442\u043e \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u043b\u044e \u0432\u0440\u0435\u043c\u044f, \u0442\u0430\u043a \u043a\u0430\u043a \u0442\u0430\u043a\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u0448\u043b\u043e \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0441\u0440\u0430\u0437\u0443. \u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 Payara \u0438\u043b\u0438 Glassfish \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u043e\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0438\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0435\u0441\u044c \u043e\u043a\u0443\u043d\u0443\u0442\u044c\u0441\u044f \u0432 \u043c\u0438\u0440 javaee, \u0442\u043e payara-micro \u0438 \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u0434\u043b\u044f \u0412\u0430\u0441.<\/p>\n<p>  <\/p>\n<p>\u0412\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f web-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c maven \u0432 war-\u0430\u0440\u0445\u0438\u0432, \u0438 Java 8 (\u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u0430\u0440\u0448\u0438\u0445 \u0440\u0430\u0431\u043e\u0442\u0443 \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b).<\/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-288859","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/288859","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=288859"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/288859\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=288859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=288859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=288859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}