Datanucleus Mongodb with authentication

泪湿孤枕 提交于 2019-12-12 05:12:12

问题


I am using datanucleus for JPA on Heroku with mongodb (mongolabs). Even when I set these properties:

datanucleus.ConnectionPassword=YYYYY
datanucleus.ConnectionUserName=XXXXX

I get PersistenceException: Authentication of the connection failed for datastore heroku_app2765673 with user XXXXXXX

Does datanucleus support connecting to mongodb with a password? It seems to know my username, so I assume so. What am I doing wrong?


回答1:


Removing and readding my mongolabs account seems to have fixed this. Don't know what the actual problem was, but it clearly wasn't datanucleus.



来源:https://stackoverflow.com/questions/17373869/datanucleus-mongodb-with-authentication

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!