autowire + module model + race conditions?

i have a model in my respository module:

modelMappings = {
  "userService@Repository" = {
     path = "user.userService"
  }
};

i have a model in my security module:

modelMappings = {
       "userService@Security" = {
            path = "user.userService"
        },
}

in my securitySerivce (in the security model), i have this:

property name="userService" inject="model:userService@Security";

when i dump it, it shows the respository module's userService.

renaming the 'user' directory of my respository model to
'repositoryUser', the race condition is gone.

now it reads:

modelMappings = {
        "userService@Repository" = {
           path = "repositoryUser.userService"
        }
};

any suggestions?

Just out of curiosity do these userServices do the same thing?

If so then I would move it out of the modules and into the standard
convention location, that way you can use your code globally then.

Regards,
Andrew Scott
http://www.andyscott.id.au/

they dont do the same thing.

it looks like the model path is causing the race condition.

using the full domain path prevents the race condition.

old path = user.userService

new path = companyx.modules.repository.model.user.userService