Accessing EJB from within another EJB
In my OC4J, each service is deployed as it's own application. I need to access one service from another, but I don't know how.
Let's say I want to access service A (in application Aa) from service B (in application Ba). I've tried setting Aa as a shared library and made Ba import Aa. When I use getBean(), the beanRefContext of A is read. It contains a jdbcTemplate bean, Datasource bean and a service impl bean, but I get a noClassDefFoundError on JdbcTemplate.
I know that the service (in my example, service A) works fine when it is called from the client.
Last edited by richared; Apr 17th, 2007 at 01:34 AM.
Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end. (Henry Spencer)