[jboss-dev-forums] [Design of AOP on JBoss (Aspects/JBoss)] - Re: Modularising the appserver bootstrap

kabir.khan@jboss.com do-not-reply at jboss.com
Tue Sep 16 12:47:19 EDT 2008


These are some of the ServiceMBean-/JBossNotificationBroadcasterSupport methods.


  |    public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
  |    public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException
  |    public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
  |    public DeploymentInfo getDeploymentInfo() throws JMException
  |    public MBeanNotificationInfo[] getNotificationInfo()
  |    public MBeanServer getServer()
  |    public ObjectName getServiceName()
  |    public int getState()
  |    public String getStateString()
  |    public void jbossInternalLifecycle(String method) throws Exception
  |    public void postDeregister()
  |    public void preDeregister() throws Exception
  |    public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
  | 
The only ones I seem to be using are these:

  |    public void sendNotification(Notification notification)
  |    public long nextNotificationSequenceNumber()
  |    public void postRegister(Boolean registrationDone)
  | 
>From the previous code it seems that things like postRegister() will get called for an MC bean in AS. But how to implement the following for an MC bean?

  |    public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
  |    public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException
  |    public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
  |    public DeploymentInfo getDeploymentInfo() throws JMException
  |    public MBeanNotificationInfo[] getNotificationInfo()
  |    public MBeanServer getServer()
  |    public ObjectName getServiceName()
  |    public int getState()
  |    public String getStateString()
  |    public void jbossInternalLifecycle(String method) throws Exception
  | 
Are they required at all?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176874#4176874

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176874



More information about the jboss-dev-forums mailing list