Hi Alessandro,

See attached for code example and libraries used. 

Thanks,
Emiel


On Thursday, April 14, 2016 at 2:18:14 PM UTC+2, alessand...@gmail.com 
wrote:
>
> Hi Emiel,
> could you post more code so that I can replicate your exception?
> Are you using Java OrientDB Libraries 2.1.15 even in your java project?
>
> Kind regards,
> Alessandro
>

-- 

--- 
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 orient-database+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
import com.orientechnologies.orient.graph.gremlin.OCommandGremlin;
import com.tinkerpop.blueprints.impls.orient.OrientGraph;
import com.tinkerpop.blueprints.impls.orient.OrientGraphFactory;

public class GremlinTest {

	public static void main(String[] args) {
		String url = "plocal:C:/Program Files (x86)/orientdb-community-2.1.15/orientdb-community-2.1.15/databases/SmartLearningNetwork";
		test1(url);
		test2(url);
	}
	
	private static void test1(String url) {	
		System.out.println("test1");
		OrientGraph g = new OrientGraph(url,"admin","admin");
		OCommandGremlin command = new OCommandGremlin("g.V");
		g.command(command).execute();
		g.shutdown();
	}
	
	private static void test2(String url) {
		System.out.println("test2");
		OrientGraph g = new OrientGraphFactory(url).setupPool(1,10).getTx();		
		g.command(new OCommandGremlin("g.V")).execute();		
		g.shutdown();
	}
}

Reply via email to