This content has been marked as final.
Show 4 replies
-
1. Re: Using SAR(Service Archive) with Seam and JBOSS
pgmjsd Apr 20, 2009 9:34 PM (in response to usison)While I have not done 'SAR inside EAR', I have deployed a SAR that used EJBs inside an EAR. It required some trickery but I did get it to work. I don't recommend it, and I'm replacing all that with ordinary EJBs and POJOs to keep things simple.
-
2. Re: Using SAR(Service Archive) with Seam and JBOSS
norman Apr 20, 2009 11:15 PM (in response to usison)We don't directly support MBeans as Seam components. You might try creating an @Service EJB3 component. (a session bean that gets registered as an MBean) I haven't tried it, but I think it should work.
-
3. Re: Using SAR(Service Archive) with Seam and JBOSS
swd847 Apr 21, 2009 2:35 AM (in response to usison)I have used @Service, and injection does not work. Instead I had to do the following:
public int getThreadCount() { int res = 0; try { Lifecycle.beginCall(); JobWorkerManager manager = (JobWorkerManager) Component .getInstance("jobWorkerManager"); res = manager.getThreadCount(); } finally { Lifecycle.endCall(); } return res; }
-
4. Re: Using SAR(Service Archive) with Seam and JBOSS
swd847 Apr 21, 2009 2:47 AM (in response to usison)If I were to do a patch to allow for automatically registering seam components as mbeans, would it be likely to get accepted into seam?