Issue #1234: How to change properties in urls2.xml ?

Type: Bug ReoprtVersion: 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

Reply