|
From: Bordet, S. <Sim...@co...> - 2002-01-30 13:26:38
|
Hi,
> > > > I've added possibility to receive in the client=20
> notifications from
> a
> > > > remote MBeanServer.
> > > >
> > > > Listeners are always remote, but NotificationFilters may be
> > > serialized
> > > to
> > > > the server and be executed there.
> > > >
> > > > Is there any preference on how filters must be treated ?
> > > >
> > > > 1) Always as remote, like listeners (will be executed in the
> client)
> > > > 2) Always serialized to the server (will executed in the server)
> > > I'm sure this is a lot more Network efficient
> > >
> > > > 3) try first with 2, if fails fall through to 1
> > > When may this happen?
> >=20
> > When filter implementation is not serializable.
> Ok, then my vote is for 3
Eh, not that simple.
Look at this filter
class MyFilter implements NotificationFilter=20
{
public boolean isNotificationEnabled(Notification n)=20
{
List l =3D MBeanServerFactory.findMBeanServer(null);
for (Iterator i =3D l.iterator(); i.hasNext();)=20
{
MBeanServer s =3D (MBeanServer)i.next();
MBeanServerFactory.releaseMBeanServer(s);
}
return true;
}
}
This will force us to run the agent always under security manager...
We want to leave open this security hole, and go for a simpler
implementation ?
We want many remote calls for each notification ?
Mumble, mumble...
Simon
|