Professional Documents
Culture Documents
BufferedReader;
2. import java.io.InputStreamReader;
3. import javax.naming.*;
4. import javax.jms.*;
5.
8. try
ry");
Se inicia la conecion
13. con.start();
Se establece el topico
22.
25. while(true)
26. {
29. if (s.equals("end"))
30. break;
31. msg.setText(s);
33. publisher.publish(msg);
35. }
Cierra la conecion
37. con.close();
39. }
40. }