Luanne,
It is not accepting put("user", username) method.

-Sukaant Chaudhary
<http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479>

On Wed, Jan 21, 2015 at 10:47 AM, Luanne Coutinho <luanne.couti...@gmail.com
> wrote:

> java.util.Properties
>
> On Wed, Jan 21, 2015 at 10:30 AM, Sukaant Chaudhary <
> sukaant.chaudh...@gmail.com> wrote:
>
>> Luanne,
>> In which Jar "Properties" Class is present?
>>
>> -Sukaant Chaudhary
>> <http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479>
>>
>> On Wed, Jan 21, 2015 at 10:26 AM, Luanne Coutinho <
>> luanne.couti...@gmail.com> wrote:
>>
>>> If you're using the JDBC driver then you'll get a java.sql.Connection,
>>> not a GraphDatabaseService.
>>>
>>> Send your username/password via properties:
>>>
>>> Properties connectionProps = new Properties();
>>> connectionProps.put("user", username);
>>> connectionProps.put("password", password);
>>>
>>> //For embedded
>>> Connection conn = DriverManager.getConnection("jdbc:neo4j:file:" +
>>> dbPath, connectionProps);
>>>
>>> //For server
>>> Connection conn = DriverManager.getConnection("jdbc:neo4j://" + host + "
>>> :" + port + "/", connectionProps);
>>>
>>>
>>>
>>> Regards
>>> Luanne
>>>
>>>
>>> On Wed, Jan 21, 2015 at 10:11 AM, Sukaant Chaudhary <
>>> sukaant.chaudh...@gmail.com> wrote:
>>>
>>>> What changes I need to make in the following configuration to put
>>>> username and password:
>>>>
>>>> GraphDatabaseService gdb = new
>>>> GraphDatabaseFactory().newEmbeddedDatabase("jdbc:neo4j://"+"neo4j.db.path");
>>>>
>>>> Please help.
>>>>
>>>> -Sukaant Chaudhary
>>>> <http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Neo4j" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to neo4j+unsubscr...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Neo4j" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to neo4j+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Neo4j" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to neo4j+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to neo4j+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to