arangodb-java-driver icon indicating copy to clipboard operation
arangodb-java-driver copied to clipboard

Connection forces to specify host and port always

Open JuanEL0 opened this issue 2 years ago • 1 comments

Hi everyone, I don't know if this is just a specific case, but here it is:

In my company we have an instance of Arango exposed through a subdomain name but I can't connect to it this way because the default connection options force us to always specify host and port and not just host.

Of course I got the host and port options information and everything is fine, but I can imagine some cases where the developer can't have access to this information.

JuanEL0 avatar Aug 24 '22 17:08 JuanEL0

How is the subdomain name resolved? Do you get the port in the resolution? I.e. does it resolve to SRV records?

As of now the driver requires hostname and port for every host entry, therefore in the case above you must resolve the subdomain name manually and then configure the driver providing the resolved host:port values.

rashtao avatar Sep 07 '22 08:09 rashtao

Closing for now, please reopen in case of further questions.

rashtao avatar Dec 13 '22 07:12 rashtao