Hello,
Sorry for the newB-nature of this question, but I did do a fair amount of google/forum searching before posting.
What I'm wondering is if it is possible to use a @Service annotated JBoss MBean also as a @Name annotated seam component (with APPLICATION scope I guess) -- such that Seam makes calls on the singleton instance.
I tried something like this:
@Service(objectName = "someapp:service=theManager") @Management(TheManager.class) @Name("theManager") @Scope(APPLICATION) @Interceptors(SeamInterceptor.class) public class TheManagerMBean implements TheManager { @PersistenceContext private EntityManager m_em; public Something getSomething() { return m_em.find(Something.class,"Something"); }
It is currently not supported, however, if you want to request it in JIRA, I'll see how many people vote for it.