You can separate hosts/addresses toby using semicolon (;). Example: remote:server1:2424;server2:8888;server3
Dne úterý 27. října 2015 15:56:39 UTC+1 Anirudha Jadhav napsal(a): > > Hello All, > > How do i supply the connection strings to OrientGraph Java api to connect > to multiple replicas for failover. > > host1:2424 > host2:2424 > host3:2424 > > public OrientGraph(String > <http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html?is-external=true> > url, > String > <http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html?is-external=true> > username, > String > <http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html?is-external=true> > password) > > > what should the url format be? > currently we use : db = new OrientGraph( "remote:localhost:2424/dbname", > graphUser, graphPass ); > > > thanks, > Ani > -- --- 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.
