It looks like the issue is that the application context that’s getting set for the context service is not the full application context? I’m not sure what’s going on there. That service has always been a bit hinky and is, in the bluntest terms, a complete and total hack to give non-Spring code access to objects in the Spring context. I’ll try to play with it some later and see if I can figure out what’s going on with it.
--
Rick Herrick
Sr. Programmer/Analyst
Neuroinformatics Research Group
Washington University School of Medicine
Phone: +1 (314) 273-1645
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
xnat_discussi...@googlegroups.com.
To post to this group, send email to
xnat_di...@googlegroups.com.
Visit this group at https://groups.google.com/group/xnat_discussion.
For more options, visit https://groups.google.com/d/optout.
The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.
I am also not sure what is going on, but I wanted to chime in to say that I encountered a similar issue. I was trying to do XDAT.getContextService().getBeansOfType(OrmStrategy.class) to get a list of OrmStrategies for managing PACS. I was able to work around it well enough for what I was working on at the time, but I will want to have getBeansOfType working before I release a more general purpose DICOM query/retrieve plugin I am developing.
Thanks for letting us know that this is an issue others are having as well. Hopefully this is something that is easy for us to fix!
-Mike
We already have a (slightly different) fix for this bug in the code that will go out with our next release.
https://bitbucket.org/xnatdev/framework/commits/4c30e1de8213833037f3d57fe5f0590b538fcaaa
-Mike