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
0
votes
0 answers

Transaction Library of OpenEJB

We have a project and we need a transaction mechanism for business logic. In the current phase of the project we will not use full OpenEJB (simply, because it's not an option atm-we use source which would need a complete overhaul-eventually we might…
nanoquack
  • 949
  • 2
  • 9
  • 26
0
votes
1 answer

OpenEJB run in Junit without ejb-jar.xml

I want to use openEJB for my Junit test. And I can run it with the ejb-jar.xml. But in this case I cannot run my EJB application in jboss as I do not use ejb-jar.xml for settings. Instead I use annotations. So if I use ejb-jar.xml I can not run my…
user2771655
  • 1,052
  • 3
  • 20
  • 38
0
votes
2 answers

Open EJB embeded container can not find the JNDI Name

I tried to use OpenEJB for my EJB Timer task Unit test. I get an error saying that it can't find the JNDI name. Properties props = new Properties(); props.put(Context.INITIAL_CONTEXT_FACTORY,…
user2771655
  • 1,052
  • 3
  • 20
  • 38
0
votes
1 answer

integration test with openejb container and hibernate fails

I'm trying to write integration tests for my java ee 6 application. This works with open jpa and also with eclipselink. But is doesn't work with hibernate. I've created a minimal project on github to debug the problem…
Kristof Neirynck
  • 3,934
  • 1
  • 33
  • 47
0
votes
1 answer

TomEE embedded configuration for test with HSQLDB setup

I'm trying to override my Datasource configuration for unit tests as explained here : http://tomee.apache.org/embedded-configuration.html But I'm facing some WARNINGs and some properties are not taking into account properly : Infos - Cannot find…
avianey
  • 5,545
  • 3
  • 37
  • 60
0
votes
2 answers

OpenEJB ignores configuration properties for Topic resource

I'm trying to use a Topic with a message driven bean on OpenEJB. So I've edited conf/openejb.xml to: destination = TrueUpdate …
Christian Schlichtherle
  • 3,125
  • 1
  • 23
  • 47
0
votes
1 answer

OpenEJB + EclipseLink are not able to create tables on HSQL database

I have a vanilla maven WAR project, using the Java EE web profile, that executes its unit/integration tests using OpenEJB. During the OpenEJB start-up, instead of using the data source defined in jndi.properties, OpenEJB creates its own: INFO -…
javabeats
  • 1,082
  • 3
  • 12
  • 26
0
votes
2 answers

Is it possible to catch a runtime exception and throw an application exception instead in the same transaction ? (ejb)

Summary : Somebody decided that EntityExistsException is a RuntimeException to avoid to force the developer to catch the exception. What is the way to avoid this exception to rollback the transaction ? If you catch the EntityExistsException, the…
Rudy Vissers
  • 5,267
  • 4
  • 35
  • 37
0
votes
0 answers

java.lang.NullPointerException on my JUnit test using EJBContainer

I am making a JUnit test and there are errors that emerged on my stacktrace which I can't comprehend. I'm also not sure on the versions I use for my OpenEJB and Hibernate. My JUnit: public class UsersDaoTest { @EJB private UsersDao…
Compaq LE2202x
  • 2,030
  • 9
  • 45
  • 62
0
votes
0 answers

Jetty JNDI Jumpstart NamingException unknown JNDI name prefix 'org.mortbay.jetty.webapp.WebAppContext test-jndi

Is there a way to solve this? I am also new to both tapestry, jetty, and openejb. I am having out of ideas =( Configuration: Jetty 6.1.26 + OpenEJB 4.5.1 running Jumpstart for Tapestry 6.8 All compiles well, runs Ant collapser successfully, and…
data.wiz
  • 1
  • 1
0
votes
1 answer

Using EJBs in TestNG with openEJB

We are using AbstractOpenEJBTestNG class and openEJB to load the classes. Many classes are loaded with the statement below: ejbJar.addEnterpriseBean(new StatelessBean(MyService.class)); But I also see @EJB annotation at the top of the class. I was…
Kevin Rave
  • 13,876
  • 35
  • 109
  • 173
0
votes
4 answers

Injecting EntityManager results in NullPointerException in TomEE?

Here's my MovieBean.java: @Stateless public class MovieBean { @PersistenceContext private EntityManager em; /** * Default constructor. */ public MovieBean() { // TODO Auto-generated constructor stub } public List getAllMovies() { …
user1120144
0
votes
1 answer

Can Converter @FacesConverter(forClass=[someClass.class]) be implemented as @Singleton @Lock(READ)?

In an effort to remove 'static' declarations throughout my app (to help JVM's GC), I removed 'static' from the definition of the Converter class below. So that resulted in the infamous error below: Apr 13, 2013 4:10:38 AM…
Howard
  • 792
  • 8
  • 43
0
votes
1 answer

Cannot start TomEE on Windows?

This is the cmd output... ---------------------------------------------------------------- Installing the service 'TomEE' ... Using CATALINA_HOME: "C:\tomee" Using CATALINA_BASE: "C:\tomee" Using JAVA_HOME: "C:\program…
XPD
  • 1,121
  • 1
  • 13
  • 26
0
votes
2 answers

ejb testing issues with netbeans and openejb

I have created a netbeans 6.7 EnterpriseApplication project with ejb and war modules with a test stateless session ejb with a simple sayHello() method. I also added the openEjb library in order to unit test the ejb. Everything runs fine except that…
SibzTer
  • 1,737
  • 4
  • 14
  • 18