Assuming each jar had a @Singleton the visibility/scope rules would be as follows:
EAR:
- Red Singleton can see the Blue Singleton and vice versa
- Red or Blue Singleton cannot see the Pink, Purple, Orange or Yellow
WebappA
- Pink Singleton can see the Purple Singleton and vice versa
- Pink and Purple Singletons can see the Red and Blue Singletons
- Pink and Purple Singletons cannot see the Orange or Yellow Singletons
WebappB
- Orange Singleton can see the Yellow Singleton and vice versa
- Orange and Yellow Singletons can see the Red and Blue Singletons
- Orange or Yellow Singletons cannot see the Pink or Purple Singletons