dev@glassfish.java.net

Re: JMS Service Type Question

From: Anissa Lam <Anissa.Lam_at_Sun.COM>
Date: Wed, 23 Sep 2009 17:21:57 -0700

I think this is a bug.   Every object name has an attribute of "type",  eg in your case,

amx:pp=/domain/configs/config[server-config],type=jms-service

and this coincides with the  attribute you are looking for, which according to domain.xml  should be  "EMBEDDED".
<jms-service default-jms-host="default_JMS_host" type="EMBEDDED">

In fact,  if i use  jconsole to change the attribute "InitTimeoutInSeconds"  to  "66",   I see that domain.xml get updated to

      <jms-service init-timeout-in-seconds="77" default-jms-host="default_JMS_host" type="jms-service">

This is definitely wrong.
Lloyd will have to look at this tomorrow.

Anissa.


Jason Lee wrote:
I'm looking into this issue and I'm a bit confused:  https://glassfish.dev.java.net/issues/show_bug.cgi?id=9196

My domain.xml issue looks like this:

      <jms-service default-jms-host="default_JMS_host" type="EMBEDDED">
        <jms-host host="localhost" name="default_JMS_host" />
      </jms-service>

Just as the issue describes.  When I query AMX for the configuration information, I get this map:

{Parent=amx:pp=/domain/configs,type=config,name=server-config, AddresslistIterations=3, Type=jms-service, MqService=null, DefaultJmsHost=default_JMS_host, Property=[Ljavax.management.ObjectName;@1b1acdc3, Children=[Ljavax.management.ObjectName;@38ae5d26, ReconnectIntervalInSeconds=5, StartArgs=null, Name=, InitTimeoutInSeconds=60, ReconnectAttempts=3, ReconnectEnabled=true, JmsHost=[Ljavax.management.ObjectName;@3f6586dc, MqScheme=null, AddresslistBehavior=random}

Note that the Type attribute is "jms-service."  In looking at the object in jconsole, I don't see any of the possible valid values ("EMBEDDED", "LOCAL", "REMOTE").

I've done my best to trace the execution down through the innards of AMX, hoping to find some special handling with the "type" parameter since it's used in the AMX query string, but I didn't see anything obvious. Can someone familiar with this area shed some light on this?


Jason Lee
Senior Java Developer
GlassFish Administration Console

Sun Microsystems, Inc.
Phone x31197/+1 405-343-1964
Email jasondlee@sun.com
Blog http://blogs.sun.com/jasondlee
Blog http://blogs.steeplesoft.com