RE: [coldbox:8652] Re: autowire + module model + race conditions?

For the record, I wouldn’t call this a “race condition” since that implies some sort of concurrency/timing issue between multiple threads operating on a shared resource. This is more like a mapping/configuration issue.

When you reference “user.userService”, ColdBox is simply creating a component with that path and allowing ColdFusion to resolve the mapping using its normal hierarchy of locations to look for it.
I’m not too familiar yet with how modules and their injectors work, but perhaps a module’s injector could first look for CFC’s locally by appending the path to the module in front of the CFC path before using the path you gave it.

Thanks!

~Brad

+1 to what Brad said. What you’ve described is definitely not a race condition. It’s normal behavior for any ColdFusion application. :slight_smile: