I don't believe that's the EJB. Singleton is still a generic singleton typed object. You could always test this idea out by putting a log statement in the constructor and seeing how many times it gets called.
On Wed, Apr 3, 2013 at 1:19 PM, ymaraner <[email protected]> wrote: > John D. Ament wrote > > Using CDI, you should be able to write an extension that observes > > BeforeBeanDiscovery to add the annotated types using > > beanManager.createAnnotatedType(Interface.class) and Impl.class. > > Looking at those APIs; it doesn't look like I would get a reference to the > Singleton in my other application but rather a new instance of the class in > my web application. Not really what I was looking for. > > > > > ----- > - Tim > -- > View this message in context: > http://openejb.979440.n4.nabble.com/How-to-reference-an-EJB-in-an-EAR-from-a-separate-WAR-tp4661962p4661967.html > Sent from the OpenEJB User mailing list archive at Nabble.com. >
