我将几个包含 EJB 的 JAR 部署到 JBoss 5.1.0(主要是本地的,但其中一些是远程的)。这些 EJB 是相互关联的,并且对其他 EJB 有一些依赖性(主要声明为 @EJB(mappedBy = "..."))。如果我重命名 JAR 文件的名称,以便它们与它们之间的依赖关系一致(大多数独立 JAR 首先,最依赖最后),部署速度很快(所有 160 个 bean 大约需要 40 秒)。但是只需定期订购,无需通过欺骗文件名来强制容器部署,部署仍然成功,但速度非常慢(所有 160 个 bean 大约需要 6 分钟)。
当我比较这两个(调试级别)日志时,部署了许多 bean(在快速变体中,强制顺序),如下所示:
DEBUG [org.jboss.ejb.txtimer.EJBTimerServiceImpl:228] (main) createTimerService: org.jboss.ejb.txtimer.TimerServiceImpl@4c438fce
DEBUG [org.jboss.ejb.txtimer.NoopPersistencePolicy:228] (main) Noop on listTimerHandles
DEBUG [org.jboss.beans.metadata.plugins.AbstractInjectionValueMetaData:228] (main) jboss.j2ee:jar=platform-common-db-1.0.0-SNAPSHOT.jar,name=UserDAOBean,service=EJB3: Contextual injection usage (class -> classloader): interface javax.transaction.TransactionManager -> BaseClassLoader@6422b8ff{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml} defined by AbstractPropertyMetaData@456dbdf4{name=transactionManager value=AbstractInjectionValueMetaData@27d201c8{value=null injectionType=BY_CLASS propertyMetaData=transactionManager}}
DEBUG [org.jboss.beans.metadata.plugins.AbstractInjectionValueMetaData:228] (main) jboss.j2ee:jar=platform-common-db-1.0.0-SNAPSHOT.jar,name=UserDAOBean,service=EJB3: Contextual injection usage (class -> classloader): interface org.jboss.jca.spi.ComponentStack -> BaseClassLoader@6422b8ff{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml} defined by AbstractPropertyMetaData@4c7305e4{name=cachedConnectionManager value=AbstractInjectionValueMetaData@1387e2f2{value=null injectionType=BY_CLASS propertyMetaData=cachedConnectionManager}}
DEBUG [org.jboss.beans.metadata.plugins.AbstractInjectionValueMetaData:228] (main) jboss.j2ee:jar=platform-common-db-1.0.0-SNAPSHOT.jar,name=UserDAOBean,service=EJB3: Contextual injection usage (class -> classloader): interface org.jboss.ejb3.timerservice.spi.TimerServiceFactory -> BaseClassLoader@6422b8ff{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml} defined by AbstractPropertyMetaData@3e4487e2{name=timerServiceFactory value=AbstractInjectionValueMetaData@535265e{value=null injectionType=BY_CLASS propertyMetaData=timerServiceFactory}}
INFO [org.jboss.ejb3.session.SessionSpecContainer:296] (main) Starting jboss.j2ee:jar=platform-common-db-1.0.0-SNAPSHOT.jar,name=UserDAOBean,service=EJB3
DEBUG [org.jboss.ejb3.tx.UserTransactionImpl:228] (main) new UserTx: org.jboss.ejb3.tx.UserTransactionImpl@475e2675
DEBUG [org.jboss.ejb3.EJBContainer:228] (main) Linked java:comp/TransactionSynchronizationRegistry to JNDI name: java:TransactionSynchronizationRegistry
INFO [org.jboss.ejb3.EJBContainer:296] (main) STARTED EJB: platform.db.dao.bean.UserDAOBean ejbName: UserDAOBean
DEBUG [org.jboss.ejb3.session.SessionContainer:228] (main) Registered jboss.j2ee:jar=platform-common-db-1.0.0-SNAPSHOT.jar,name=UserDAOBean,service=EJB3 with org.jboss.aop.Dispatcher via InvokableContextClassProxyHack at key jboss.j2ee:jar=platform-common-db-1.0.0-SNAPSHOT.jar,name=UserDAOBean,service=EJB3
DEBUG [org.jboss.ejb3.common.registrar.plugin.mc.Ejb3McRegistrar:228] (main) Returning from name "org.jboss.ejb3.JndiRegistrar.Session.SLSBJndiRegistrar": org.jboss.ejb3.proxy.impl.jndiregistrar.JndiStatelessSessionRegistrar@35ac3082
DEBUG [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase:228] (main) Found Session Bean: UserDAOBean
DEBUG [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase:228] (main) Registering org.jboss.ejb3.proxy.impl.factory.session.stateless.StatelessSessionLocalProxyFactory@54353afffor EJB UserDAOBean under key "ProxyFactory/platform-common-db-1.0.0-SNAPSHOT/UserDAOBean/UserDAOBean/local"...
DEBUG [org.jboss.ejb3.proxy.impl.factory.ProxyFactoryBase:228] (main) Started: org.jboss.ejb3.proxy.impl.factory.session.stateless.StatelessSessionLocalProxyFactory@54353aff
DEBUG [org.jboss.ejb3.proxy.impl.factory.session.SessionProxyFactoryBase:228] (main) Created Session Bean Business Interface-Specific Proxy Constructor implementing "platform.db.dao.UserDAO"
DEBUG [org.jboss.ejb3.proxy.impl.factory.session.SessionProxyFactoryBase:228] (main) Created Session Bean Default EJB3 Business Proxy Constructor implementing [interface platform.db.dao.UserDAO]
DEBUG [org.jboss.ejb3.common.registrar.plugin.mc.Ejb3McRegistrar:228] (main) Installed in AbstractKernelController@5a965654{null} at "ProxyFactory/platform-common-db-1.0.0-SNAPSHOT/UserDAOBean/UserDAOBean/local": org.jboss.ejb3.proxy.impl.factory.session.stateless.StatelessSessionLocalProxyFactory@54353aff
DEBUG [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase:228] (main) Adding RefAddr to Reference: Type "ProxyFactoryKey", Content "ProxyFactory/platform-common-db-1.0.0-SNAPSHOT/UserDAOBean/UserDAOBean/local"
DEBUG [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase:228] (main) Adding RefAddr to Reference: Type "EJB Container Name", Content "jboss.j2ee:jar=platform-common-db-1.0.0-SNAPSHOT.jar,name=UserDAOBean,service=EJB3"
DEBUG [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase:228] (main) Adding RefAddr to Default Local Reference: Type "Local Business Interface", Content "platform.db.dao.UserDAO"
DEBUG [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase:228] (main) Default Local Business View for EJB UserDAOBean to be bound into JNDI at "UserDAOBean/local"
DEBUG [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase:228] (main) Adding RefAddr to Reference: Type "ProxyFactoryKey", Content "ProxyFactory/platform-common-db-1.0.0-SNAPSHOT/UserDAOBean/UserDAOBean/local"
DEBUG [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase:228] (main) Adding RefAddr to Reference: Type "EJB Container Name", Content "jboss.j2ee:jar=platform-common-db-1.0.0-SNAPSHOT.jar,name=UserDAOBean,service=EJB3"
DEBUG [org.jboss.metadata.ejb.jboss.jndipolicy.plugins.JBossSessionPolicyDecorator:228] (main) Resolved JNDI Name for Interface platform.db.dao.UserDAO of type BUSINESS_LOCAL is UserDAOBean/local-platform.db.dao.UserDAO
DEBUG [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase:228] (main) Local Business View for platform.db.dao.UserDAO of EJB UserDAOBean to be bound into JNDI at "UserDAOBean/local-platform.db.dao.UserDAO"
INFO [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase:296] (main) Binding the following Entries in Global JNDI:
UserDAOBean/local - EJB3.x Default Local Business Interface
UserDAOBean/local-platform.db.dao.UserDAO - EJB3.x Local Business Interface
在慢速变体(无强制顺序)中,相同的 bean 看起来像这样:
DEBUG [org.jboss.ejb.txtimer.NoopPersistencePolicy:228] (main) Noop on listTimerHandles
FINE [sun.rmi.loader:212] (main) main: interfaces = [org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory], codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "java.lang.reflect.Proxy", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "org.jboss.proxy.ClientContainer", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "org.jboss.proxy.ClientMethodInterceptor", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "org.jboss.proxy.Interceptor", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "org.jboss.invocation.InvokerInterceptor", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "org.jboss.util.id.GUID", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "org.jboss.util.id.UID", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "org.jboss.util.id.VMID", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "[B", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "org.jboss.util.platform.PID", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "org.jboss.invocation.InvocationContext", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "java.util.HashMap", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "org.jboss.invocation.InvocationKey", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "java.lang.Integer", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "java.lang.Number", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
DEBUG [org.jboss.remoting.Client:228] (main) Client[1637220420:a5p1ca-kio86l-ha5dndsb-1-ha5do79z-9r].connect(null)
DEBUG [org.jboss.remoting.Client:228] (main) Client[1637220420:a5p1ca-kio86l-ha5dndsb-1-ha5do79z-9r] connected to InvokerLocator [socket://10.205.49.219:4446/?dataType=invocation&enableTcpNoDelay=true&marshaller=org.jboss.invocation.unified.marshall.InvocationMarshaller&unmarshaller=org.jboss.invocation.unified.marshall.InvocationUnMarshaller]
DEBUG [org.jboss.remoting.Client:228] (main) Client[1637220420:a5p1ca-kio86l-ha5dndsb-1-ha5do79z-9r] is connected
[blah blah, still same stuff...]
FINE [sun.rmi.loader:212] (main) main: name = "java.util.Properties", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "java.util.Hashtable", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
DEBUG [org.jboss.beans.metadata.plugins.AbstractInjectionValueMetaData:228] (main) jboss.j2ee:jar=platform-common-db-1.0.0-SNAPSHOT.jar,name=UserDAOBean,service=EJB3: Contextual injection usage (class -> classloader): interface javax.transaction.TransactionManager -> BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml} defined by AbstractPropertyMetaData@307d2e98{name=transactionManager value=AbstractInjectionValueMetaData@6a7e1606{value=null injectionType=BY_CLASS propertyMetaData=transactionManager}}
DEBUG [org.jboss.beans.metadata.plugins.AbstractInjectionValueMetaData:228] (main) jboss.j2ee:jar=platform-common-db-1.0.0-SNAPSHOT.jar,name=UserDAOBean,service=EJB3: Contextual injection usage (class -> classloader): interface org.jboss.jca.spi.ComponentStack -> BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml} defined by AbstractPropertyMetaData@7bd81a88{name=cachedConnectionManager value=AbstractInjectionValueMetaData@28b6163d{value=null injectionType=BY_CLASS propertyMetaData=cachedConnectionManager}}
DEBUG [org.jboss.beans.metadata.plugins.AbstractInjectionValueMetaData:228] (main) jboss.j2ee:jar=platform-common-db-1.0.0-SNAPSHOT.jar,name=UserDAOBean,service=EJB3: Contextual injection usage (class -> classloader): interface org.jboss.ejb3.timerservice.spi.TimerServiceFactory -> BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml} defined by AbstractPropertyMetaData@4a6e13ac{name=timerServiceFactory value=AbstractInjectionValueMetaData@cda761{value=null injectionType=BY_CLASS propertyMetaData=timerServiceFactory}}
FINE [sun.rmi.loader:212] (main) main: interfaces = [org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory], codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "java.lang.reflect.Proxy", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "org.jboss.proxy.ClientContainer", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
[blah blah, still same stuff...]
DEBUG [org.jboss.remoting.Client:228] (main) Client[1180505422:a5p1ca-kio86l-ha5dndsb-1-ha5do7d8-9w].connect(null)
DEBUG [org.jboss.remoting.Client:228] (main) Client[1180505422:a5p1ca-kio86l-ha5dndsb-1-ha5do7d8-9w] connected to InvokerLocator [socket://10.205.49.219:4446/?dataType=invocation&enableTcpNoDelay=true&marshaller=org.jboss.invocation.unified.marshall.InvocationMarshaller&unmarshaller=org.jboss.invocation.unified.marshall.InvocationUnMarshaller]
DEBUG [org.jboss.remoting.Client:228] (main) Client[1180505422:a5p1ca-kio86l-ha5dndsb-1-ha5do7d8-9w] is connected
FINE [sun.rmi.loader:212] (main) main: name = "java.util.Properties", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "java.util.Hashtable", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
INFO [org.jboss.ejb3.session.SessionSpecContainer:296] (main) Starting jboss.j2ee:jar=platform-common-db-1.0.0-SNAPSHOT.jar,name=UserDAOBean,service=EJB3
DEBUG [org.jboss.ejb3.tx.UserTransactionImpl:228] (main) new UserTx: org.jboss.ejb3.tx.UserTransactionImpl@921d7f9
DEBUG [org.jboss.ejb3.EJBContainer:228] (main) Linked java:comp/TransactionSynchronizationRegistry to JNDI name: java:TransactionSynchronizationRegistry
INFO [org.jboss.ejb3.EJBContainer:296] (main) STARTED EJB: platform.db.dao.bean.UserDAOBean ejbName: UserDAOBean
DEBUG [org.jboss.ejb3.session.SessionContainer:228] (main) Registered jboss.j2ee:jar=platform-common-db-1.0.0-SNAPSHOT.jar,name=UserDAOBean,service=EJB3 with org.jboss.aop.Dispatcher via InvokableContextClassProxyHack at key jboss.j2ee:jar=platform-common-db-1.0.0-SNAPSHOT.jar,name=UserDAOBean,service=EJB3
DEBUG [org.jboss.ejb3.common.registrar.plugin.mc.Ejb3McRegistrar:228] (main) Returning from name "org.jboss.ejb3.JndiRegistrar.Session.SLSBJndiRegistrar": org.jboss.ejb3.proxy.impl.jndiregistrar.JndiStatelessSessionRegistrar@62b512e7
DEBUG [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase:228] (main) Found Session Bean: UserDAOBean
DEBUG [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase:228] (main) Registering org.jboss.ejb3.proxy.impl.factory.session.stateless.StatelessSessionLocalProxyFactory@44b0dac3for EJB UserDAOBean under key "ProxyFactory/platform-common-db-1.0.0-SNAPSHOT/UserDAOBean/UserDAOBean/local"...
FINE [sun.rmi.loader:212] (main) main: interfaces = [org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory], codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "java.lang.reflect.Proxy", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "org.jboss.proxy.ClientContainer", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "org.jboss.proxy.ClientMethodInterceptor", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "org.jboss.proxy.Interceptor", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "org.jboss.invocation.InvokerInterceptor", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "org.jboss.util.id.GUID", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "org.jboss.util.id.UID", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "org.jboss.util.id.VMID", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "[B", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "org.jboss.util.platform.PID", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "org.jboss.invocation.InvocationContext", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "java.util.HashMap", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "org.jboss.invocation.InvocationKey", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "java.lang.Integer", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "java.lang.Number", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
DEBUG [org.jboss.remoting.Client:228] (main) Client[1410937402:a5p1ca-kio86l-ha5dndsb-1-ha5do7e0-9x].connect(null)
DEBUG [org.jboss.remoting.Client:228] (main) Client[1410937402:a5p1ca-kio86l-ha5dndsb-1-ha5do7e0-9x] connected to InvokerLocator [socket://10.205.49.219:4446/?dataType=invocation&enableTcpNoDelay=true&marshaller=org.jboss.invocation.unified.marshall.InvocationMarshaller&unmarshaller=org.jboss.invocation.unified.marshall.InvocationUnMarshaller]
DEBUG [org.jboss.remoting.Client:228] (main) Client[1410937402:a5p1ca-kio86l-ha5dndsb-1-ha5do7e0-9x] is connected
[blah blah, still same stuff...]
DEBUG [org.jboss.remoting.Client:228] (main) Client[980099834:a5p1ca-kio86l-ha5dndsb-1-ha5do7ii-a3].connect(null)
DEBUG [org.jboss.remoting.Client:228] (main) Client[980099834:a5p1ca-kio86l-ha5dndsb-1-ha5do7ii-a3] connected to InvokerLocator [socket://10.205.49.219:4446/?dataType=invocation&enableTcpNoDelay=true&marshaller=org.jboss.invocation.unified.marshall.InvocationMarshaller&unmarshaller=org.jboss.invocation.unified.marshall.InvocationUnMarshaller]
DEBUG [org.jboss.remoting.Client:228] (main) Client[980099834:a5p1ca-kio86l-ha5dndsb-1-ha5do7ii-a3] is connected
FINE [sun.rmi.loader:212] (main) main: name = "java.util.Properties", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
FINE [sun.rmi.loader:212] (main) main: name = "java.util.Hashtable", codebase = "", defaultLoader = BaseClassLoader@706a48e4{vfsfile:/home/jboss/admin-jboss/admin-jboss-dev-server/target/jboss5-admin-mk/server/admin/conf/jboss-service.xml}
DEBUG [org.jboss.ejb3.common.registrar.plugin.mc.Ejb3McRegistrar:228] (main) Installed in AbstractKernelController@77e3cabd{null} at "ProxyFactory/platform-common-db-1.0.0-SNAPSHOT/UserDAOBean/UserDAOBean/local": org.jboss.ejb3.proxy.impl.factory.session.stateless.StatelessSessionLocalProxyFactory@44b0dac3
DEBUG [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase:228] (main) Adding RefAddr to Reference: Type "ProxyFactoryKey", Content "ProxyFactory/platform-common-db-1.0.0-SNAPSHOT/UserDAOBean/UserDAOBean/local"
DEBUG [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase:228] (main) Adding RefAddr to Reference: Type "EJB Container Name", Content "jboss.j2ee:jar=platform-common-db-1.0.0-SNAPSHOT.jar,name=UserDAOBean,service=EJB3"
DEBUG [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase:228] (main) Adding RefAddr to Default Local Reference: Type "Local Business Interface", Content "platform.db.dao.UserDAO"
DEBUG [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase:228] (main) Default Local Business View for EJB UserDAOBean to be bound into JNDI at "UserDAOBean/local"
DEBUG [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase:228] (main) Adding RefAddr to Reference: Type "ProxyFactoryKey", Content "ProxyFactory/platform-common-db-1.0.0-SNAPSHOT/UserDAOBean/UserDAOBean/local"
DEBUG [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase:228] (main) Adding RefAddr to Reference: Type "EJB Container Name", Content "jboss.j2ee:jar=platform-common-db-1.0.0-SNAPSHOT.jar,name=UserDAOBean,service=EJB3"
DEBUG [org.jboss.metadata.ejb.jboss.jndipolicy.plugins.JBossSessionPolicyDecorator:228] (main) Resolved JNDI Name for Interface platform.db.dao.UserDAO of type BUSINESS_LOCAL is UserDAOBean/local-platform.db.dao.UserDAO
DEBUG [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase:228] (main) Local Business View for platform.db.dao.UserDAO of EJB UserDAOBean to be bound into JNDI at "UserDAOBean/local-platform.db.dao.UserDAO"
INFO [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase:296] (main) Binding the following Entries in Global JNDI:
UserDAOBean/local - EJB3.x Default Local Business Interface
UserDAOBean/local-platform.db.dao.UserDAO - EJB3.x Local Business Interface
如您所见,有许多 Remoting/RMI 调用。这就是部署一切所需的时间。我想知道如何解决这个问题,以便在不更改文件名的情况下仍然快速部署。正如我所说,部署仍然成功,并且在第一次需要时有正确的依赖关系解析,正如我在日志中看到的那样。我试过用EAR,但它是一样的。你能帮我解决这个问题吗?