1. Use the Reflection technology to call EJB: http://www.theserverside.com/patterns/thread.jsp? Thread_id = 24019 The EJB call frame in the JDONSD framework is actually doing this, the specific principle is in my book "Java practical The "EJB Method Call Framework" section of the System Development Guide. 2. Write a unified home interface http://www.theserverside.com/patterns/thread.jsp?thread_id=***7 for all Session Beans is a call frame that I use before the EJB method calls the framework The "Java Practical System Development Guide" is also mentioned, it is also the easiest thing to think, but I found it in the JBuilder's EJB graphics development tool, and I added a new method in Bean IMP, graphics tools can't Show, and, you need to configure twice in EJB-JAR.XML, feel trouble, discarding.