How to import ejb project classes into web project on eclipse?

Posted by Jhonnytunes on Programmers See other posts from Programmers or by Jhonnytunes
Published on 2012-09-25T03:34:35Z Indexed on 2012/09/25 3:49 UTC
Read the original article Hit count: 290

Filed under:
|
|

I have 3 projects on eclipse, maven ejb project, maven wicket webapp project and a enterprise application project that includes ejb and web I mentioned before, as modules. But my question is, How from my web project can I use classes on the ejb project. Lets say ClassA is on the ejb project and I want to say from web project: ClassA cl = new ClassA. I wont be allowed since web project doesnt have ClassA but ejb project.

I want to use ejb project as a Business Logic, JPA part. Also I want to include here some not beans classes that I want to use from the web. Dont know if its possible.

The web project goes without Business logic, just the wicket pages calling ejb, and using ther classes.

Im new in the EE world. Never made an ear file including a war and ejb jar for deploying it on Glassfish.

Thanks in advanced.

© Programmers or respective owner

Related posts about java

Related posts about Web