ejb@glassfish.java.net

Need a reference to an Session Bean within an Entity Bean

From: Kem Elbrader <kem.elbrader_at_gmail.com>
Date: Mon, 30 Jul 2007 12:22:31 -0600

Is it possible to inject an EJB into an Entity? If not is there
another way to get a reference to a EJB from an Entity?

Example:

@Entity
public class Customer {

    @EJB
    CustomerAction customerAction;

   @PostLoad
    void initialize() {
        // do stuff with customerAction...
    }
}