Then your component will need to create an exchange (an exchange can contain several messages between a service provider and a consumer).
<br/><br/>First, you create an exchange, then you add it a content (XML payload, attachments) and eventually, you send it.
<br/>An example is available with the <a href="http://websvn.ow2.org/filedetails.php?repname=petals&path=%2Ftrunk%2Fdev%2Fcomponents-sls%2Fpetals-bc-filetransfer%2Fsrc%2Fmain%2Fjava%2Forg%2Fow2%2Fpetals%2Fbc%2Ffiletransfer%2Fservice%2Fconsume%2FExternalEventProcessor.java" target="_top" rel="nofollow" link="external">File Transfer component</a>.
<br/><br/>An even more simple component is the <a href="http://websvn.ow2.org/filedetails.php?repname=petals&path=%2Ftrunk%2Fdev%2Fcomponents-sls%2Fpetals-se-quartz%2Fsrc%2Fmain%2Fjava%2Forg%2Fow2%2Fpetals%2Fse%2Fquartz%2Fjob%2FEmitSignalJob.java" target="_top" rel="nofollow" link="external">Quartz SE</a>. I think these examples provide what you need. :) 
        
        <br/>
        <br/>
        <hr noshade="noshade" size="1" color="#cccccc" />
        <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://forum.petalslink.com/send-a-message-to-a-BC-component-tp2832164p2833714.html">http://forum.petalslink.com/send-a-message-to-a-BC-component-tp2832164p2833714.html</a>
        </div>
        <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em">
                To start a new topic under Users (get help, provide help), email ml-node+2681628-1333396262-385891@n3.nabble.com <br/>
                To unsubscribe from Users (get help, provide help), <a href="http://forum.petalslink.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&amp;node=2681628&amp;code=dXNlcnNAZm9ydW0ucGV0YWxzbGluay5vcmd8MjY4MTYyOHwtOTE3MDU0NjU4">click here</a>.
        </div>