String selector; MessageConsumer receiver; selector = new String ("(SomeProperty = 1000)"); receiver = session.createConsumer (oQueue, selector);