I use Maven, WebSphere 6.x, RAD 8.x and got a maven web project.
I tried to add a MDB to the web project. I placed the MDB under src/main/java and placed ejb-jar.xml and the websphere binding under WEB-INF directly
When I deploy the web project I don't see the MDB getting deployed.
How can I fix this?
Should I add something in web.xml informing the web app that it has an EJB?
I asked a different question Here where i created a MDB project separately and tried to depend on classes inside a web project and got a response that I could deploy my EJB as part of a web app itself.
The MDB deploys properly when deployed as a separate ejb project. But the dependencies on the web project are unable to be found by the EJB project during runtime. Its throwing No Class Found exception.
So please help me on one of these 2
1) How to create EJB inside WAR and make the WAR understand that it has an EJB? - in this case the war is not recognizing the ejb
or
2)How to make a stand alone EJB project identify classes from inside a web project? - in this case the ejb is not recognizing the war classes