It seems that the component is well created by Seam. I see it now in the log but still unable to inject it.
I think I begin to understand where the problem come from. If entities-ejb is well managed by Seam and injections are correctly done, it’s not the case of ws-ejb. All my injections, even classical ones (entityManager for instance) miserably fail in this project. Some configuration which is missing perhaps but can’t find what.
As I can see SampleEndPoint isn't managed by Seam container at all! so there would not be seam injections. simply Add @Name(
sampleEndPoint) annotation to your class.
I finally achieve to solve my problem just before you post your – right – answer :-). I have not made this component Seam managed (don’t know if there is side effects with JBoss WS) but used Component.getInstance(…) instead. Quite the same thing in fact. Found the solution here: http://www.digitalsanctuary.com/tech-blog/java/web-services-and-seam.html.
I having the same problem.
Only Component.getInstance() works with seam 2.1.2.
I want to use @In annotation. Any idea?