How can I get the references of all active objects of a particular EJB class?
What kind of EJB's are u talking about?
In any case, I dont think such kind of functionality is provided ready made by any application server. Some may provide this as a additional feature in an application server monitoring console.
At best, if an application server has any JMX hooks to do such kind of stuff, you may be able to utilize that.