dev@glassfish.java.net

Re: Improving QL speed by removing mbean log

From: Deepa Singh <Deepa.Singh_at_Sun.COM>
Date: Tue, 02 Aug 2005 16:43:03 -0500

Changes have been checked into for suppressing MBean test output as
default.In case one wants to run in verbose mode, they would have to
change property "verbose.mode" in
appserv-tests/sqetests/management/mejb/build.properties from "false" to
"true"

Qingqing Ouyang wrote:

> +1 (an enthusiastic one)
>
> Jeanfrancois Arcand wrote:
>
>> Hi,
>>
>> when the management test is run, it prints all kind of (unusefull..at
>> least for me :-)) mbean information. Since this info isn't required
>> for marking the test pass or fail, can we remove the hudge output? It
>> improve the test speed significantly. But maybe there is a reason for
>> printing this info?
>>
>> Thanks
>>
>> -- Jeanfrancois
>>
>>> Index: Client.java
>>> ===================================================================
>>> RCS file:
>>> /cvs/glassfish/appserv-tests/sqetests/management/mejb/client/Client.java,v
>>>
>>> retrieving revision 1.1.1.1
>>> diff -u -r1.1.1.1 Client.java
>>> --- Client.java 28 May 2005 00:40:15 -0000 1.1.1.1
>>> +++ Client.java 2 Aug 2005 17:04:30 -0000
>>> @@ -83,31 +83,6 @@
>>> attrNames[i] = attrInfo[i].getName();
>>> }
>>>
>>> - // Get attr values from MEJB and print them
>>> - try{
>>> - AttributeList attrs = mejb.getAttributes(name,
>>> attrNames);
>>> - for ( int i=0; i<attrs.size(); i++ ) {
>>> -
>>> - if (attrs.get(i) != null) {
>>> - System.out.println("TYPE = " +
>>> - attrs.get(i).getClass().getName());
>>> - }
>>> -
>>> - if (attrs.get(i) instanceof Attribute) {
>>> - Attribute attr = (Attribute)attrs.get(i);
>>> - System.out.println("Attribute name =
>>> "+attr.getName()- +"value
>>> = "+attr.getValue());
>>> - } else {
>>> - Object attr = attrs.get(i);
>>> - System.out.println("Attribute = " + attr);
>>> - }
>>> - }
>>> - }
>>> - catch(Exception exp){
>>> - //exp.printStackTrace();
>>> - System.out.println("***Exception occured while "+
>>> - "accessing mbean details: Keep
>>> continuing\n");
>>> - }
>>> System.out.println("=======================");
>>> }
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>

-- 
Deepa Singh
Sun Java Enterprise System 9.0
J2EE Core
MailStop: USCA14-304
Santa Clara,CA
x40277 +1 408 404 5144