Is it possible to access an EJB from a POJO? I have tried the
@EJB MyClass obj
but that does not work.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I will look in to the @Inject as that sounds like the solution I am looking for but it didn’t work when I tried it. I am sure I am missing something but I tried for a while and didn’t get anywhere. A tight deadline lead me to implementing the below helper class which I thought I would post for anyone to use if they have similar issues.
Thanks for the responses.