# MessageSender.java Sample

This topic inludes the source code for the MessageSender.java 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.Control; 04 05 public interface MessageSender extends Control 06 { 07 08 void deleteAllViaQueue() throws javax.jms.JMSException; 09 10 void add20ViaTopic(int currentNum) throws javax.jms.JMSException; 11 12 void add20ViaQueue(int currentNum) throws javax.jms.JMSException; 13 }`