-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hibernate bundle not getting initialized #2
Comments
Any luck with this? I think we are running into it too |
Hi, Yes its quite a simple fix. Just edit the file https://github.com/twilio/wiztowar/blob/master/src/main/java/com/twilio/wiztowar/DWAdapter.java and add the line: bootstrap.runWithBundles(configuration, environment); just before the dwService.run(configuration, environment); statement. Its at around line 117. So the code has to look like this:
Now hibernate and any other bundle will get properly initialized and work fine :) |
You may very well be my new favorite person. Testing now. -- From: Madhan Dennis Madhan Dennis Yes its quite a simple fix. Just edit the file https://github.com/twilio/wiztowar/blob/master/src/main/java/com/twilio/wiztowar/DWAdapter.java and add the line: bootstrap.runWithBundles(configuration, environment); just before the dwService.run(configuration, environment); statement. Its at around line 117. So the code has to look like this:
Now hibernate and any other bundle will get properly initialized and work fine :) — |
It’s looking promising. To test, go to /service/messages From: Madhan Dennis Madhan Dennis Yes its quite a simple fix. Just edit the file https://github.com/twilio/wiztowar/blob/master/src/main/java/com/twilio/wiztowar/DWAdapter.java and add the line: bootstrap.runWithBundles(configuration, environment); just before the dwService.run(configuration, environment); statement. Its at around line 117. So the code has to look like this:
Now hibernate and any other bundle will get properly initialized and work fine :) — |
Hah, I was coming back to post this as well. I ran into a problem on cluster mode loading the config too. I'll put in another PR for it |
What kinda problem? And what cluster mode are you referring to? |
Ensuring that bundled get initialized properly. Fix for issue #2
* 'master' of github.com:twilio/wiztowar: Ensuring that bundled get initialized properly. Fix for issue #2
Hi,
Thanks for this awesome code base. However I would like to check if you have encountered any issues when integrating the hibernate bundle with this? I have been trying to, however hibernate does not seem to get run and so getSessionFactory always returns null.
Any pointers would be appreciated :)
Thanks
Best Regards,
Madhan
The text was updated successfully, but these errors were encountered: