final String type = Long.toString(start);
/* Create a connection to the topic */
tc = tcf.createTopicConnection("system", "system");
/* Create a session on top of the connection which will be used only for
sending messages, transacted and with auto-acknowledge-mode*/
s_send = tc.createTopicSession(true, Session.AUTO_ACKNOWLEDGE);
/* Create sessions on top of the connection which will be used only for
receiving messages, transacted and with auto-acknowledge-mode */
s_rec1 = tc.createTopicSession(true, Session.AUTO_ACKNOWLEDGE);
s_rec2 = tc.createTopicSession(true, Session.AUTO_ACKNOWLEDGE);
/* start the connection */