Hi Markus,

If you're running embedded server mode, you probably have the configuration 
file somewhere (either in your resources, or your file system, or directly 
hard coded). Make sure you have the webserver configured there (the best 
example comes from the orientdb distribution configuration file 
"orientdb-server-config.xml") here it's an excerpt that works for me, feel 
free to adap:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<orient-server>
    <handlers>
        <handler 
class="com.orientechnologies.orient.graph.handler.OGraphServerHandler">
            <parameters>
                <parameter value="true" name="enabled"/>
                <parameter value="50" name="graph.pool.max"/>
            </parameters>
        </handler>
    </handlers>
    <network>
        <protocols>
            <protocol 
implementation="com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary"
 
name="binary"/>
            <protocol 
implementation="com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpDb"
 
name="http"/>
        </protocols>
        <listeners>
            <listener protocol="binary" socket="default" 
port-range="2424-2430" ip-address="0.0.0.0"/>
            <listener protocol="http" socket="default" 
port-range="2480-2490" 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 
GET|*.json GET|*.woff GET|*.ttf GET|*.svgz"
                             stateful="false">
                        <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>
                    <command 
implementation="com.orientechnologies.orient.graph.server.command.OServerCommandGetGephi"
 
pattern="GET|gephi/*" stateful="false"/>
                </commands>
                <parameters>
                    <parameter value="utf-8" name="network.http.charset"/>
                </parameters>
            </listener>
        </listeners>
    </network>
    <storages/>
    <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="cache.local.enabled"/>
        <entry value="true" name="profiler.enabled"/>
        <entry value="info" name="log.console.level"/>
        <entry value="fine" name="log.file.level"/>
    </properties>
</orient-server>

Then, create a "plugins" folder inside your application root folder and 
place the file (studio-2.0.zip for OrientDB 2.0) inside the plugins folder.
It's going to be loaded as a dynamic plugin by your embedded server on 
application startup.

There must be a way of embedding the plugin somehow but I didn't find out 
how.

Cheers,
BQ.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to