本文所做配置根据JBoss 5.0.0beta3进行
对于EJB3远程调用连接池的配置,JBoss 5的配置文件与JBoss 4相比有些变化,步骤如下:
修改 $JBOSS_HOME/server/all/ejb3-connectors-service.xml, 初始内容如下:
<mbean code=" org.jboss.remoting.transport.Connector"
name="jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3">
<attribute name="InvokerLocator">socket://${jboss.bind.address}:3873</attribute>
<attribute name="Configuration">
<handlers>
<handler subsystem="AOP">org.jboss.aspects.remoting.AOPRemotingInvocationHandler</handler>
</handlers>
</attribute>
</mbean>
改为:
<mbean code="org.jboss.remoting.transport.Connector"
name=" jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3">
<attribute name="Configuration">
<config>
<invoker transport="socket">
<attribute name="numAcceptThreads">1</attribute>
<attribute name="maxPoolSize">1000</attribute>
<attribute name="clientMaxPoolSize" isParam="true">1000</attribute>
<attribute name="timeout" isParam="true">60000</attribute>
<attribute name="serverBindAddress">${jboss.bind.address}</attribute>
<attribute name="serverBindPort">3873</attribute>
<attribute name="backlog">200</attribute>
</invoker>
<handlers>
<handler subsystem="AOP"> org.jboss.aspects.remoting.AOPRemotingInvocationHandler</handler>
</handlers>
</config>
</attribute>
</mbean>
其中maxPoolSize,clientMaxPoolSize及 backlog根据需要调整。
没有评论:
发表评论