How to set up a project in Netbeans to develop EJB using OpenEJB?

We want to evaluate OpenEJB for our application. We have already completed some tests, and now we need to run an experimental project.

While I saw how to use OpenEJB for testing (mainly for JUnit tests), I did not see how to configure the EJB 3.X project inside Netbeans for deployment in OpenEJB.

For testing purposes, we created a new Java EE project, select JBOSS as the application server, and then manually copy the JAR to OpenEJB. However, we want to be able to debug code in Netbeans. If I try to do this, NB starts JBOSS or other application servers. I could not figure out how to install OpenEJB as a server in Netbeans, I did not find anything useful in the Java forums and there were no answers from stackoverflow.

We know that we can use the built-in version of OpenEJB, but this is not what we are looking for. So:

  • What is the proposed project structure for an EJB application for Netbeans + OpenEJB?
  • Can I use Java EE Netbeans knowledge (wizards, build systems, client applications) with OpenEJB?
  • If we need to use OpenEJB just like libraries on the way to classes, what is the right approach to create EJBs and client applications that can later work with other EJB containers (maintain compatibility with Java EE)?
+3
source share
1 answer

Unfortunately, the people behind the OpenEJB project did not add the server integration plugin for OpenEJB to the NetBeans project ... It seems that they have not yet published it on the NetBean plugin portal.

This means that you will need to be creative in developing and debugging.

I think you could ...

  • register GlassFish 3 server
  • Create an ejb project that targets this server.
  • code, code, code.
  • ( )
  • openejb
  • jar, 4, .
  • " ..." "" openejb, 5.

openejb ( Tomcat ejb), NB .

+2

Source: https://habr.com/ru/post/1762510/


All Articles