-
1. Re: Trouble injecting into Stateless EJB
garberfc Jan 17, 2014 3:33 PM (in response to garberfc)A couple more pieces of information:
The EJBs reside in a WAR file.
The target EJB is a Restful service with annotation: @Path("api")
Here are the console lines when the EJBs are created:
13:22:12,581 INFO [org.jboss.weld.deployer] (MSC service thread 1-6) JBAS016002: Processing weld deployment prod-ops-reportingtool-rest-web.war
13:22:12,583 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-6) JNDI bindings for session bean named PortWorkOrderResource in deployment unit subdeployment "prod-ops-reportingtool-rest-web.war" of deployment "prod-ops-reportingtool-ear.ear" are as follows:
java:global/prod-ops-reportingtool-ear/prod-ops-reportingtool-rest-web/PortWorkOrderResource!com.espn.port.rest.resource.PortWorkOrderResource
java:app/prod-ops-reportingtool-rest-web/PortWorkOrderResource!com.espn.port.rest.resource.PortWorkOrderResource
java:module/PortWorkOrderResource!com.espn.port.rest.resource.PortWorkOrderResource
java:global/prod-ops-reportingtool-ear/prod-ops-reportingtool-rest-web/PortWorkOrderResource
java:app/prod-ops-reportingtool-rest-web/PortWorkOrderResource
java:module/PortWorkOrderResource
13:22:12,583 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-6) JNDI bindings for session bean named HelloWorldEJB in deployment unit subdeployment "prod-ops-reportingtool-rest-web.war" of deployment "prod-ops-reportingtool-ear.ear" are as follows:
java:global/prod-ops-reportingtool-ear/prod-ops-reportingtool-rest-web/HelloWorldEJB!com.espn.port.rest.resource.HelloWorldEJB
java:app/prod-ops-reportingtool-rest-web/HelloWorldEJB!com.espn.port.rest.resource.HelloWorldEJB
java:module/HelloWorldEJB!com.espn.port.rest.resource.HelloWorldEJB
java:global/prod-ops-reportingtool-ear/prod-ops-reportingtool-rest-web/HelloWorldEJB
java:app/prod-ops-reportingtool-rest-web/HelloWorldEJB
java:module/HelloWorldEJB
-
2. Re: Trouble injecting into Stateless EJB
garberfc Jan 21, 2014 7:54 AM (in response to garberfc)The problem was been discovered in our code base. The EJB that was supposed to be getting another EJB injected into it was being created directly via another class and NOT via the container. The container never had the opportunity to perform the injection.