<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: Simple Deploy of JBOSS esb
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/kamilkhan">Kamil Khan</a> in <i>JBoss ESB Development</i> - <a href="http://community.jboss.org/message/567804#567804">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi Sandeep,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>If you are using Eclipse plugin, here are the simple steps...</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>1)Create a New ESB Project</p><p>File >> New >> Others >> ESB</p><p><a href="http://community.jboss.org/servlet/JiveServlet/showImage/2-567804-10508/1.jpg"><span> http://community.jboss.org/servlet/JiveServlet/downloadImage/2-567804-10508/450-450/1.jpg </span></a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Give an appropriate name to the project. Provide the Target Runtime and JBossESB Runtime.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>2) You will see the designer UI.</p><p><a href="http://community.jboss.org/servlet/JiveServlet/showImage/2-567804-10509/6.jpg"><span> http://community.jboss.org/servlet/JiveServlet/downloadImage/2-567804-10509/450-323/6.jpg </span></a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>3) Let's build a simple JMS Provider for this example.</p><p>- Click on Add >> JMS Provider</p><p>- Put the Name, Connection Factory and Channel ID. (This channel ID will be used later to listen to this provider)</p><p>- Specify the Filter with Destination Name and Type ('Queue' in this case)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>4) Now, let's add a new Service to the ESB</p><p>Provide the Name and category for the Service.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>- Add a JMS Listener to the Service.</p><p>- Provide a Name to this Listener. Also give the Channel ID used for the Provider.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>- Now, you can add a list of Actions to this Service. (Action Pipeline)</p><p>- Let's create a custom java class file for this purpose. You can also use one of the many inbuilt classes.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>     <em>package myPack;</em></strong><em><br/>     import java.io.BufferedReader;<br/>     import java.io.InputStreamReader;<br/>     import java.io.IOException;<br/>     import org.jboss.soa.esb.actions.AbstractActionPipelineProcessor;<br/>     import org.jboss.soa.esb.actions.ActionProcessingException;<br/>     import org.jboss.soa.esb.helpers.ConfigTree;<br/>     import org.jboss.soa.esb.message.Message;</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>     public class <strong>ServiceClass</strong> extends AbstractActionPipelineProcessor {</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>         private String info;<br/>         public ServiceClass (ConfigTree config) {}<br/>    <br/>         public Message process(Message m) throws ActionProcessingException {<br/>             System.out.println("Enter your name:");<br/>             try{<br/>                 BufferedReader br = new BufferedReader (new InputStreamReader(System.in));<br/>                 info = br.readLine();<br/>             }<br/>             catch (Exception e) {<br/>                 System.out.println("Error: " +e.toString());<br/>             }<br/>             System.out.println("Hello " +info);<br/>             return null;<br/>         }<br/>     }</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Provide these Name and Class (myPack.ServiceClass in the above example) to the Action in the Service</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>5) Now create a deployment.xml file in jboss-esb's folder.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>     <?xml version="1.0" encoding="UTF-8"?><br/>     <jbossesb-deployment><br/>          <depends>jboss.esb:deployment=jbossesb.esb</depends><br/>     </jbossesb-deployment></em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>6) Also, you will need to create the Queue. You can directly create a jbm-queue-service.xml in your esbcontent.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>     <?xml version="1.0" encoding="UTF-8"?><br/>     <server><br/>          <mbean code="org.jboss.jms.server.destination.QueueService" name="jboss.esb.destination:service=Queue,name=One" xmbean-dd="xmdesc/Queue-xmbean.xml"><br/>                    <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer<br/>                    </depends><br/>          </mbean><br/>      </server></em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>THAT'S IT !! <span> :) </span></p><p>Your first ESB Project is ready !!</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/567804#567804">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss ESB Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2032">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>