Subject: [mongodb-user] Mongodb and Tomcat Connection
compared with Postgresql and Tomcat Connection



I am doing a PoC with a concept where I am using both Postgresql and Mongodb together with Tomcat. I run mongodb (2.4), postgresql(9.1) and tomcat(6.0.44 with Java 6) as service on ubuntu 14.04 LTS When I deploy my application with Tomcat I run certain test cases that are necessary for the PoC. One amongst them is auto start of these services on system start. 
When the system starts mongodb takes time to start up while tomcat server and postgresql start - due to this I have to manually restart tomcat server because it cannot connect to mongodb even when mongodb is already up and running.
Due to the above issue I did the following tests:
Test 11. Stop all services.2. Start mongodb.3. Start tomcat.4. Start postgresql.Before Step 4 I query tomcat - it gives errors.
After step 4 I query tomcat - it runs just fine.
Test 21. Stop all services.2. Start postgresql.3. Start tomcat4. Start mongodb.Before step 4 I query tomcat - it gives errors.After step 4 I query tomcat - it gives errors.I have to manually stop and then start tomcat for it to run properly.
Question: 1. Why does mongodb not connect seamlessly with tomcat but postgresql does if it starts after tomcat starts?2. Am I missing any configuration with mongodb?
I have attached my mongodb and postgresql configuration file.
Please help - I have found nothing on web related to this.
Juhi.


--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]....


To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/6a59f430-fe9b-4f76-87f0-3571dd0e0057%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: mongodb-da.xml
Description: XML document

Attachment: postgresql.xml
Description: XML document

...



Programming list archiving by: Enterprise Git Hosting