127128129130131132133134135136137
int i = 0; try { while(i!=100){ i++; TextMessage msg = os.createTextMessage("with topic2 "+i); prod1.send(msg); } } catch (Exception exc) { } }