How do we regenerate the stub classes for the interface methods in EJB 2.0 ?
Answered
Earlier in Eclipse we had an option of "Run EJB deploy" which would auto re generate the stub methods/classes. What would be the equivalent step in IntelliJ IDE ?
Please sign in to leave a comment.
Can you elaborate? What the classes/method are supposed to be regenerated? What Application Server do you use?
1. I have a remote interface extending to javax.ejb.EJBOjbect with some methods declared in it.
2. I also have the implementation class of the SessionBean having the methods containing business logic as declared in the above interface.
3. ejb-jar.xml contains the configuration mentioning remote interface in line 1 as "<remote>" and Bean class in line 2 as "<ejb-class>". This is a stateless session bean.
Based on this information provided above i am looking to generate three different client classes which extend to "javax.rmi.CORBA.Stub", "com.ibm.ejs.container.EJSWrapper" and "org.omg.CORBA_2_3.portable.ObjectImpl implements Tie" respectively. Eclipse generated these classes when running the "Run EJB deploy" under "Java EE Tools" option.
I am looking for the equivalent step in Intellij IDE. We are using WAS 7 to deploy the generated ear.
WebSphere Run/Debug configuration has “EJBDeploy tool” feature
https://www.ibm.com/support/knowledgecenter/en/SSEQTP_8.0.0/com.ibm.websphere.base.doc/info/aes/ae/cejb_deployejbfp.html
on Deployment tab for each added artifact. Make sure it's enabled.
https://www.jetbrains.com/help/idea/run-debug-configuration-websphere-server.html
Note that it's available only for the Full server.