下载JBoss EJB3.0
jboss-EJB-3.0_RC9-FD.zip.
l Set JBOSS_HOME environment variable
l Unzip jboss-EJB-3.0_RC9-FD.zip to a directory. For example: “C:\jboss-EJB-3.0_RC9-FD”
l Enter this directory and use ant to run installation
配置JBoss
l Edit %JBOSS_HOME%\server\all\conf\jboss-service.xml
set "CallByValue" attributes as 'true' in NamingService as below
… … … … … … … … … … … …
<mbean code="org.jboss.naming.NamingService"
name="jboss:service=Naming"
xmbean-dd="resource:xmdesc/NamingService-xmbean.xml">
<attribute name="CallByValue">true</attribute>
… … … … … … … … … … … …
l Edit %JBOSS_HOME%\server\all\deploy\ear-deployer.xml
set "Isloated" and "CallByValue" attributes as true as below
… … … … … … … … … … … …
<attribute name="Isolated">true</attribute>
<attribute name="CallByValue">true</attribute>
… … … … … … … … … … … …
l Edit %JBOSS_HOME%\server\all\deploy\jbossweb-tomcat55.sar\META-INF\jboss-service.xml
set "Java2ClassLoadingCompliance" and "UseJbossWebLoader" attributes as true as below
… … … … … … … … … … … …
<attribute name="Java2ClassLoadingCompliance">true</attribute>
<attribute name="UseJBossWebLoader">true</attribute>
… … … … … … … … … … … …
l Edit %JBOSS_HOME%\bin\run.bat
… … … … … … … … … … … …
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m -XX:MaxPermSize=256m
… … … … … … … … … … … …
C:> run.bat –c all
You can use startjboss.bat directly.