Java Reference
In-Depth Information
try
{
Attribute[] values = ( Attribute[] ) list.toArray();
for( int i = 0; i< values.length; i++ )
{
setAttribute( values[ i ] );
rvalue.add( values[ i ] );
}//for
}
catch( Exception e )
{
e.printStackTrace();
}
return rvalue;
}
public Object getAttribute( String name )
throws AttributeNotFoundException,
MBeanException,
ReflectionException
{
try
{
if( name.equals( "State" ) )
{
Object temp = ejb.getState();
return temp;
}
else
throw new AttributeNotFoundException( name );
}
catch( Exception e )
{
throw new MBeanException( e );
}
}
public AttributeList getAttributes( String[] names )
{
AttributeList rvalue = new AttributeList();
try
{
String[] list = names;
for( int i = 0; i< list.length; i++ )
{
String attName = list[i];
rvalue.add( new Attribute( attName,
getAttribute( attName ) ) );
Search WWH ::




Custom Search