• R/O
  • HTTP
  • SSH
  • HTTPS

vaadin: Commit

sample


Commit MetaInfo

Revision608586db7f437707a8d5692373ea406020c2562f (tree)
Time2016-05-03 20:40:03
Authorcintake <gozilla3st@user...>
Commitercintake

Log Message

add jsp-api

Change Summary

Incremental Difference

--- a/src/main/java/net/korabo/app/orientdb/AppServletContextListener.java
+++ b/src/main/java/net/korabo/app/orientdb/AppServletContextListener.java
@@ -12,8 +12,10 @@ import java.util.Properties;
1212 import javax.servlet.ServletContextEvent;
1313 import javax.servlet.ServletContextListener;
1414 import javax.servlet.annotation.WebListener;
15+import net.korabo.lib.StreamUtil;
1516 import net.korabo.lib.UriUtil;
1617 import net.korabo.lib.file.FileUriUtil;
18+import net.korabo.lib.file.ResourceFilesUtil;
1719 import net.korabo.lib.file.SysFilesUtil;
1820 import net.korabo.lib.settings.KSettingsUtil;
1921
@@ -43,6 +45,13 @@ public class AppServletContextListener implements ServletContextListener{
4345 props.setProperty("orientdb.www.path", orientDBwww);
4446
4547 try {
48+ File cfgFile = FileUriUtil.getFileFor(orientDBcfg);
49+ SysFilesUtil.chkAndMake(cfgFile);
50+ if (cfgFile.length() == 0){
51+ // initialize
52+
53+
54+ }
4655 OServer server = OServerMain.create();
4756 server.startup(FileUriUtil.getFileFor(orientDBcfg));
4857 server.activate();
--- /dev/null
+++ b/src/main/resources/net/korabo/app/orientdb/smplconfig.xml
@@ -0,0 +1,40 @@
1+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+<orient-server>
3+ <network>
4+ <protocols>
5+ <protocol name="binary" implementation="com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary"/>
6+ <protocol name="http" implementation="com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpDb"/>
7+ </protocols>
8+ <listeners>
9+
10+ <listener ip-address="0.0.0.0" port-range="2424-2430" protocol="binary"/>
11+ <listener ip-address="0.0.0.0" port-range="2480-2490" protocol="http">
12+ <commands>
13+ <command implementation="com.orientechnologies.orient.server.network.protocol.http.command.get.OServerCommandGetStaticContent" pattern="GET|www GET|studio/ GET| GET|*.htm GET|*.html GET|*.xml GET|*.jpeg GET|*.jpg GET|*.png GET|*.gif GET|*.js GET|*.css GET|*.swf GET|*.ico GET|*.txt GET|*.otf GET|*.pjs GET|*.svg GET|*.json GET|*.woff GET|*.ttf GET|*.svgz" stateful="false">
14+ <parameters>
15+ <entry value="Cache-Control: no-cache, no-store, max-age=0, must-revalidate\r\nPragma: no-cache" name="http.cache:*.htm *.html"/>
16+ <entry value="Cache-Control: max-age=120" name="http.cache:default"/>
17+ </parameters>
18+ </command>
19+ </commands>
20+ <parameters>
21+ <parameter name="network.http.charset" value="utf-8"/>
22+ </parameters>
23+ </listener>
24+ </listeners>
25+ </network>
26+ <users>
27+ <user name="root" password="korabo" resources="*" />
28+ </users>
29+ <!-- storages>
30+ <storage path="plocal:/opt/home/OrientDB/orientdb-community-2.1.12/databases/ConcordDebate" name="ConcordDebate"
31+ loaded-at-startup="true" />
32+ </storages -->
33+ <!-- properties>
34+ <entry name="orientdb.www.path" value="/opt/home/OrientDB/orientdb-community-2.1.12/www/"/>
35+ <entry name="orientdb.config.file" value="/Users/cintake/.krb/VAADIN01/data/OrientDB/config/orientdb-server-config.xml"/>
36+ <entry name="server.cache.staticResources" value="false" />
37+ <entry name="log.console.level" value="finest" />
38+ <entry name="log.file.level" value="fine" />
39+ </properties -->
40+</orient-server>
\ No newline at end of file
Show on old repository browser