Hi Artem,

i acquired a connection for each operation i do on the database. After 
finishing the job i close the connection:
try{...}
catch(){}
finally{
 db.close();
}



On Tuesday, April 8, 2014 8:49:33 AM UTC+2, Artem Orobets wrote:
>
> Hi Nhat,
>
> Have you close connections from first program or you just open them and 
> leave?
>
> Best regards,
> Artem Orobets
>
> * Orient Technologiesthe Company behind OrientDB*
>  
>
> 2014-04-07 19:27 GMT+03:00 Nhat Nguyen <[email protected]<javascript:>
> >:
>
>> To try if the server could manage a vast amount of users.
>>
>>
>> On Monday, April 7, 2014 6:24:20 PM UTC+2, Artem Orobets wrote:
>>
>>> Hi Nhat,
>>>
>>> I suppose the first program consumed all connections available for 
>>> server.
>>> What's the intent behind such usage?
>>>
>>>  
>>> Best regards,
>>> Artem Orobets
>>>
>>> * Orient Technologiesthe Company behind OrientDB*
>>>  
>>>
>>> 2014-04-07 16:30 GMT+03:00 Nhat Nguyen <[email protected]>:
>>>
>>> I was actually pointing on the way to connect onto the database (the 
>>>> url). Now i  have to use "remote".
>>>>
>>>> I was just wondering if i have a problem with the code or just the 
>>>> database.
>>>> I tried to use the DocumentDatabasePool. 
>>>> In one programm i made a infinite loop to acquire database connections 
>>>> and in the other programm i tried to run a simple orientdb command. The 
>>>> problem was that simple orientdb command wouldn´t be executed. If i stop 
>>>> the infinite loop the simple command gets executed.
>>>>
>>>> Do you know any solution?
>>>>
>>>>
>>>> On Monday, April 7, 2014 1:26:29 PM UTC+2, Artem Orobets wrote:
>>>>
>>>>> What do you mean?
>>>>>
>>>>> You can use embedded local or embedded server mode to prevent network 
>>>>> interaction.
>>>>>
>>>>> Could you clarify your question?
>>>>>  
>>>>> Best regards,
>>>>> Artem Orobets
>>>>>
>>>>> * Orient Technologiesthe Company behind OrientDB*
>>>>>  
>>>>>
>>>>> 2014-04-07 14:12 GMT+03:00 Nhat Nguyen <[email protected]>:
>>>>>
>>>>> Hi Artem,
>>>>>>
>>>>>> thanks. I thought there is another way to connect to the database (i 
>>>>>> guess i have to use remote).
>>>>>>
>>>>>> Regards,
>>>>>> Nhat
>>>>>>
>>>>>> On Monday, April 7, 2014 12:49:22 PM UTC+2, Artem Orobets wrote:
>>>>>>
>>>>>>> Hi Nhat,
>>>>>>>
>>>>>>> OrientDB server could be started up just through the API. Take a 
>>>>>>> look 
>>>>>>> here<https://github.com/orientechnologies/orientdb/wiki/Embedded-Server>
>>>>>>> .
>>>>>>>  
>>>>>>> Best regards,
>>>>>>> Artem Orobets
>>>>>>>
>>>>>>> * Orient Technologiesthe Company behind OrientDB*
>>>>>>>  
>>>>>>>
>>>>>>> 2014-04-07 11:04 GMT+03:00 Nhat Nguyen <[email protected]>:
>>>>>>>
>>>>>>>>  Hi,
>>>>>>>>
>>>>>>>> how can i startup the OrientDB Server within the Java API? 
>>>>>>>> It should be like starting the "server.bat" inside the orientdb 
>>>>>>>> folder.
>>>>>>>>
>>>>>>>>
>>>>>>>> I am using the OrientDB version 1.7-rc2.
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Nhat
>>>>>>>>
>>>>>>>> -- 
>>>>>>>>
>>>>>>>> --- 
>>>>>>>> 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.
>>>>>>>>
>>>>>>>
>>>>>>>  -- 
>>>>>>
>>>>>> --- 
>>>>>> 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.
>>>>>>
>>>>>
>>>>>  -- 
>>>>
>>>> --- 
>>>> 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.
>>>>
>>>
>>>  -- 
>>
>> --- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 

--- 
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.

Reply via email to