configuration = new PropertiesConfiguration(filePath);
try
{
Cluster cluster = Cluster.open(configuration.getString("gremlin.remote.driver.clusterFile"));
client = cluster.connect();
}
catch (Exception e)
{
throw new ConfigurationException(e);
}
// using the remote graph for queries
Graph graph = EmptyGraph.instance();
g = graph.traversal().withRemote(configuration);
final Bindings b = Bindings.instance();
g.addV(b.of(LABEL, "titan")).property(NAME, b.of(NAME, "saturn")).property(AGE, b.of(AGE, 10000)).next();
g.tx().commit();
Connecting by Gremlin console I can see:
--
You received this message because you are subscribed to the Google Groups "JanusGraph users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to janusgraph-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/663b0726-0931-4350-8622-f34ce4c84bf9%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/CAA-H43-Ng%2BAmvctmkZnbTTh5f9wDsPKj%3Dpr%2B9VD64mx4G3OK_w%40mail.gmail.com.