Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Create EJB Project in Apache Tomcat 7

957279Aug 22 2012 — edited Aug 27 2012
Dear All,
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.

Comments

gimbal2
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.

http://openejb.codehaus.org/

But then you might as well switch to using Geronimo.
957279
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.
gimbal2
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.
957468
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.
r035198x
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
1 - 5
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 24 2012
Added on Aug 22 2012
5 comments
7,513 views