Hi Parisila,

I've tried your code on jboss-3.2.3 but I don't get any notification from my MBean.
The bean is a simple one that contains only one attribute, named Message and extends 
the ServiceMBeanSupport.

import org.jboss.system.ServiceMBeanSupport;
  | 
  | public class SimpleTest extends ServiceMBeanSupport
  |         implements SimpleTestMBean {
  | 
  |     private String message = null;
  | 
  |      public String getMessage(){
  |         return message;
  |     }
  | 
  |      public void setMessage(String s){
  |          message = s;
  |      }

To test if a notification occurs I use beside your client another one that change the 
Message attribute value.

import org.jboss.jmx.adaptor.rmi.RMIAdaptor;
  | import javax.management.ObjectName;
  | import javax.management.Attribute;
  | 
  | public class SendNotification {
  | 
  |     public static void main(String[] args) throws Exception {
  |         for (int i = 0; i < 10; i++) {
  |             RMIAdaptor server = RMIAdaptorFactory.getRMIAdaptor("localhost", 
"1099");
  |             ObjectName name = new ObjectName("JBossSar:service=JBossTestService");
  |             server.setAttribute(name, new Attribute("Message", "value" + i));
  |         }
  |     }
  | } 

Now when I start the JmxListenerClient I don't get any "Notification occured ......" 
message.

What I'm doing wrong?

Thank you in advance for you help.



<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825548#3825548";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3825548>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to