First of all, you might want to go with EJB3.
Then, you might want to look at this:
I would expose your EJBs as services through JMX.
How do you mark each one? Instead of an annotation, you could use a marker JMX property, e.g.
EJB 3.0 is not an option right now. We are still using EJB 2.1 and I can not change that at the moment.
So, I am searching for means on how to list all of the EJBs deployed in the container, through JMX. I can not find any documentation about it.
Can anyone provide me some doc about it?