Answer the question
In order to leave comments, you need to log in
I'm trying to write an addition to the database in the controller for the entity, but for some reason ejbFacade == null. Why?
I am developing a web application in which I use templates. NetBeans development environment - Following the example of the jsf and classes created by it, I write the application itself. I am trying to write an addition to the database in the controller for the entity, but for some reason ejbFacade == null, and accordingly I cannot do something with it. But the problem is that in the template I did not see that the field was somehow initialized.
PS Perhaps confusedly explained, but I really need help.
Answer the question
In order to leave comments, you need to log in
@EJB
private entity.UsermyFacade ejbFacade;
the ejbFacade variable is initialized with the EJB annotation. In essence, the application server looks for a class that implements the UsermyFacade interface, creates an instance of it, and associates it with ejbFacade through a proxy
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question