Basically, you put some tags on the bean class, and xdoclet will generate interface, remote interface, and ejb.xml, xml files for weblogic and websphere....
http://xdoclet.sourceforge.net/xdoclet/index.html
Reverse-xdoclet
http://www.gootz.net/gbin/reverse-xdoclet/
What this does is, you already have Bean, interface, xml....but you want to the bean class to have xdoclet tags, reverse-xdoclet will do it for you.