On Nov 25, 2007 3:04 PM, Paul Spencer <[EMAIL PROTECTED]> wrote: > 2) My source code, specifically the definition of CompanyAdminLocal, > CompanyAdminReport, and CompanyAdminImpl match the injection example.
That's correct, but the class - MyTestClass - that uses the local, remote and impl (?) interfaces is not considered as DI target and openejb (and any ejb3 container) doesn't inject ejbs into it. There's yet another possible solution I didn't test out myself - an application client. If you worked with Geronimo (or any Java EE 5 application server) you could inject ejbs and other managed resources into your application client, but as I wrote I didn't try it out so I can't comment on it much other than it should work. Please report a issue report (in Geronimo's or OpenEJB's jira) if you think that such an example should be available. > 3) I did not find an example where the test class used DI to get the > EJB. All of the tests got an EJB via context.lookup. I'll look into it so one is available. Jacel -- Jacek Laskowski http://www.JacekLaskowski.pl
