Title: RE: AW: AW: [jBoss-User] Using ZOAP?

Hi,

The stuff in jboss.jcml is read at server startup and written at server shutdown.  So, during startup, jboss.conf is read to find out which mbeans to load, then jboss.jcml is read to find out how to configure those mbeans, then the mbeans are started.  So if a section in jboss.jcml has a name which doesn't correspond to the name of an mbean, it is not applied to any mbean.  Then when the server shuts down, it just goes through all of the mbeans which are loaded, and writes their current configuration to jboss.jcml.  Now, if there are no mbeans which have your two lines as part of their configuration, those two lines will obviously not be written.

It's done this way so that you can configure mbeans using some management tool while they are running (like the web interface which starts on port 8082 when you start jboss) and have these configuration changes persist beyond the next server restart.

So you need an entry in jboss.conf for ZOAP, then you need to find out what name this is ending up with (the web interface could come in useful here) then you need to put a corresponding entry in jboss.jcml, setting any attributes that need to be set.

For instance, the container factory has this entry in jboss.conf:

<MLET CODE = "org.jboss.ejb.ContainerFactory" ARCHIVE="jboss.jar,ejb.jar,jnp-client.jar,ejxeditor.jar,ejxjboss.jar" CODEBASE="../../lib/ext/">

</MLET>

This causes the JMX agent to load the container factory, but does not set any parameters on it.

Now if I take a look at the web interface, I see that the container factory has the JMX name of

EJB:service=ContainerFactory

So now in jboss.jcml I need to add an mbean section with this name.  And it looks like this:

<mbean name="EJB:service=ContainerFactory">
  <attribute name="VerifyDeployments">true</attribute>
  <attribute name="MetricsEnabled">false</attribute>
  <attribute name="VerifierVerbose">true</attribute>
</mbean>

Now, I don't have ZOAP running, so I can't give you any specific tips, but I hope this general explanation of how jboss.conf and jboss.jcml interact will ease you frustration.

Tom
--
Tom Cook
Systems Development
Australian Submarine Corporation
Mersey Road
Outer Harbour

+61 8 8348 7645

"From the instant I picked your book up, until the moment I put it down, I was convulsed with laughter.  I fully intend to read it one day."

        - Groucho Marx

    -----Original Message-----
    From:   Jeffrey Wescott [SMTP:[EMAIL PROTECTED]]
    Sent:   Friday, January 12, 2001 7:52 AM
    To:     jBoss
    Cc:     [EMAIL PROTECTED]
    Subject:        Re: AW: AW: [jBoss-User] Using ZOAP?

    <sigh>  I'm very frustrated.  I don't quite understand why the lines are
    "automatically" removed for me.  I add those two lines right before the
    container factory and then they are deleted when the server starts up. 
    It seems that jboss.jcml is written by the server.  I'm using the
    embedded Tomcat / Jboss distribution 2.0 FINAL.

    Nothing appears in the log file about zoap at all, except that it was
    adding zoap.jar to the classpath.

    I'm about to give up ...

    ++Jeff


    Jung , Dr. Christoph wrote:

    > Hi Jeff,
    >
    > -----Urspr�ngliche Nachricht-----
    >
    >> Von: Jeffrey Wescott [mailto:[EMAIL PROTECTED]]
    >> Gesendet: Freitag, 5. Januar 2001 20:40
    >> An: jBoss
    >> Betreff: Re: AW: [jBoss-User] Using ZOAP?
    >
    >> 1- Is there a release download or just the CVS snapshot that I found?
    >
    >
    > Just the cvs-snapshot which should have been synced with the committed .jcml
    > solution
    > (see the mailings regarding the update script) ...
    >
    >> 2- As far as I could find, there was only an etc/conf/jboss.conf. 
    >> Perhaps it's the wrong filename.  I tried adding the mbean lines to
    >> jboss.jcml, anyway, and on server startup, the lines are "automatically"
    >> removed by the running server.  How (in)convenient.
    >
    >
    > pfff, I tried to verify this with my jboss build ... works correctly. The
    > mbean line I used
    > was
    >
    >  <!-- Add your custom MBeans here -->
    >
    >       <mbean code="org.jboss.zoap.HttpServer" name="zoap:server=HTTP">
    >       </mbean>
    >
    > Any difference to what you added?
    >
    > Best,
    > CGJ
    >
    >
    > --
    > --------------------------------------------------------------
    > To subscribe:        [EMAIL PROTECTED]
    > To unsubscribe:      [EMAIL PROTECTED]
    > List Help?:          [EMAIL PROTECTED]
    >
    >
    >
    >




    --
    --------------------------------------------------------------
    To subscribe:        [EMAIL PROTECTED]
    To unsubscribe:      [EMAIL PROTECTED]
    List Help?:          [EMAIL PROTECTED]

Reply via email to