Hi,
I think there is small issue here, how async queries are handled.
We will look on it during 1.7 release. Could you create issue on it ?


On Wed, Jan 15, 2014 at 8:52 AM, Koic <[email protected]> wrote:

> Sorry for making a lame explanation.
> I can't describe that properly because I don't know what happens...
>
> No exceptions occur, but when I implement like this, it's not working.
>
> def result(iRecord: scala.Any): Boolean = {
>   val d = iRecord.asInstanceOf[ODocument]
>   // want to execute some sql queries here, but...I have no idea what to
> do
>   // When I execute a command like this,
>   database.command[OCommandRequest](new OSQLSynchQuery[ODocument]("select
> from ? where headWord = '?'")).execute(d.field("?"))
> // returns nothing and OSQLAsynchQuery is canceled.
>   // I assume it works correctly, so try to get a new connection using
>    ODatabaseDocumentPool.global().acquire("remote:localhost/test",
> "root", "root")
>   // or
>   new ODatabaseDocumentTx("remote:localhost/test").open("root", "root")
>   // then it never returns from inside the loop at
> StorageRemote#beginResponse.
>   ...
> }
>
> 2014年1月15日水曜日 3時18分57秒 UTC+9 Artem Orobets:
>>
>> Hi Koic,
>>
>> I haven't got your question. Does the execution of database command
>> inside of result listener produces an exception?
>>
>> Best regards,
>> Artem Orobets
>>
>> * Orient Technologiesthe Company behind OrientDB*
>>
>>
>> 2014/1/11 Koic <[email protected]>
>>
>>> Hi,
>>>
>>> I'm new to Orient DB.
>>> It seems not to be able to create multiple connections on the same
>>> thread.
>>>
>>> database.command[OCommandRequest](
>>>  new OSQLAsynchQuery[ODocument]("select from ?",
>>>   new OCommandResultListener {
>>> def result(iRecord: scala.Any): Boolean = {
>>>   // want to execute some sql queries here, but...I have no idea what
>>> to do
>>>   ...
>>>   return true
>>>  }
>>> def end() {}
>>>   }
>>> )
>>> ).execute()
>>>
>>> --
>>>
>>> ---
>>> 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/groups/opt_out.
>>>
>>
>>  --
>
> ---
> 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/groups/opt_out.
>



-- 
Best regards,
Andrey Lomakin.

Orient Technologies
the Company behind OrientDB

-- 

--- 
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/groups/opt_out.

Reply via email to