Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Let us execute the Chapter3 sample application that was opened up at the beginning of this chapter. Follow these steps:
In JBoss Developer Studio, click Run and select Run As and Run on Server. Alternatively you can press Alt + Shift + X, followed by R.
You can see the server runtime has been pre-selected. Choosing the Always use this server when running this project check box will always use this runtime and this dialog will not appear again.
Click Next. A window with the project pre-configured to run on this server is shown. Ensure that we have only our project Chapter3 selected to the right hand side.
The server runtime will be started up (if not already started) and the ESB file will be deployed to the server runtime.
Select the src folder, expand it till the SendJMSMessage.java file is displayed in the tree. Now click Run, select Run As and Java Application.
The entire ESB message contents will be printed in the console as follows: