Is there any generic document to study how the ejb container is implemented? in other words, is there a document to know more about how to implement a small ejb container that can load and manage beans, atleast session beans. I cannot find in any opensource ejb containers page information about the inner workings of the container. although i got some info from the developes guide.
The answer to the question is almost too big.. there are so many aspects of EJB and Java EE.
Some stackoverflow answers of mine that have some "under the covers" information:
Not on stackoverflow but also good: - Understanding Container-Managed JPA
You'd probably want to start with the EJB specification and the API classes.
You can try to look at the sources of the existing projects like JBoss or JBoss Embedded ejb container, that should help a lot. You can implement the specs the way you want, it doesn't matter how you do it as long as you conform to the specs (if you want to be J2EE compilant of course)