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


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


    網站導航:
     
    主站蜘蛛池模板: 亚洲国产综合自在线另类| 久久国产成人精品国产成人亚洲 | 四虎影视永久免费观看| 亚洲最大中文字幕无码网站 | 麻豆精品成人免费国产片| 久久精品国产亚洲Aⅴ香蕉| 尤物视频在线免费观看| 国产av无码专区亚洲国产精品 | 99久久免费精品高清特色大片| 国产国拍亚洲精品mv在线观看| 怡红院免费的全部视频| 午夜影视日本亚洲欧洲精品一区| 久久成人免费大片| 久久亚洲春色中文字幕久久久| 2022久久国产精品免费热麻豆| 亚洲欧洲日产国码在线观看| 免费福利网站在线观看| 亚洲成AV人片高潮喷水| 亚洲人成无码网WWW| 好吊色永久免费视频大全 | 亚洲一区二区三区成人网站| 国产极品美女高潮抽搐免费网站| 无码精品人妻一区二区三区免费| 亚洲男同帅GAY片在线观看| 日本免费一区二区久久人人澡| 亚洲国产综合在线| 麻豆成人精品国产免费| 九九九国产精品成人免费视频| 精品久久久久久亚洲精品| 国产精品免费观看| 亚洲av成本人无码网站| 中文字幕在亚洲第一在线| 88av免费观看| 亚洲av永久无码天堂网| 日本亚洲国产一区二区三区| 亚洲一级毛片免费在线观看| 亚洲成a∨人片在无码2023| 国产亚洲精品国看不卡| 国产va精品免费观看| 免费中文字幕视频| 久久精品亚洲中文字幕无码麻豆|