I'd like to inject a microcontainer configured beans into an ejb3 session bean. Obviously I can manually bind each and every bean into JNDI, but I'm wondering if there is a better option. Does (or will?) the microcontainer have any facility for this, either on a bean by bean basis or maybe through some sort of JNDI object factory?
Writing a JNDI ObjectFactory would be trivial.
You'd need to use the NonSerializableObjectFactory to bind it into jndi.
Alternatively, just look at the tests in the testsuite which binds stuff into jndi
(provided they are serializable).