TopicPublisher pub = session.createPublisher(topic);
try
{
for(int i = 0; i < 10; i++)
pub.send(session.createTextMessage("Message nr " + i));
SimpleValue nondurable = (SimpleValue)component.getProperty("nonDurableSubscriptionsCount").getValue();
SimpleValue durable = (SimpleValue)component.getProperty("durableSubscriptionsCount").getValue();
SimpleValue all = (SimpleValue)component.getProperty("allSubscriptionsCount").getValue();
SimpleValue allMessageCount = (SimpleValue)component.getProperty("allMessageCount").getValue();