Home » Support » Issue Tracking » How to change properties in urls2.xml ?

How to change properties in urls2.xml ?

Type: BugVersion: 1.4.0Priority: NormalStatus: ClosedReplies: 1
#1

Hello,

I am using objectdb in an embedded case with network private access to each database.
I see it exists a file name "urls2.xml".

<url><main>/var/lib/tomcat7/db/myDb.odb;user=admin;password=admin</main><alt>objectdb://127.0.0.1:38059/;user=$code;password=a2e54ea3-d889-41a7-953c-dabc42877742</alt></url>

This file is autogenerated by objectdb. And it describes the locals databases url and their port / user / password properties.

I have no control on the port and password used. :(

Does it exist a way to change urls2.xml properties ?

Adding ?port=XXXX at the end of the persistence.xml database local url doesn't work. ( Tomcat says "Connection refused" )

<properties>
    <property name="javax.persistence.jdbc.url" value="/var/lib/tomcat7/db/myDb.odb?port=3333"/>
    <property name="javax.persistence.jdbc.user" value="admin"/>
    <property name="javax.persistence.jdbc.password" value="admin"/>
</properties>

Thanks,

Xirt

#2

This is neither a bug report nor a feature request, so it should have been posted to the forum and not to the issue tracking system.

Please read and follow the posting instructions.

The post was moved to the forum and the issue will be closed.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply

To post a reply and/or subscribe to update notifications - please login