Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can EJB 3.0 be used with Jetty?  RSS feed

 
Naresh Bafna
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am developing a web application using Jetty.

I am getting the following error when i try to use EJB 3.0

"The import javax.ejb cannot be resolved MavenWebApp/src/main/java/component examname.java line 2 1237952830033 10"

Is this because EJB 3.0 does not work with Jetty or there is some other issue i need to look for?

Regards,
 
Raf Szczypiorski
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a difference between a servlet container and a full Java EE application server. Jetty is a servlet container, and to use EJB you need an EJB container. You could use OpenEJB for example if you really need to use EJB, or you could possibly switch to a full application server that uses Jetty inside (Geronimo, JBoss...).
 
Reza Rahman
author
Ranch Hand
Posts: 580
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Naresh,

Both OpenEJB and EasyBeans have excellent support for Jetty.

Hope it helps,
Reza
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!