<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    敬的世界

    常用鏈接

    統計

    最新評論

    Running multiple instances of JBoss on the same server

    Sometimes it is useful to run more than one instance of JBoss on the same server. Other instances can be set up for development, testing or for quality assurance, etc.

    ConfiguringMultipleJBossInstancesOnOneMachine on the JBoss wiki has the basic info but does not seem to be up to date for the newer servers (4.2.x+).

    Before setting up another instance, other outside resources may also have to be 'cloned' if it is possible that they may conflict, such as setting up another instance of a database with a separate connection url and matching datasource for JBoss.

    The basic steps are as follows:

    1) Add port-bindings.xml file for binding service port definitions. This file has the same content as jboss sample-bindings.xml available from the wiki.

    Rename to "port-bindings.xml" and save to $JBOSS_HOME/server directory.

    2) The binding service manager needs to be enabled in conf/jboss-service.xml for instances that are not using the default ports.

    Remove the comments to enable the "ServiceBindingManager" mbean and modify the content as below:

    "ServerName" attribute should reference a port configuration in port-bindings.xml and "StoreURL" should point to the port-bindings.xml file


    <mbean code="org.jboss.services.binding.ServiceBindingManager"
    ???? name="jboss.system:service=ServiceBindingManager">
    ???? <attribute name="ServerName">ports-01</attribute>
    ???? <attribute name="StoreURL">file:../server/port-bindings.xml</attribute>
    ???? <attribute name="StoreFactoryClassName">
    ?????? org.jboss.services.binding.XMLServicesStoreFactory
    ???? </attribute>
    </mbean>

    the next few changes are not mentioned in jboss wiki documentation

    3) Under "Socket transport Connector", in the "Configuration" section, serverBindPort must be changed to another value or it will conflict with the default(4446)

    <mbean code="org.jboss.remoting.transport.Connector"
    ????????? name="jboss.remoting:service=Connector,transport=socket"
    ????????? display-name="Socket transport Connector">
    ...

    <attribute name="Configuration">

    ...

    ?????? <attribute name="serverBindPort">4446</attribute>

    4) And in
    /deploy/ejb3.deployer/META-INF/jboss-service.xml,
    for the remoting.transport.Connector mbean, port 3873 must be changed to another value or it will conflict with the default.

    ??? <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>

    ?

    5) Also, any startup scripts in $JBOSS_HOME/bin may have to be cloned with different debug ports if remote debugging is enabled.

    In summary the directory structure for setting up two other instances would be something like the below with added port-bindings.xml and modifications in the filenames in bold.



    $JBOSS_HOME/server/port-bindings.xml
    $JBOSS_HOME/server/default
    $JBOSS_HOME/server/node1
    $JBOSS_HOME/server/node1/conf/jboss-service.xml
    $JBOSS_HOME/server/node1/deploy/ejb3.deployer/META-INF/jboss-service.xml
    $JBOSS_HOME/server/node2
    $JBOSS_HOME/server/node2/conf/jboss-service.xml
    $JBOSS_HOME/server/node2/deploy/ejb3.deployer/META-INF/jboss-service.xml

    Separate instances are run with "run -c node1" etc. and applications accessed with urls like:

    http://localhost:8080/myapp/
    http://localhost:8180/myapp/
    http://localhost:8280/myapp/

    posted on 2008-11-17 04:26 picture talk 閱讀(293) 評論(0)  編輯  收藏


    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 免费视频精品一区二区三区| 91精品成人免费国产| 免费中文字幕不卡视频| 久久不见久久见免费影院www日本| 亚洲av无码乱码国产精品fc2| 和日本免费不卡在线v| 欧洲精品码一区二区三区免费看| 亚洲欧洲∨国产一区二区三区| 最近免费中文字幕大全高清大全1 最近免费中文字幕mv在线电影 | 久久久久国产亚洲AV麻豆| 中国极品美軳免费观看| 亚洲人成电影青青在线播放| 深夜国产福利99亚洲视频| 污污网站免费观看| 日韩亚洲翔田千里在线| 亚洲v高清理论电影| 日韩免费观看一级毛片看看| 免费黄网站在线看| 老司机亚洲精品影院在线观看 | 亚洲v高清理论电影| | 亚洲一区免费观看| 国产精品亚洲综合网站| 亚洲国产成人资源在线软件| 不卡精品国产_亚洲人成在线| 久久精品免费一区二区喷潮| 久久99热精品免费观看动漫| 免费VA在线观看无码| 亚洲AV成人影视在线观看| 亚洲国产精品久久久久| 亚洲情侣偷拍精品| 国产精品免费视频一区| 香蕉97超级碰碰碰免费公| 秋霞人成在线观看免费视频| 免费精品国产自产拍在线观看| 中文字幕亚洲精品无码| 亚洲VA成无码人在线观看天堂| 亚洲精品无码你懂的网站| 国产美女被遭强高潮免费网站 | 亚洲大尺度无码无码专区| 亚洲成av人片不卡无码久久|