5 Replies Latest reply on Jun 21, 2013 10:04 AM by chinni888

    JBOSS EAP6.1 CLI script problem

    chinni888

      Hi,

                I am updating Standalone-full.xml using CLI. I want to add jgroups subsystem to Standalone-full.xml by using CLI. I have formed below commands in CLI but those are not working.

       

      /subsystem=jgroups/stack=tcp/transport=TRANSPORT:add(transport=[{"type"=>"TCP","socket-binding"=>"jgroups-tcp"}],protocols=["PING","MERGE2","FD_SOCK","FD","VERIFY_SUSPECT","BARRIER","pbcast.NAKACK2","UNICAST2","pbcast.STABLE","pbcast.GMS","UFC","MFC","FRAG2","RSVP"])

       

      /subsystem=jgroups/stack=tcpping:add/transport=TRANSPORT:add(type=TCP,socket-binding=jgroups-tcp):add-protocol(type=TCPPING):add-protocol(type=MERGE2):add-protocol(type=FD_SOCK,socket-binding=jgroups-tcp-fd):add-protocol(type=FD):add-protocol(type=VERIFY_SUSPECT):add-protocol(type=BARRIER):add-protocol(type=pbcast.NAKACK):add-protocol(type=UNICAST2):add-protocol(type=pbcast.STABLE):add-protocol(type=pbcast.GMS):add-protocol(type=UFC):add-protocol(type=MFC):add-protocol(type=FRAG2):add-protocol(type=RSVP)

       

       

      Also i want add one attribute to stateful tag,

        <subsystem xmlns="urn:jboss:domain:ejb3:1.3">

                  <session-bean>

                      <stateless>

                          <bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>

                      </stateless>

                      <stateful default-access-timeout="5000" cache-ref="simple" clustered-cache-ref="clustered"/>

                      <singleton default-access-timeout="5000"/>

                  </session-bean>

             

                  Here i want to add clustered-cache-ref="clustered" attribute to stateful tag. i created below commad and it is also not working,

      /subsystem=ejb3/session-bean=stateful:add(clustered-cache-ref=clustered)

       

       

      can anybody help me in solving this problem.

        • 1. Re: JBOSS EAP6.1 CLI script problem
          wdfink

          This is the wrong CLI syntax.

           

          You need to use

             /subsystem=ejb3:write-attribute(name=default-clustered-sfsb-cache, value="clustered")

          • 2. Re: JBOSS EAP6.1 CLI script problem
            chinni888

            Many thanks Fink...it is working...........

             

            Requesting you to help me validating the below commands also....

            iam trying to create jgroups subsystem with these commands.....the commands in bold are not working....

             

            /extension=org.jboss.as.clustering.jgroups:add

            /subsystem=jgroups:add(default-stack=udp)
            /subsystem=jgroups:add(default-stack=tcp)

             

            /subsystem=jgroups/stack=tcp/transport=TRANSPORT:add(transport=[{"type"=>"TCP","socket-binding"=>"jgroups-tcp"}],protocols=["PING","MERGE2","FD_SOCK","FD","VERIFY_SUSPECT","BARRIER","pbcast.NAKACK2","UNICAST2","pbcast.STABLE","pbcast.GMS","UFC","MFC","FRAG2","RSVP"])

             

            /subsystem=jgroups/stack=tcpping:add/transport=TRANSPORT:add(type=TCP,socket-binding=jgroups-tcp):add-protocol(type=TCPPING):add-protocol(type=MERGE2):add-protocol(type=FD_SOCK,socket-binding=jgroups-tcp-fd):add-protocol(type=FD):add-protocol(type=VERIFY_SUSPECT):add-protocol(type=BARRIER):add-protocol(type=pbcast.NAKACK):add-protocol(type=UNICAST2):add-protocol(type=pbcast.STABLE):add-protocol(type=pbcast.GMS):add-protocol(type=UFC):add-protocol(type=MFC):add-protocol(type=FRAG2):add-protocol(type=RSVP)

            • 3. Re: JBOSS EAP6.1 CLI script problem
              chinni888

              Many thanks Fink...it is working...........

               

              Requesting you to help me validating the below commands also....

              iam trying to create jgroups subsystem with these commands.....the commands in bold are not working....

               

              /extension=org.jboss.as.clustering.jgroups:add

              /subsystem=jgroups:add(default-stack=udp)
              /subsystem=jgroups:add(default-stack=tcp)

               

              /subsystem=jgroups/stack=tcp/transport=TRANSPORT:add(transport=[{"type"=>"TCP","socket-binding"=>"jgroups-tcp"}],protocols=["PING","MERGE2","FD_SOCK","FD","VERIFY_SUSPECT","BARRIER","pbcast.NAKACK2","UNICAST2","pbcast.STABLE","pbcast.GMS","UFC","MFC","FRAG2","RSVP"])

               

               

              /subsystem=jgroups/stack=tcpping:add/transport=TRANSPORT:add(type=TCP,socket-binding=jgroups-tcp):add-protocol(type=TCPPING):add-protocol(type=MERGE2):add-protocol(type=FD_SOCK,socket-binding=jgroups-tcp-fd):add-protocol(type=FD):add-protocol(type=VERIFY_SUSPECT):add-protocol(type=BARRIER):add-protocol(type=pbcast.NAKACK):add-protocol(type=UNICAST2):add-protocol(type=pbcast.STABLE):add-protocol(type=pbcast.GMS):add-protocol(type=UFC):add-protocol(type=MFC):add-protocol(type=FRAG2):add-protocol(type=RSVP)

               

              /subsystem=jgroups/stack=udp:add(transport=[{"type"=>"UDP","socket-binding"=>"jgroups-udp"}],protocols=["PING","MERGE2","FD_SOCK","FD","VERIFY_SUSPECT","BARRIER","pbcast.NAKACK2","UNICAST2","pbcast.STABLE","pbcast.GMS","UFC","MFC","FRAG2","RSVP"])

              • 4. Re: JBOSS EAP6.1 CLI script problem
                wdfink

                You can use the following sequence:

                 

                /socket-binding-group=standard-sockets/socket-binding=jgroups-udp:add(fixed-port=false,multicast-address="\${jboss.default.multicast.address:230.0.0.4}",multicast-port=45688,port=55200) 

                /socket-binding-group=standard-sockets/socket-binding=jgroups-udp-fd:add(port=54200) 

                /extension=org.jboss.as.clustering.jgroups:add 

                /subsystem=jgroups:add(default-stack=udp) 

                batch 

                /subsystem=jgroups/stack=udp:add(transport={"type" => "UDP", "socket-binding" => "jgroups-udp"}) 

                /subsystem=jgroups/stack=udp:add-protocol(type=PING) 

                /subsystem=jgroups/stack=udp:add-protocol(type=MERGE2) 

                /subsystem=jgroups/stack=udp:add-protocol(type=FD_SOCK,socket-binding=jgroups-udp-fd) 

                /subsystem=jgroups/stack=udp:add-protocol(type=FD) 

                /subsystem=jgroups/stack=udp:add-protocol(type=VERIFY_SUSPECT) 

                /subsystem=jgroups/stack=udp:add-protocol(type=BARRIER) 

                /subsystem=jgroups/stack=udp:add-protocol(type=pbcast.NAKACK) 

                /subsystem=jgroups/stack=udp:add-protocol(type=UNICAST2) 

                /subsystem=jgroups/stack=udp:add-protocol(type=pbcast.STABLE) 

                /subsystem=jgroups/stack=udp:add-protocol(type=pbcast.GMS) 

                /subsystem=jgroups/stack=udp:add-protocol(type=UFC) 

                /subsystem=jgroups/stack=udp:add-protocol(type=MFC) 

                /subsystem=jgroups/stack=udp:add-protocol(type=FRAG2) 

                /subsystem=jgroups/stack=udp:add-protocol(type=RSVP) 

                run-batch 

                1 of 1 people found this helpful
                • 5. Re: JBOSS EAP6.1 CLI script problem
                  chinni888

                  Many thanks. It is working by following the commands you gave.

                   

                  I also did that using the below commands,

                   

                    /extension=org.jboss.as.clustering.jgroups:add

                   

                  /subsystem=jgroups:add(default-stack=udp)

                   

                  /subsystem=jgroups/stack=udp:add(transport={"type" => "UDP", "socket-binding" => "jgroups-udp"}, protocols=[{"type" => "PING"}, {"type" => "MERGE2"},{"type" => "FD_SOCK","socket-binding" => "jgroups-udp-fd"}, {"type" => "FD"},{"type" => "VERIFY_SUSPECT"}, {"type" => "BARRIER"},{"type" => "pbcast.NAKACK"}, {"type" => "UNICAST2"},{"type" => "pbcast.STABLE"},  {"type" => "pbcast.GMS"},{"type" => "UFC"},{"type" => "MFC"},{"type" => "FRAG2"}, {"type" => "RSVP"}])

                   

                  /subsystem=jgroups/stack=tcp:add(transport={"type" => "TCP", "socket-binding" => "jgroups-tcp"}, protocols=[{"type" => "MPING","socket-binding" => "jgroups-mping"}, {"type" => "MERGE2"},{"type" => "FD_SOCK","socket-binding" => "jgroups-tcp-fd"}, {"type" => "FD"},{"type" => "VERIFY_SUSPECT"}, {"type" => "BARRIER"},{"type" => "pbcast.NAKACK"}, {"type" => "UNICAST2"},{"type" => "pbcast.STABLE"}, {"type" => "pbcast.GMS"},{"type" => "UFC"},{"type" => "MFC"},{"type" => "FRAG2"}, {"type" => "RSVP"}])