Skip to main content



      Home
Home » Eclipse Projects » GlassFish » Need How-To Migrating old JBoss EJBs
Need How-To Migrating old JBoss EJBs [message #1854622] Tue, 30 August 2022 14:04 Go to next message
Eclipse UserFriend
I'm trying to get up-to-speed on Glassfish. I'm planning to migrate EJBs from an old JBoss server and I have to understand what is needed. I have the Glassfish6 server up and running (vanilla). I need a tutorial that doesn't rely on an IDE to run the server and do deployment as I want to understand the basics.

I was able to deploy a very simple stateless session EJB which used the javax.ejb annotations, but had to repackage it with an ejb-jar.xml file to get it to recognize the EJB as an EJB. But now I have no idea how, or even if I can, locate this EJB from a (remote) Java client in order to use it.

In trying to simplify the above example, I found I couldn't even compile it using
jars provided by Glassfish install, as it cannot find javax.ejb classes -- all the Glassfish examples use jakarta.ejb (perhaps that's why my initial deployment without ejb-jar.xml failed?) Trying to decide whether pull in the javax.ejb jar or rewrite code to jakarta.ejb. I'd prefer to use javax.ejb or I will have to rebuild my old EJBs.

I thought maybe I could query the JNDI database, but what I found said just instantiate InitialContext and invoke .list(""), but I got nothing in the result.

Any pointers you can provide to USEFUL tutorials or even a working example will surely be appreciated -- I'm willing to do the work, but I don't want to just run tools that do magic I don't understand. I don't feel I learn anything that way. (If I were writing new code, that would be great, but that's not my goal here.)
Re: Need How-To Migrating old JBoss EJBs [message #1854640 is a reply to message #1854622] Wed, 31 August 2022 11:54 Go to previous messageGo to next message
Eclipse UserFriend
I found this, https://github.com/eclipse-ee4j/glassfish/issues/23309, which implies that I can't lookup my EJB in a remote client. That kind of makes Glassfish worthless to me. Any ideas?
Re: Need How-To Migrating old JBoss EJBs [message #1854646 is a reply to message #1854640] Wed, 31 August 2022 18:00 Go to previous message
Eclipse UserFriend
Well, I spent close to a week trying to get a remote client to call a simple EJB in Glassfish, and waited 24 hours on this forum (with 386 views and no answers), so 6 hours ago I switched to TomEE and despite struggling with the right configuration parameters, I just now got it running. Conclusion -- GF -- not ready for prime time.
Previous Topic:Glassfish 6.1 javamail problem
Next Topic:Glassfish 6.2.5 and SLF4j
Goto Forum:
  


Current Time: Sun Apr 27 10:53:42 EDT 2025

Powered by FUDForum. Page generated in 0.03107 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top