7 Replies Latest reply on May 24, 2002 1:47 PM by roysun

    How to create a standlone server using JBossMX?

    roysun

      I am going to use JBossMX to create a standlone server which the better has auto deploy, logger, JNDI view, RMI adaptor, naming and security functionalities. Posible? Where I can find sample code?
      Thanks.

      Roy

        • 1. Re: How to create a standlone server using JBossMX?

          Yes this is possible.

          Here's an example jboss-service.xml

          [pre]
          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE server>

          <!-- ===================================================================== -->
          <!-- -->
          <!-- JBoss Server Configuration -->
          <!-- -->
          <!-- ===================================================================== -->





          <!-- ==================================================================== -->
          <!-- HTML Adapter -->
          <!-- ==================================================================== -->


          10

          8082


          <!-- ==================================================================== -->
          <!-- Server management -->
          <!-- ==================================================================== -->




          <!-- ==================================================================== -->
          <!-- Deployment Scanning -->
          <!-- ==================================================================== -->



          <depends optional-attribute-name="Deployer">jboss.system:service=MainDeployer

          org.jboss.deployment.DeploymentSorter

          org.jboss.deployment.scanner.DeploymentFilter

          5000


          ./deploy





          [/pre]


          With the following directory structure
          [pre]
          .:
          bin
          lib
          server

          ./bin:
          run.jar
          run.sh

          ./lib:
          concurrent.jar
          crimson.jar
          getopt.jar
          jaxp.jar
          jboss-boot.jar
          jboss-common.jar
          jboss-jmx.jar
          jboss-management.jar
          jboss-system.jar
          jmxri.jar
          jmxtools.jar
          log4j.jar

          ./server:
          default

          ./server/default:
          conf
          deploy

          ./server/default/conf:
          jboss-service.xml
          log4j.xml

          ./server/default/deploy:
          [/pre]

          Then just add the other bits that you need.
          NOTE: This is based on JBoss3.0RC3

          Regards,
          Adrian

          • 2. Re: How to create a standlone server using JBossMX?
            roysun

            Thank you very much. I'll try.
            Roy

            • 3. Re: How to create a standlone server using JBossMX?
              roysun

              Is there any reason RC3 does not deploy HTML Adaptor?

              Roy

              • 4. Re: How to create a standlone server using JBossMX?
                roysun

                I have the following code in jboss-service for JNDI services. I can not find them on Agent View, but I find them in listWaitingMBeans. Is that means they are not properly deployed?

                Roy

                &lt;!-- ==================================================================== --&gt;
                &lt;!-- JNDI --&gt;
                &lt;!-- ==================================================================== --&gt;

                &lt;mbean code="org.jboss.naming.NamingService"
                name="jboss:service=Naming"&gt;
                &lt;attribute name="Port"&gt;1099&lt;/attribute&gt;
                &lt;/mbean&gt;
                &lt;mbean code="org.jboss.naming.JNDIView"
                name="jboss:service=JNDIView"/&gt;

                • 5. Re: How to create a standlone server using JBossMX?

                  Yes,

                  It is waiting for the mbean classes.
                  You'll need jboss.jar and jnpserver.jar
                  to load those mbeans

                  Regards,
                  Adrian

                  • 6. Re: How to create a standlone server using JBossMX?
                    roysun

                    YEP. Started!
                    Thank you very much.

                    Roy

                    • 7. Re: How to create a standlone server using JBossMX?
                      roysun

                      When i deployed jmx-rmi-adapter.sar, I got jboss.service: type=Connector,name=RMI on Agent View. Is this service RMI Connector or RMI Adaptor, or BOTH? I check the .sar archave, it contains both code. But .xml is like the following




                      Do you think the type should be "Adaptor"?

                      Roy