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.
Questions tagged [openejb]
286 questions
3
votes
2 answers
TomEE + CXF configuration reference
So I was trying to find any reference documentation or non-trivial examples for using the three.
The 'best' I found was:
TomEE/OpenEJB JAXRS refactoring
Some tips for TomEE and
JAXRS config
The TomEE Documentation doesn't list Jax-RS at all, and…

Jakub Bochenski
- 3,113
- 4
- 33
- 61
3
votes
0 answers
OpenEJB - replace the "classpath.ear" by other name
The app I'm working have a custom ServiceLocator, so, I need to be able to specify the name I want for the app.
In other words, instead of bind the EJB's to:
java:global/classpath.ear/project-name/JNDI
I want to bind it…

caarlos0
- 20,020
- 27
- 85
- 160
3
votes
0 answers
EJBException: The bean encountered a non-application exception
I got stock with this thing. All my unit testings worked fine except for this one.
I already have a bean:
@Entity
@Table(name = "tbl_place", uniqueConstraints = @UniqueConstraint(columnNames = "manager_id"))
public class PlaceBean implements…

elL
- 767
- 2
- 14
- 35
3
votes
1 answer
Is inheritance allowed for EJB3 Stateless Session Beans?
Suppose I have a stateless bean:
@Stateless(name = "fooBean")
@LocalBean
public class Foo {
...
}
I want to create a mock for testing (with CDI)
@Alternative @Specializes
public class FooMock extends Foo {
...
}
I register the mock in beans.xml,…

kavai77
- 6,282
- 7
- 33
- 48
3
votes
3 answers
Stateless Session Bean vs Stateless Singleton
I am new to EJBs and recently started working on EJBs (3.0). I have been using Java for 6 years but never worked with EJB's before. I am overwhelmed with the complexity of the whole EJB business to say the least. I fail to understand where I can…

Kalpak Gadre
- 6,285
- 2
- 24
- 30
2
votes
1 answer
what is the difference between an embedded EJB container Vs actual server container
What is the clear difference between embedded EJB containers Vs the actual server containers which are used in production.
I can find 2 sceanrios.
For eg. glassfish-embedded-static-shell.jar - which does not have any implementation and depends on…

Bala
- 1,193
- 2
- 12
- 34
2
votes
1 answer
Configuring the DataSource jndi name in openejb to JBoss specific
How to change the JNDI name (java:/openejb/Resource/MysqlDS) in the OpenEJB embedded Container to suite JBoss specific (java:/MysqlDS) in a Testcase for unit testing.
Can this be configured in Resource injection of DataSource?

Velmurugan R
- 63
- 9
2
votes
0 answers
JavaEE 6 and connection between two EJB by @Remote
I have two EJB
One EJB has Remote interface
Second EJB try to connect to One EJB by Remote.
Under Geronimo EE 5 works fine but Geronimo EE6…

m1k0
- 81
- 1
- 4
2
votes
1 answer
TomEE lookup errors
I've a WebApp that uses tomcat and openejb in separate installations. I'm trying to move this to a TomEE (web profile / plus) environment and I'm running into lookup errors. JNDIContext is throwing a java.lang.NullPointerException.
I tried w/ TomEE…

user977505
- 539
- 3
- 9
- 19
2
votes
1 answer
Accessing singleton EJB from another webapp in TomEE
I have 2 webapps deployed on Apache TomEE+. In the first webapp I have created a singleton EJB class declared like this:
@Singleton
@Remote
@Startup
@Lock(READ)
public class SolverRegistryBean implements SolverRegistry
{
// ...
From openejb.log…

user917938
- 313
- 3
- 9
2
votes
1 answer
TomEE throwing IndexOutOfBoundsException
I am trying to deploy a Vaadin/JEE6 application to TomEE.
The following exception is thrown during deployment:
org.apache.catalina.LifecycleException: Failed to start component…

tobiasbayer
- 10,269
- 4
- 46
- 64
2
votes
3 answers
EJB calls EJB in WebLogic and OpenEJB
I want to write an application which has 2 EJBs. This application can run in both OpenEJB and WebLogic 10.3. Both of the EJB are EJB 3.0.
I know how to implement in both OpenEJB and WebLogic, but the problem is I want to use the same code to deploy…

Dennys
- 587
- 2
- 13
- 33
2
votes
0 answers
Possible typo in openwebbeans.properties in openejb-core.jar?
I had been dealing with a deployment issue in a recent TomEE version (8.0.11) that I could not make sense of, to which I finally found a workaround but not quite sure about the integrity of the solution.
Before getting into details, I'd like to…

alegria
- 931
- 2
- 10
- 25
2
votes
1 answer
Confusion about using OpenEJB in embedded mode for unit-testing
I started exploring the possibilities of using OpenEJB in embedded mode for unit-testing my EJB3 components. At first I got errors like the below output
Testsuite: HelloBeanTest
Tests run: 4, Failures: 0, Errors: 4, Time elapsed: 1,779…

kaskelotti
- 4,709
- 9
- 45
- 72
2
votes
2 answers
Test @Webservice EJBs with WebServiceContext (using OpenEJB?)
I have some EJBs as JAX-WS Web Service:
@WebService
@Stateless
@Remote(MobileFacade.class)
public class MobileFacadeBean implements MobileFacade {
...
@Resource
WebServiceContext wsc;
...
}
Within this Web Service class, a…

Frank
- 399
- 6
- 15