On 28 June 2011 11:20, Jacek Laskowski <[email protected]> wrote: > On Mon, Jun 27, 2011 at 9:45 PM, Alasdair Nottingham <[email protected]> > wrote: > > > Overall based on this I think a more correct filter would be this: > > > > > (&(objectClass=*MBean)(|(objectClass=javax.management.MBeanRegistration)(jmx.objectname=))) > > I'm still learning and may be totally wrong, so am asking for excuse > in advance. I'd bet the book "OSGi in Action" and the spec itself (see > 3.2.7 Filter Syntax) say that to check for existence of an attribute > you should use present ::= attr ’=*’. Is that what the last filter is > supposed to achieve? >
The spec does indeed say that the query should be: (&(objectClass=*MBean)(|(objectClass=javax.management.MBeanRegistration)(jmx.objectname=*))) I'm also sure I've seen my previous example working. It is something I want to check into because I'm pretty sure the remote services assumes attr = can be used. I've no idea what OSGi in Action says. Alasdair > > Jacek > > -- > Jacek Laskowski > Java EE, functional languages and IBM WebSphere - http://blog.japila.pl > Warszawa JUG conference = Confitura (formerly Javarsovia) :: > http://confitura.pl > -- Alasdair Nottingham [email protected]
