Hello Nikhil. Can you be more specific on what your program is doing? - Is the daemon you refer to the same process that contains your Dropwizard application? Or are you trying to couple the lifecycles of separate daemonized programs? - How exactly are you using Managed in your application code to influence the process' lifecycle? - Where and how are you injecting `sessionFactory`?
Answers to these questions should help us provide suggestions for your issue. On Sun, Aug 14, 2016 at 5:42 AM, Nikhil Bhaware <[email protected]> wrote: > Hello, > I have a use case where daemon needs to start when application starts > and stops when daemon stops. Also daemon performs some db transactions in > its lifecycle. > I am using dropwizard+ guice + hibernate-bundle in my app. I am using > Managed interface to start and stop my daemon. but when I am trying to > inject sessionFactory, it is coming as null. is there any way so that > session-factory is available when instantiating managed object? > > -- > You received this message because you are subscribed to the Google Groups > "dropwizard-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Evan Meagher -- You received this message because you are subscribed to the Google Groups "dropwizard-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
