PublisherQos publisher_qos = new PublisherQos();
PublisherListener publisher_listener
= new MyPublisherListener();
participant.get_default_publisher_qos(publisher_qos);
Publisher publisher = null;
try {
publisher = participant.create_publisher(publisher_qos,
publisher_listener,
StatusKind.STATUS_MASK_ALL);
} catch (RETCODE_ERROR err) {
}