I am using EBJ 3 as a web service. I have successfully deployed the same and tested using SOAP UI . My question is can I use the same EJB as EJB componet . I am asking this question becoz when I check the deployment details I observed that , it has actually deployed as web application and not as EJB module . So when I tried to do JNDI lookup and invoke method I got below exception.