• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Can EJB 3.0 be used with Jetty?

 
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,
 
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...).
 
author
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
 
This one time, at bandcamp, I had relations with a tiny ad.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!