I encounter the following problem:
1) I Deploy an ejb-jar on jboss 5.1.GA in debug mode (shared memory or tcp)
2) The ejb-jar contains about 400 EJBs (all with remote and local interfaces)
It takes about 8-13 Minutes of startup time; what takes this long is the starting of an EJB.
I thought about
a) throwing the remote interfaces away (do not need them anyway)
b) converting all but the facade ejbs into pojos and pass the resources like entitymanagers manually around instead of letting them be injected
Are these ideas fine? Any more suggestions?
1) Apply our latest EJB3 plugin http://www.jboss.org/ejb3/ejb3plugin.html over JBoss AS 5.1.0
2) Follow the recommended changes in the "Tuning" section here http://community.jboss.org/wiki/jboss5xtuningslimming