If you don't publish either of the service implementations from module1
and module2 in any special way, then the one which is published first
will be used. However, if you do have competing implementations, you can
force which one is prefered through the service.ranking attribute.
For example:
<service:export beanName="userFilter" exportName="userFilter"
attributes="service.ranking=10"/>
will result in the bean 'userFilter' being published with a higher than
default service.ranking, which would result in it being picked up at the
expense of a service published with a lower or default service ranking.
There is a brief reference to this in
http://code.google.com/p/impala/wiki/NamespaceReferenceService
Phil