java - Problems with Dependency Injection -


i'm new in java ee , have problem have not yet resolved.

i'm working on java ee project, has ejb project, project contains web service , project visual interface (web application).

the problem when try make dependency injection 1 of web service interfaces user interface (web application project). first clarify injections tags never worked , tried method: initialcontext.dolookup (name); , worked great.

i able implementation of interface when make call 1 of methods returns object, returned object comes fields empty. , when test service client created me returns object values. checked beforehand classes , objects implementing serializable interface.

my question is: why methods of service implementation, inject in web application project, return empty objects?

i using:

  1. eclipse

  2. glassfish server

  3. jaxb(to web services)

i apologize taking respond, tell solve problem , make comment problem had.

i'm working on project javaee said. project contains ejb module, ear project, web service , dynamic web project. first clarify projects made else , i'm continuing work. may discover problem had persistence within ejb project, not bad when generating entities rather keeping them within project contains persistence, developer moved them project called "utils" , included in ear application module. seemed work instances of entities apparently project contains persistence (ejb) did not have physical entities in packages , therefore not able build , fill these data when request made injection.

i want thank concern , quick response.

regards.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -