Or you can remove the lines

@Resource(name = "nosql/qmmongo")
private Properties mongoConnection = null;
and anything refering to mongoConnection (it is just the database connection
parameters, anyway)

and simply hardcode your connection parameters like so:
String mongoHOST= ...;
String mongoPORT= ...;
String mongoDatabase = ...;

mongoClient = new
MongoClient(mongoConnection.getProperty("mongoHOST:mongoPORT"));
...
ds = morphia.createDatastore(mongoClient, mongoDatabase);
...



--
View this message in context: 
http://shiro-user.582556.n2.nabble.com/Example-Shiro-MongoDB-Realm-tp7579029p7579400.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to