# SendToTopicControl.jcx Sample

This topic inludes the source code for the SendToTopicControl.jcx Sample.

## Sample Location

This sample is located in the following directory in your WebLogic Workshop installation:

BEA_HOME/weblogic81/samples/workshop/SamplesApp/EJBs_ClientApps/messageDriven/

## Sample Source Code

`01 package messageDriven; 02 03 import com.bea.control.*; 04 import java.io.Serializable; 05 06 /** 07 * @jc:jms send-type="topic" send-jndi-name="jms.SamplesAppMDBTopic" 08 * connection-factory-jndi-name="weblogic.jws.jms.QueueConnectionFactory" 09 */ 10 public interface sendToTopicControl extends JMSControl,com.bea.control.ControlExtension 11 { 12 /** 13 * this method will send a javax.jms.TextMessage to send-jndi-name 14 */ 15 public void sendTextMessage(String payload); 16 static final long serialVersionUID = 1L; 17 }`