<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 閱讀(290) 評論(0)  編輯  收藏


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


    網站導航:
     
    主站蜘蛛池模板: 亚洲日韩中文字幕在线播放| 拔擦拔擦8x华人免费久久 | 成年人网站免费视频| 亚洲成A人片在线观看无码不卡| 一级美国片免费看| 亚洲综合精品网站在线观看| 欧亚一级毛片免费看| 亚洲AV无码乱码在线观看牲色| 白白色免费在线视频| 亚洲人成网站在线观看青青| 中国精品一级毛片免费播放| 亚洲精品成人片在线观看精品字幕 | 亚洲A丁香五香天堂网| 一级一黄在线观看视频免费| 亚洲AV无码码潮喷在线观看| 一级毛片免费观看不卡的| 亚洲无人区视频大全| 四虎影视大全免费入口| 免费国产a理论片| 亚洲精品夜夜夜妓女网| 免费观看AV片在线播放| 亚洲暴爽av人人爽日日碰| 亚洲精品无码久久毛片| 99视频有精品视频免费观看| 亚洲精品第一综合99久久| 午夜亚洲av永久无码精品| 久草免费福利在线| 亚洲视频在线观看免费视频| 99视频在线精品免费观看6| 黄网站色成年片大免费高清| 亚洲国产精华液网站w| 国拍在线精品视频免费观看| 成人午夜影视全部免费看| 久久亚洲精品无码| 好大好硬好爽免费视频| 国产高潮久久免费观看| 亚洲日韩乱码中文无码蜜桃| 一本色道久久88亚洲综合| 97av免费视频| 日本高清不卡中文字幕免费| 亚洲精品自在线拍|