Hi Ryan,

It could be JLine, or simply your Activator doesn't give back hand. Can you
share your code ?

Actually, I have a "old" Mongo embedded instance on a private branch that I can
share with you.

Regards
JB

On 01/21/2018 06:23 PM, Ryan Moquin wrote:
> This might be better to ask of the Embed Mongo team, but I am not entirely
> sure.  I've been experimenting with an Embedded Mongo running inside Karaf,
> which I've gotten to work successfully with one caveat that is driving me 
> crazy
> trying to troubleshoot (I think I understand what's happening, but not exactly
> what makes it happen).  If I have a feature which installs a bundle that 
> created
> and starts a Flapdoodle Embed Mongo instance, then the Karaf console will 
> "hang"
> since I think the Embed Mongo code, kind of "hijacking" the Karaf JLine input
> stream (it attaches some input streams for the Mongo process.)  I did switch 
> the
> outputstreams to use SLF4J which helped a bit, but there is one last small 
> issue
> I can't figure out.  The reason I'm wondering if someone on this list might 
> have
> some ideas is because if when I install that feature, I force kill the Karaf
> process and start it back up, then the Embed Mongo process ends up running in
> the background without "hijacking" the Karaf jline console.
> 
> I guess I'm wondering if there is a way to initially install my embed mongo
> feature and prevent it from grabbing the Karaf JLine stream if I understand 
> how
> the feature startup is different than than when installing a feature (around 
> the
> Karaf console input).  I hope what I'm asking actually makes sense to 
> someone. 
> Basically, the feature command doesn't return control to the Karaf console 
> after
> installing that feature due to what the Embedded mongo process does under the
> covers.... I've been debugging the embed mongo code to see if I can figure out
> how this conflict is happening.. it appears one of the threads that reads an
> inputstream from mongod is the culprit, but this is only a problem when
> installing the feature, not running karaf after the feature has been 
> installed.....
> 
> Thanks for any advice!
> 
> Ryan

-- 
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to