openejb

Choosing embedded EJB 3.x container to run JEE 5 app on Tomcat

I am sorry in advance if my question sounds too generic - I am doing all preliminary research myself but nothing substitutes real experience... My goal is to port a legacy JEE application (pre-EJB 3.x) to Tomcat with embedded EJB container. My choices currently stand as follows: JBoss Embeddable EJB Apache OpenEJB OW2 Consortium EasyB...

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 I keep getting the following error: Testsuite: com.myapp.test.NewEmptyJUnitTest Apach...

OpenEjb DeploymentLoader.getWebDescriptors NullPointerException

I am currently getting the following error when I try to startup an EAR that includes OpenEJB. The error is: java.lang.NullPointerException at org.apache.openejb.config.DeploymentLoader.getWebDescriptors(DeploymentLoader.java:1057) at org.apache.openejb.config.DeploymentLoader.discoverModuleType(DeploymentLoader.java:1162) at or...

Accessing an EJB deployed on websphere community server using Open EJB?

How can I access an EJB deployed on websphere community server using Open EJB? I'm trying to use code like the following but am not sure what to use for a URL. Note I've tried port 2809 and 1099 with ejb: and IIOP URL prefixes. Properties props = new Properties(); props.put(Context.INITIAL_CONTEXT_FACTORY,"org.ap...

Configure JNDI names with Open EJB

I'm trying to (unit) test my EJB class without having to startup my websphere environment. Now I'm using Open EJB, but there are some issues with resolving the JNDI Names for other EJBs that are used within my EJB... and there is no way for me to inject mocked classes from my test right now. Getting the InitialContext final Properties ...

Deploy web service on Tomcat with OpenEJB

Hi, 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 helloservice.endpoint.Hello java.lang.IllegalArgumentException: Could not find servlet...

Comparing OpenEjb and Glassfish

Dear all, 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 ...

How to install OpenEJB as a JEE "server" in NetBeans 6.9?

When trying to configure a new service under "servers" one has to chose a pre-defined server profile (Glassfish, JBoss, Sailfin, Sun or Tomcat). How can I create a new definition to use OpenEJB? Thanks ...

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 3.X project inside Netbeans for deployment in OpenEJB. The way we did for testing purposes...

What about OpenEJB? Is it worth it? Any opinions?

Hi, I whould like to know some opinions about OpenEJB: we are considering to use it on a new project, but really didn't found many opinions about it. So, here is my question: how about it? Does it perform well? Is it stable enough for a production environment? ...

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 says: ERROR - FAIL ... Finder: @PersistenceContext unitName has multiple matches: unitN...

How to use an external instance of ActiveMQ with OpenEJB?

Hi, how can I configure OpenEJB to work with an external instance of ActiveMQ? We already tried the configuration on this link http://openejb.apache.org/3.0/jms-resources-and-mdb-container.html but it did'nt work at all. What should we do? ...

hibernate auto create in-memory hsqldb causes Sequence not found

I'm using hibernate as my jpa provider and want it to create a in-memory hsqldb on startup using: hibernate.hbm2ddl.auto=create But for some reason I get exceptions like below in my logs. Things seems to work otherwise. Is it a hibernate or hsqldb problem? I'm limited to using jpa 1 so I'm using hsqldb 1.8.0.10 and hibernate 3.3.0.SP...

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

Hi everybody. 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 deploy my EJB 2.1 objects into OpenEJB... My problem is that the EJBs code req...

OpenEJB : Configuring MDBs with custom ConnectionFactory

As described in OpenEJB docs, we can configure JMS connection factory and queues, and they will appear in JNDI as: openejb:Resource/MyJmsConnectionFactory, openejb:Resource/MyQueue Given those JNDI entries, how can I tell to MDB to use them? Is it possible to change JNDI name, for example ConnectionFactory to appear as java:/Conne...

Other than ActiveMQ JMS providers with OpenEJB - possibly external

We are in the process of testing OpenEJB solution that embeds ActiveMQ 4.1.1. We observe various problems with messaging (bugs, performance, stability). One option is to upgrade to just released OpenEJB 3.1.3 that comes with later ActiveMQ 5.1.3. But I am trying to evaluate other options in case these problems won't go away. Is it poss...

JPA/Hibernate : @PersistenceContext unitName has multiple matches error...

Hi all, I am working on a project and so far it went quite well until I have checked out the latest changes from another team, to work on a most up to date files ( do not concentrate on that one ). I am working using Tomcat OpenEJB 3.1, JPA and Hibernate 3.2.6. What is the problem, after the deployment of application it gets stuck on : ...

OpenEJB with Tomcat and Hibernate and JPA

Hi there! I'm using OpenEJB 3.1.3 embedded in Tomcat 5.5.26 and I use hibernate 3.6 as a JPA provider. Here's my persistence.xml: <?xml version="1.0" encoding="UTF-8"?> <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...

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? ...

How to configure embedded OpenEJB container for tests properly?

This is my SLSB: @Stateless public class MyService { PersistenceContext(unitName = "abc") EntityManager em; public boolean exists(int id) { return this.em.find(Employee.class, id) != null; } } This is my persistence.xml (I'm using Glassfish v3): <persistence> <persistence-unit name="abc"> <provider>org.hibernate.ejb...