I’ve run into the chicken/egg problem where I need an instance of QueryBuilder (QB) in the
sessionStart interceptor. However, oftentimes when the server spins up, I get an error message: "Could not find the ColdFusion component or interface “qb.models.Query.QueryBuilder”. However, on a refresh, it loads fine.
I believe the problem is a result of 1 of 2 things. Either Wirebox hasn’t finished configuring itself, or the module mapping for QB isn’t registered by the time
sessionStart gets called.
Is there a way to call Wirebox within my
sessionStart interceptor to see if it is done configuring itself and alternatively check to make sure all module mappings are in place?