Anton Shaykin wrote:
Also, I read JBoss official doumentation, and there are some bugs even there, because I wasn't able to run their sample EJBs.
What errors are you seeing?
So, could you give me a hint, what part of code should be modified?
The mappedName in the @EJB injection of the servlet uses an JNDI name which needs to change. When you deploy your application on JBoss AS, it will print out the jndi names to which the EJB is being bound. You will have to change the injection to use that JNDI name. Alternately, you can use the
JNDIView to check the JNDI name of the bean