I'm new in Java EE and I have a problem which I have not yet resolved.
I'm working on a Java EE project, which has an EJB project, a project that contains a Web service and another project with a visual interface (Web application).
The problem is when I try to make a dependency injection from one of my web service interfaces to the user interface (web application project). First I would like to clarify that all injections by tags never worked and tried the method:
InitialContext.doLookup (name); and this worked great.
I was able to get the implementation of my interface but when I make a call to one of its methods that returns the object, the returned object comes with all its fields empty. And when I test the service from a client created by me this returns the object with all values. I checked beforehand that all classes and objects were implementing the
My question is: Why do the methods of the service implementation, which I inject in my web application project, return empty objects?
I am using:
JAXB(to Web Services)