埋め込み (plocal) サーバーを使用して OrientDb スタジオを起動できます。ただし、RuntimePermission.createClassLoader にアクセス許可を付与する必要があります。私はむしろその許可を与えたくありませんし、クラスローダーは必要ないかもしれません。ホット再展開は私のニーズに合わない可能性があり、サーバーは組み込まれます (アプリケーションから独立していません)。
クラスローダーなしで OrientDb Studio をロードすることは可能ですか?
サーバーを起動するコードは次のとおりです。
OServer server;
System.setProperty("ORIENTDB_HOME", getGraphDatabaseDirectoryPath());
server = OServerMain.create();
server.startup(orientServerConfigFile.getInputStream());
server.activate();
orientServerConfigFile は私の設定ファイルを指しています。ここに私の設定ファイルがあります:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<orient-server>
<network>
<protocols>
<protocol implementation="com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary" name="binary"/>
<protocol name="http" implementation="com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpDb"/>
</protocols>
<listeners>
<listener protocol="binary" socket="default" port-range="2424-2430" ip-address="0.0.0.0"/>
<listener protocol="http" port-range="2480-2485" ip-address="0.0.0.0">
<commands>
<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">
<parameters>
<entry value="Cache-Control: no-cache, no-store, max-age=0, must-revalidate\r\nPragma: no-cache" name="http.cache:*.htm *.html"/>
<entry value="Cache-Control: max-age=120" name="http.cache:default"/>
</parameters>
</command>
</commands>
</listener>
</listeners>
</network>
<users>
<user resources="*" password="root" name="root"/>
<user resources="connect,server.listDatabases,server.dblist" password="guest" name="guest"/>
</users>
<properties>
<entry value="1" name="db.pool.min"/>
<entry value="50" name="db.pool.max"/>
<entry value="true" name="profiler.enabled"/>
</properties>