Sorry, maybe I missed somethings (I’m not an expert in EJB), but according to wiki:
Enterprise JavaBeans (EJB) is a managed, server software for modular construction of enterprise software, and one of several Java APIs. EJB is a server-side software component that encapsulates the business logic of an application. The EJB specification is a subset of the Java EE specification. An EJB web container provides a runtime environment for web related software components, including computer security, Java servlet lifecycle management, transaction processing, and other web services.
In short: EJB is server side software or technology. Maybe you talking about DI in android applications. Then there are already solutions for this. For example, Dagger 2.
And, as I said in article, main point was to learn how make and publish simple library.