i implements this tutorial, but i cant access the service from EJB3.
My ejb looks like this:
@Stateless
public class Authentication implements AuthenticationRemote {
private ServiceTwoManagement man;
...
}
@EJB will throw: java.lang.RuntimeException: Could not resolve @EJB reference:
Any Suggestions
You guys had no chance to post an concrete answer (many informations hidden), i currently found either an clean solution or an buggy workaround. In second case: i would be glad to see any better solution like i found.
My solution was to create an service-bean (3rd bean) hold’s all the TransportObjects.
@Service defines an Singleton, so i get close to the GoF-Pattern using the Singleton-Pattern.
Finally my solution looks like this:
My RETOH looks like this:
And my Job looks like this:
@JavaKaBaby: to folow your needs, i post my stactrace using @EJB instad of singleton-pattern (i hope the problem is comprehesible withal my workaround):