i am new in Java EE
Can I Develop EJB Project in Apache Tomcat 7 Server using Eclipse or NetBeans or Not.
if yes, how can i do that,
if no, what is the alternative method can i use rather than EJB.
I have already created EJB with EclipseLink 2.3 on GlashFish Server, but i can not achieve this on Apache Tomcat 7.
Thanks in advance.
Sorry for my bad English.
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.
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.