In EJB3 the remote and local interfaces are nothing but simple Java interfaces. They just have your application's business method signatures. You dont need any tool to do that. A sample interface might look like:
As you can see there's nothing that needs to be auto-generated here.
For now we are using EJB2.1 and XDoclet/Ant to generate all the Interfaces for the EJBs. And we want switch to EJB3. And in the future, we want also to have these interfaces generated. So that not all the application developers have to code the interfaces by themself. And because we are working on a very big project with many many EJBs, we want a tool to generate it.
We would be pleased, if somebody knows a tool to generate these remote/local interfaces for EJB3 session beans like with xdoclet for EJB2.1
Does anybody know how to auto-generate and update the interfaces in EJB3 like in EJB2 with xdoclet? I have been using EASYECLIPSE, but I can't find an easy way to keep my interfaces updated like I used to in EJB2 where it was merely a matter of running the xdoclet tool and voila, your interfaces signatures were updated to reflect your bean.
I have tried using the Refactor tool in Eclipse, but it is not very productive, like it will create a new signature if you update the signature of the bean and it is very quirky.
Thanks for any help
Joined: Jul 20, 2007
We found a solution using ANT to generate REMOTE and LOCAL Interfaces.
We are using the Tool APT Jelly with the following script:
The script should also generate Generic declarations.