in the Con Class:

public static ArangoDBAsync arangoDB = new 
ArangoDBAsync.Builder().host("arangodb01.xxxxxxx.com", 
8529).host("arangodb02.xxxxxxx.com", 8529).host("arangodb03.xxxxxxx.com", 
8529).user("thisUserNoExist").password("WrongPassword").timeout(1000).build();

in other class on a event of a button:

Collection<MyObject> documents = new ArrayList<>();
  documents.add(new MyObject());
  
arangoDB.db("testedatabase").collection("myCollection").insertDocuments(documents);

other think is; when i have internet connection, the insert work well, when 
the internet is off, the timeout wont work, and when i use the 
ArangoDBAsync, the methods 
like:"arangoDB.db("testedatabase").collection("myCollection").insertDocuments(documents);"
 
dont need a try catch, but if i use the Java Client wihout Async, and use 
the Sync version, the Netbeans alert to catch errors.

Em quarta-feira, 18 de abril de 2018 06:55:09 UTC-3, mpv1989 escreveu:
>
> What are the starting parameters of your ArangoDB instances in your 
> cluster?
>
> On Wednesday, 18 April 2018 11:50:07 UTC+2, Jefferson wrote:
>>
>> I see a big problem here, i create a cluster with 3 nodes, and i used the 
>> Java Client normaly (with problem of offline...), but when i test the Async 
>> version of Java Client i don't need pass user and password, the 
>> class ArangoDBAsync can acess the databases and collections wihout 
>> autentication, and if i pass a wrong password, this object can access the 
>> databases too, what could be?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"ArangoDB" 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.

Reply via email to