This content has been marked as final. Show 5 replies
Not out of the box. Tomcat 7 is not an application server but a servlet container, it only has built in support for the JSP and servlet part of the JEE specification.1 person found this helpful
For full EJB support use one of the many JEE compliant application servers, like Glassfish, JBoss, Weblogic, Apache's own Geronimo server. Alternatively you can use Tomcat 7 and the OpenEJB API.
But then you might as well switch to using Geronimo.
thanks for quick answer.
in case of using OpenEJB API,can i use the EJB Project in another projects like Web Services or Not ?
I am trying to achieve something like Entity Framework in Microsoft .NET.
thanks in advance.
Maybe, maybe not. It all depends on your own skill what you will be able to do really, you're not limited by tech.
I suggest you actually study EJB tech to answer such questions for yourself - this is a Java forum, don't expect people to know .NET stuff.
If you need a framework like Microsoft .Net Entity Framework take a look at JPA or Hibernate (mapping database tables and fields to Java objects or entities). I understand you are looking for data persistance in your Java application.
TomEE is Apache's EE6 Webprofile implementation which supports EJBs,JPA,CDI and other EE6 web profile APIs: http://tomee.apache.org/apache-tomee.html