Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Remote call of setAttribute() fails: msg#00034

Subject: Re: Remote call of setAttribute() fails


On 12/17/04 4:04 AM, "simone.bordet@xxxxxx" <simone.bordet@xxxxxx> wrote:

> Colin,
> 
>> It's a VERY simple test MBean with only one attribute.
>> 
>> public class Test implements TempMBean {
> 
> This is not an MBean.
> The class should be called Temp, or the management interface TestMBean.
> Also, it does not matter if the class has getter and setter: the interface
> must have them.
Simon,

Semantics m8 ;) You know what I mean though.
OK, here is the MBean...

public interface TestMBean {
        public void setMessage(String strMessage);
        public String getMessage();
}

I changed it from the original to remove the java.lang.Boolean -> boolean
translation problem mentioned by another replier.

With Burlap it fails but it appears to work fine using Hessian.
I think you guessed there is a problem with Burlap so what is causing it?

Cheers

-Colin



> 
>>     private boolean _bEnabled = false;
>> 
>>     public void setEnabled(boolean bEnabled)  { _bEnabled = bEnabled; }
>>     public boolean getEnabled()               { return _bEnabled; }
>>  }
>> 
>> I can launch the HTTP Adaptor and view it and set it and get the remote
>> notification in the Java Swing client.
>> 
>> I can set it via the Java Swing client if I use the HTTP Adaptor.
>> 
>> I can connect to the remote MBean server, get remote notifications, view
>> the
>> MBean, get it's attribute but cannot 'set' the attribute via the Burlap
>> connector.
> 
> It is working with hessian, and you get problems with burlap ?
> 
> Simon
> 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/


<Prev in Thread] Current Thread [Next in Thread>