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
37
votes
1 answer

What to put into jta-data-source of persistence.xml?

What value should I place into of my persistence.xml? In glassfish admin panel I created a datasource name "abcDS". In my jndi.properties (inside src/test/resources) I defined it like…
yegor256
  • 102,010
  • 123
  • 446
  • 597
16
votes
4 answers

How to instruct Maven to ignore my main/resources/persistence.xml in favor of test/...?

I have two persistence.xml files, for the sake of testing: src/main/resources/META-INF/persistence.xml src/test/resources/META-INF/persistence.xml How to instruct Maven to ignore the first file during testing? Now it is not ignored since OpenEJB…
yegor256
  • 102,010
  • 123
  • 446
  • 597
15
votes
2 answers

Building a standalone executeable JAR with OpenEJB

I am building a CLI tool, which integrates with several EJB modules. For this reason, I need to build a fat jar, which is then executed as a standalone application. However, executing this fat jar with java -jar (Note: conf/openejb.xml is in the…
rzo1
  • 5,561
  • 3
  • 25
  • 64
10
votes
6 answers

How can I integrate Jersey with TomEE / openEJB

I am upgrading a code that uses Jersey JAX-RS to run on an Apache TomEE server. Unfortunately it throws errors when I try to use Jersey with TomEE. I am using eclipse and have the JAX-RS project facet turned on. It points to the Jersey library. I…
Greg
  • 1,549
  • 1
  • 20
  • 34
9
votes
3 answers

How to use TomEE with Hibernate

I have created very simple app with persistence context (hibernate as provider) to read some value from database. I use Eclipse with Maven. First, I get Caused by: org.apache.openejb.OpenEJBException: java.lang.ClassCastException:…
LancerX
  • 1,211
  • 7
  • 23
  • 40
8
votes
4 answers

How to configure OpenEJB logging?

How can I configure OpenEJB logging format? This is what what I see now in logs: [...] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec Running com.XXX.FooTest Apache OpenEJB 3.1.3 build:…
yegor256
  • 102,010
  • 123
  • 446
  • 597
8
votes
6 answers

Comparing OpenEjb and Glassfish

can we replace Glassfish with Tomcat/OpenEJB for lighter applications? What is the performance of OpenEJB comparing to glassfish as EJB container. What is the restrictions of OpenEJB instead of glassfish? Regards
Nav
  • 4,450
  • 10
  • 53
  • 84
8
votes
2 answers

DDL generation and general persistence.xml settings (OpenJPA)

Summary I'm trying to run a Java web application JPA 2.0 example. The example application was written to run in Glassfish, using EclipseLink as JPA provider. I would like to convert it to run in TomEE with OpenJPA as the JPA provider, but I can't…
Alex Averbuch
  • 3,245
  • 5
  • 33
  • 44
7
votes
3 answers

Unit Testing EJB 3.1

I am doing a small research on Unit Testing of EJB 3.1. At the end my goal is to produce a easy to use solution for Unit Testing EJB 3.1. I do not have much knowledge with big EJB implementations and hence I would like to first get some…
Bala
  • 1,193
  • 2
  • 12
  • 34
7
votes
2 answers

In TDD, why OpenEJB and why Arquillian?

I'm a web developer ended up in some Java EE development (Richfaces, Seam 2, EJB 3.1, JPA). To test JPA I use hypersonic and Mockito. But I lack deeper EJB knowledge. Some may argue that we should use OpenEJB and Arquillian, but for what? When do I…
Demas Sinner
  • 101
  • 2
  • 10
7
votes
4 answers

Jetty 8 + EJB 3.1 + JTA + CDI + JPA 2 stack?

Can anyone tell me if it is currently possible to "glue together" a partial Java EE 6 Web Profile over Jetty? I've found a lot of articles about integrating standalone EJB 3 containers, JTA providers, etc with older Jetty versions, so I wounder if…
Anthony Accioly
  • 21,918
  • 9
  • 70
  • 118
7
votes
1 answer

Why datasource is not found in JNDI after injection from jndi.properties?

This is my persistence.xml: org.hibernate.ejb.HibernatePersistence jdbc/abcDS This is…
yegor256
  • 102,010
  • 123
  • 446
  • 597
7
votes
1 answer

VisualVM connect to local TomEE very slow and can not take a heap dump

I encountered a very strange problem with TomEE 1.5.1 and VisualVM 1.7.0_09 on MAC OSX mountain lion. After TomEE loaded some webapp.Use VisualVM connect local TomEE process take long time, and after connected the gc button is disabled and I can…
Yaocl
  • 194
  • 1
  • 12
7
votes
1 answer

What is the workflow for application startup and configuration when using Apache TomEE

I understand that Apache TomEE is a regular Tomcat installation with openejb as a web app. I am trying to understand how all this bootstraps. I will try and ask a few directed questions: Is it important to have an application startup order ? Should…
Parag
  • 12,093
  • 16
  • 57
  • 75
6
votes
0 answers

How to resolve JNDI conflict between Jetty and OpenEJB?

I'm running Jetty (from Maven) with OpenEJB inside. The problem is that they conflict through JNDI context. The problem was explained some time ago by Stephen Connolly with a solution. The solution looks rather outdated (it's for Jetty 6.x, while…
yegor256
  • 102,010
  • 123
  • 446
  • 597
1
2 3
19 20