Bindings for graphs created using ConfiguredGraphFactory not working as expected



I have a local setup of JanusGraph 0.6.0 with Cassandra 3.11.9. I am creating a graph using the ConfiguredGraphFactory. For this, I am using the bundled properties and yaml files and creating the graph by running the following commands from the Gremlin console (also bundled with the JanusGraph installation):

gremlin> :remote connect tinkerpop.server conf/remote.yaml session
==>Configured localhost/[e2adcb38-efc9-4db2-9fba-b7678d7d096a]
gremlin> :remote console
==>All scripts will now be sent to Gremlin Server - [localhost/]-[b71f19ce-41db-454b-8f1e-b89e0d0cc8b7] - type ':remote console' to return to local modegremlin> map = new HashMap();
gremlin> map.put('storage.backend', 'cql');
gremlin> map.put('storage.hostname', '');
gremlin> map.put('graph.graphname', 'graph1');
gremlin> map.put('storage.username', 'myDBUsername');
gremlin> map.put('storage.password', 'myDBPassword');
gremlin> ConfiguredGraphFactory.createConfiguration(new MapConfiguration(map));

Once I have created the map, I try to access the graph and the traversal variables bound to it, but I get the following response:

gremlin> graph1
No such property: graph1 for class: Script7
Type ':help' or ':h' for help.
Display stack trace? [yN]
gremlin> graph1_traversal
No such property: graph1_traversal for class: Script8
Type ':help' or ':h' for help.
Display stack trace? [yN]

I am using the gremlin-server-configuration.yaml and bundled with the JanusGraph installation package. The only changes I have made are adding the credentials and custom graph.graphname:


According to the documentation, I should be able to access the bound variables. I was able to do this in the 0.3.1 version of Janusgraph. What could I be missing/doing wrong?


Join to automatically receive all group messages.