dev@glassfish.java.net

Re: JMS Service Type Question

From: Jason Lee <jasondlee_at_sun.com>
Date: Wed, 23 Sep 2009 22:15:54 -0500

I was thinking that might be the case, but I wasn't able to confirm or
deny from the code. I'll work on other issues while I await Lloyd's
reply.

Thanks.

On Sep 23, 2009, at 7:21 PM, Anissa Lam wrote:

>
> 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_at_sun.com
>> Blog http://blogs.sun.com/jasondlee
>> Blog http://blogs.steeplesoft.com
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net For
> additional commands, e-mail: dev-help_at_glassfish.dev.java.net

         Jason Lee
Senior Java Developer
GlassFish Administration Console

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