I assume that you have different methods getAccountMissingCount() because I see two different signatures. The Seam interception only works on
directly called methodsor if you
lookupa component, so if that's not the case you will get a null,because Seam didn't had the chance to
Send some code on how you call the mentioned methods if you want some more help.
Unless you're overriding the existing Seam Identity object, using:
for example, you might want to change the Seam component name of your CV2Identity object. Seam injects components by Seam component name and there is already one named
identityin the Seam framework, though it is namespaced (
You might also want to ensure that you aren't trying to do this in a class which has the BypassInterceptors annotation. Bijection is ignored with this annotation. If you are, use Component.getInstance(seamComponentName) instead.