Hi @Marcus_Blumel and welcome to the MongoDB community forum!!
<property name="eclipselink.nosql.property.mongo.port" value="27017"/>
<property name="eclipselink.nosql.property.mongo.host" value="localhost"/>
<property name="eclipselink.nosql.property.mongo.db" value="xrn-testing"/>
The localhost
connection you advised was working may be due to the above configuration details (and possibly more). However, this appears to be more of a eclipselink question rather than a MongoDB question. The connection string provided is generally for the official MongoDB drivers, MongoDB Compass or mongosh
.
You may wish to raise this in the Eclipse forum or possibly Stack Overflow to see if the software is capable of using the DNS Seed List Connection Format connection string example you provided.
However, to answer your questions:
In saying so, for the port specific question, I would refer to the following Connecting to a Database Deployment documentation which includes the port details for Atlas.
Based off your connection string, the test-cluster-0.xxxx.mongodb.net
value is most likely the SRV (not inclusive of the prefix). More details regarding the SRV record within DNS Seed List Connection Format can be detailed on the following topic reply.
Let us know if you have any further questions.
Best Regards
Aasawari