|
From: Bordet, S. <Sim...@co...> - 2002-01-30 13:38:23
|
Hi,
> > Look at this filter
> >=20
> > class MyFilter implements NotificationFilter
> > {
> > public boolean isNotificationEnabled(Notification n)
> > {
> > List l =3D MBeanServerFactory.findMBeanServer(null);
> > for (Iterator i =3D l.iterator(); i.hasNext();)
> > {
> > MBeanServer s =3D (MBeanServer)i.next();
> > MBeanServerFactory.releaseMBeanServer(s);
> > }
> > return true;
> > }
> > }
> Would you upload this code to the Agent?=20
If you serialize the filter it is uploaded to the agent, yes.
> How using for instance a web
> server in the codebase?
Not following.
> I think this will be always a problem using RMI, and you=20
> would normally
> run it with a security manager.=20
No, if the filter is remote.
> There are many other things=20
> that can be
> done if you are uploading code (spyware, viruses, etc...)
Yes, so ?
Remote filters ?
Simon
|