Had a couple of domain-specific annotations for the two DB resources we interacted with, so we had @Catalog DataSource ... and @DBB DataSource. Same type, but bound to appropriate implementations etc. So it still didn't need to know about the container at all.