<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)  編輯  收藏


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


    網站導航:
    博客園   IT新聞   Chat2DB   C++博客   博問  
     
    主站蜘蛛池模板: 亚洲宅男永久在线| 爱情岛论坛免费视频| 十八禁视频在线观看免费无码无遮挡骂过| 国产在线观看片a免费观看| 亚洲乱色熟女一区二区三区丝袜| 最新亚洲卡一卡二卡三新区| 国产成人精品无码免费看| 亚洲国产成人久久精品99 | 免费人成在线观看播放国产 | 在线看片免费人成视久网| 亚洲午夜成人精品电影在线观看 | 亚洲精品色在线网站| 99久久99久久精品免费看蜜桃| 日本亚洲国产一区二区三区| 午夜亚洲乱码伦小说区69堂| 成人免费一区二区无码视频| 91亚洲导航深夜福利| 久久国产乱子精品免费女| 久久青青草原亚洲av无码| 国产亚洲视频在线| 看全色黄大色大片免费久久| 亚洲中文字幕在线无码一区二区| 免费成人在线视频观看| 亚洲中文字幕在线第六区| 特级av毛片免费观看| 国产成人免费手机在线观看视频| 性xxxx黑人与亚洲| 又黄又爽又成人免费视频| 亚洲春色另类小说| 久久精品一本到99热免费| 亚洲av中文无码乱人伦在线播放| 久青草视频在线观看免费| 亚洲狠狠爱综合影院婷婷| 污污视频网站免费观看| 四虎国产精品免费久久影院| 亚洲AV无码一区二区三区久久精品 | 免费欧洲毛片A级视频无风险| 亚洲成a人无码亚洲成av无码| 97人伦色伦成人免费视频| 2019亚洲午夜无码天堂| 2021久久精品免费观看|