On further testing I found bit strange behaviour.  
1) I've Java app connected using plocal and inserted two records using that
2) I've connected console using plocal and If I browse, I can see those two 
records
3) But if I connect console using remote, I can't see them!

Ver 1.6.3 # Ubuntu 13.10 # Java 1.7

orientdb> connect plocal:../databases/sampledb admin admin
Connecting to database [plocal:../databases/sampledb] with user 'admin'...OK
orientdb> select * from event                                

----+-----+------+--------+------------+-----------
#   |@RID |active|approved|title       |schedules  

----+-----+------+--------+------------+-----------
0   |#11:0|true  |false   |data1       |[0]        
1   |#11:1|true  |false   |data2       |[0]        

----+-----+------+--------+------------+-----------


2 item(s) found. Query executed in 0.002 sec(s).

=================================================================================

orientdb> connect remote:localhost/sampledb admin admin   

Disconnecting from the database [sampledb]...
OKConnecting to database [remote:localhost/sampledb] with user 'admin'...OK
orientdb> select * from event                             


0 item(s) found. Query executed in 0.003 sec(s).
orientdb> 


Any Idea?

On Sunday, December 29, 2013 12:21:35 AM UTC+8, Aymer wrote:
>
> Aha, yup, I'm using plocal for both the case. 
> I think it would be really great if we can document this as new comers 
> (esp coming from traditional SQL world) might learn this hard way as this 
> is a typical scenario where one needs to check data (that has been written 
> using Application) through console (through SQL developer in traditional 
> world).
>
> Or better, if there is any way to allow eliminate this restriction of not 
> allowing both of them to use plocal.
>
> Thanks guys
> Aym
>
> On Saturday, December 28, 2013 3:28:07 PM UTC+8, Lvc@ wrote:
>>
>> You're right, are you connecting using plocal on both?
>>
>> Lvc@
>>
>>
>>
>> On 28 December 2013 04:20, odbuser <[email protected]> wrote:
>>
>>> Are you by any chance using either local or plocal for both console and 
>>> Java app?  If so, it shouldn't be used that way. 
>>>
>>> Only one "client app" should access the database through local or 
>>> plocal.  If you want console AND java app access, you either need to run 
>>> the server and have the java app and client app as remote clients or embed 
>>> the server in the java app, have the app access plocal and the console 
>>> remote.
>>>  
>>> -- 
>>>  
>>> --- 
>>> 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.

Reply via email to