2

Is there a way we can use embedded mongodb in camel peoject. I know there is camel-mongodb. But I couldn't find any example of using embed mongodb. db should be able to use throughout the camel service life time.

Darshana
  • 2,462
  • 6
  • 28
  • 54
  • Just to clear this up, what you want is a persisted connection for the service or a connection pool from which to draw from over the service, or services lifecycle. Is that correct? – Neil Lunn Jun 27 '14 at 05:07
  • yes. I want to start a db instance with camel service and end when service removed. but I don't want to desperately host a db. – Darshana Jun 27 '14 at 05:17
  • I think you meant "separately host" – Neil Lunn Jun 27 '14 at 05:26
  • @NeilLunn oh! yep don't want **separatly** host – Darshana Jun 27 '14 at 05:31
  • Take a look at these: http://stackoverflow.com/questions/6437226/embedded-mongodb-when-running-integration-tests – Aliti Jun 30 '14 at 04:13

1 Answers1

0

Camel is java, but you can't really embed native applications without serious efforts. Even technical issues put aside, you will have to worry about struggle with the license (AGPL). I'd say the answer is no.

See the following SO MongoDB embedded in java

Community
  • 1
  • 1
Petter Nordlander
  • 22,053
  • 5
  • 50
  • 84