Hi Luigi, It will be great if you can guide me here. I am attaching OrientDBEmbeddable.java file and the configuration file which I am using.
Thank you. Shivanandan Gupta > >>>>> -- --- 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.
import com.orientechnologies.orient.server.*;
public class OrientDBEmbeddable {
public static void main(final String[] args) throws Exception {
System.out.println("Ran successfully-1");
OServer server = OServerMain.create();
server.startup(
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"
+ "<orient-server>"
+ "<network>"
+ "<protocols>"
+ "<protocol name=\"binary\" implementation=\"com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary\"/>"
+ "<protocol name=\"http\" implementation=\"com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpDb\"/>"
+ "</protocols>"
+ "<listeners>"
+ "<listener ip-address=\"0.0.0.0\" port-range=\"2424-2430\" protocol=\"binary\"/>"
+ "<listener ip-address=\"0.0.0.0\" port-range=\"2480-2490\" protocol=\"http\"/>"
+ "</listeners>"
+ "</network>"
+ "<users>"
+ "<user name=\"root\" password=\"D5C27F56CEAEA7539EE0F9ABF1E7B2F576C872280733EF4B3A54EDD2D06B8206\" resources=\"*\"/>"
+ "</users>"
+ "<properties>"
+ "<entry name=\"orientdb.www.path\" value=\"C:\"\"orientdb-community-2.0.1\"\"orientdb-community-2.0.1\"\"www/\"/>"
+ "<entry name=\"orientdb.config.file\" value=\"C:\"\"orientdb-community-2.0.1\"\"orientdb-community-2.0.1\"\"config\"\"config\"\"orientdb-server-config.xml\"\"\">"
+ "<entry name=\"server.cache.staticResources\" value=\"false\"/>"
+ "<entry name=\"log.console.level\" value=\"info\"/>" + "<entry name=\"log.file.level\" value=\"fine\"/>"
+ "</properties>" + "</orient-server>");
System.out.println("Ran successfullyessfully");
}
}
orientdb-server-config.xml
Description: XML document
