Questions tagged [openejb]

Apache OpenEJB is an embeddable and lightweight EJB 3.0 implementation that can be used as a standalone server or embedded into Tomcat, JUnit, TestNG, Eclipse, IntelliJ, Maven, Ant, and any IDE or application. OpenEJB is included in Apache Geronimo, IBM WebSphere Application Server CE, Apache TomEE and Apple's WebObjects.

286 questions
4
votes
1 answer

Which InitialContextFactory should I use?

I am working on an EJB 3 project using OpenEJB (TomEE++). I have a stateless session bean whose name has been specified with an annotation. @Stateless(mappedName="SlideService", name="SlideService") public class SlideService { public…
Parag
  • 12,093
  • 16
  • 57
  • 75
3
votes
1 answer

EJB 3.1 - implementation of javax.security.auth

As I understand javax.security.auth is an API for authentication and authorization. I understand that security should be implemented by the container provider and the bean-provider can just use it in his bean my simple annotations…
Bala
  • 1,193
  • 2
  • 12
  • 34
3
votes
1 answer

Is there an Exception that can be captured when an EJB client loses the connection to the Application Server?

I would like to create an exception handler for the specific case that happens when an EJB client application loses the connection with the application server. The code we are creating is able to handle the client application in user friendly way to…
Luis Soeiro
  • 4,262
  • 6
  • 35
  • 45
3
votes
1 answer

EJB repository testing with OpenEJB - how to rollback changes

I try to test my EJB-based repositories using OpenEJB. Every time new unit test is runned I'd like to have my DB in an "initial" state. After the test, all changes should be rolled back (no matter if test succeeded or not). How to accomplish it in a…
omnomnom
  • 8,911
  • 4
  • 41
  • 50
3
votes
0 answers

EJB timer reliability

I use an openejb @Resource TimerService (which injects org.apache.openejb.core.timer.TimerServiceImpl I think) to set a recurring task to each second. timerService.createCalendarTimer(new ScheduleExpression() …
alex440
  • 1,647
  • 3
  • 20
  • 35
3
votes
1 answer

JAXRS includes abstract method as candidate for request

In my webproject using tomee, openejb and jackson (among a few other things like hibernate, most important dependencies are listed below) I've got a problem that I just can't fix. Having a structure as follows: public abstract class AbstractCrud
Ch4t4r
  • 1,387
  • 1
  • 11
  • 30
3
votes
6 answers

How to make OpenEJB to use slf4j?

Can anyone give an example of pom.xml dependencies configuration that will make OpenEJB to use slf4j logging, instead of JCL (this is what it uses now, as I understand). see also How to configure OpenEJB logging?
yegor256
  • 102,010
  • 123
  • 446
  • 597
3
votes
1 answer

Why embedded OpenEJB fails to deploy my application?

I can't understand why an embedded OpenEJB container fails at the beginning with very un-informative message (sorry for a long log): Running com.XXX.MyTest Apache OpenEJB 3.1.3 build: 20101015-05:42 http://openejb.apache.org/ INFO -…
yegor256
  • 102,010
  • 123
  • 446
  • 597
3
votes
1 answer

Where I can find a complete reference of openejb.xml?

Do anyone know where I can find a complete reference of openejb.xml configuration file from OpenEJB?
yegor256
  • 102,010
  • 123
  • 446
  • 597
3
votes
2 answers

EJBs 2.0 on OpenEJB - Where do I put the needed jars?

We've been using WAS 6.1 so far to deploy our web apps. Now we need to migrate to an economics-savvy Tomcat + OpenEJB solution. The OpenEJB 3.1.2 container is plugged into Tomcat 6.18, no standalone OpenEJB server here. So here I am, trying to…
Julian
  • 31
  • 2
3
votes
1 answer

How to setup a project in Netbeans for EJB development using OpenEJB?

We want to evaluate OpenEJB for our application. We have already performed some tests and now we need to start a pilot project. While I've seen how to use OpenEJB for testing purposes (mainly for JUnit tests), I have not seen how to set up an EJB…
Luis Soeiro
  • 4,262
  • 6
  • 35
  • 45
3
votes
2 answers

Deploy web service on Tomcat with OpenEJB

I need to deploy web service on Tomcat with installed OpenEJB. I compiled simple Hello service that just prints "Hello" with JAX-WS and tried to deploy on tomcat, but got errors while deployment : ERROR - Error deploying CXF webservice for servlet…
kostya
  • 133
  • 1
  • 3
  • 9
3
votes
0 answers

jetty-maven-plugin with OpenEJB

I'm trying to create the most basic proof-of-concept for integration testing a Java webapp that has an EJB dependency.  I came across this article, which looks close to what I'm trying to do. To create the simplest webapp possible, I used mvn…
3
votes
1 answer

OpenEJB: How to exclude jar from module search?

I use OpenEJB to run unit tests for applications ultimately deployed to WebSphere Application Server. My problem is a(n unavoidable) dependency on the WAS runtime jar. I've added an expression to the exclude property (I've also tried the physical…
Todd Chambery
  • 3,195
  • 4
  • 19
  • 27
3
votes
0 answers

Spring and OpenEJB using the same Entity Manager

How can I get Spring beans and EJBs, both of which are in a TomEE container, to use a common persistence context? I am trying to incorporate several EJB components into a predominantly Spring application. Eventually everything will be either EJB3…
Chris Owens
  • 1,107
  • 1
  • 10
  • 15
1 2
3
19 20