Need How-To Migrating old JBoss EJBs [message #1854622] |
Tue, 30 August 2022 14:04  |
Eclipse User |
|
|
|
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 #1854646 is a reply to message #1854640] |
Wed, 31 August 2022 18:00  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03107 seconds