Author: ruwan Date: Tue Jan 27 18:28:18 2009 New Revision: 29694 URL: http://wso2.org/svn/browse/wso2?view=rev&revision=29694
Log: samples_setup_guide completed ---- jruby jar file location has to be changed to an orbit bundle Modified: trunk/esb/java/docs/xdoc/samples_setup_guide.xml Modified: trunk/esb/java/docs/xdoc/samples_setup_guide.xml URL: http://wso2.org/svn/browse/wso2/trunk/esb/java/docs/xdoc/samples_setup_guide.xml?rev=29694&r1=29693&r2=29694&view=diff ============================================================================== --- trunk/esb/java/docs/xdoc/samples_setup_guide.xml (original) +++ trunk/esb/java/docs/xdoc/samples_setup_guide.xml Tue Jan 27 18:28:18 2009 @@ -96,13 +96,17 @@ (or another JMS provider with configuration) and any HTTPS examples would require a JDK version 1.5 or later. </p> +<p>Once you setup ant go to the bin direcotry of the distribution and run +the build.xml file resides on that directory using ant. You could do this +by typing 'ant' on a console in this directory.</p> + <p></p> <p>Note*: The samples and the documentation assumes that you are running the ESB in DEBUG mode. You can switch from the default INFO log messages to DEBUG log messages by changing the line "log4j.category.org.apache.synapse=INFO" as "log4j.category.org.apache.synapse=DEBUG" in the -webapp/WEB-INF/classes/conf/log4j.properties file. </p> +webapps/ROOT/WEB-INF/classes/log4j.properties file. </p> <h2 id="Understand">Understanding the Samples </h2> @@ -118,7 +122,7 @@ </tr> <tr> <td>ant stockquote </td> - <td>./wso2-esb.sh -sample <n> </td> + <td>./wso2server.sh -Desb.sample=<n> </td> <td>SimpleStockQuoteService </td> </tr> <tr> @@ -158,9 +162,9 @@ receive and display the last sale price for a stock symbol. </p> <pre xml:space="preserve">ant stockquote [-Dsymbol=IBM|MSFT|SUN|..] [-Dmode=quote | customquote | fullquote | placeorder | marketactivity] - [-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService] - [-Dtrpurl=http://localhost:8280] [-Dprxurl=http://localhost:8280] - [-Dpolicy=../../repository/conf/sample/resources/policy/policy_1.xml]</pre> + [-Daddurl=http://localhost:9000/services/SimpleStockQuoteService] + [-Dtrpurl=http://localhost:8280/] [-Dprxurl=http://localhost:8280/] + [-Dpolicy=../../repository/samples/resources/policy/policy_1.xml]</pre> <p>The client is able to operate in the following modes, and send the payloads listed below as SOAP messages: </p> @@ -303,7 +307,7 @@ <pre xml:space="preserve">ant jmsclient -Djms_type=text -Djms_dest=dynamicQueues/JMSTextProxy -Djms_payload="24.34 100 IBM" ant jmsclient -Djms_type=pox -Djms_dest=dynamicQueues/JMSPoxProxy -Djms_payload=MSFT ant jmsclient -Djms_type=binary -Djms_dest=dynamicQueues/JMSFileUploadProxy - -Djms_payload=./../../repository/conf/sample/resources/mtom/asf-logo.gif</pre> + -Djms_payload=./../../repository/samples/resources/mtom/asf-logo.gif</pre> <p></p> @@ -344,12 +348,12 @@ and can be built and deployed using Ant from each service directory. </p> <p></p> -<pre xml:space="preserve">u...@host:/tmp/wso2esb-1.7/samples/axis2Server/src/SimpleStockQuoteService$ ant +<pre xml:space="preserve">u...@host:/tmp/wso2esb-2.0/samples/axis2Server/src/SimpleStockQuoteService$ ant Buildfile: build.xml ... build-service: .... - [jar] Building jar: /tmp/wso2esb-1.7/samples/axis2Server/repository/services/SimpleStockQuoteService.aar + [jar] Building jar: /tmp/wso2esb-2.0/samples/axis2Server/repository/services/SimpleStockQuoteService.aar BUILD SUCCESSFUL Total time: 3 seconds</pre> @@ -412,18 +416,18 @@ <p></p> <p>To start the WSO2 ESB with the sample default configuration, execute the -wso2-esb.bat or wso2-esb.sh script found in the /bin directory. This starts +wso2server.bat or wso2server.sh script found in the /bin directory. This starts up an instance of the ESB using the Synapse and Axis2 configuration files -located in the conf directory. The repository/conf/samples directory contains +located in the conf directory. The repository/samples directory contains the sample configurations available as synapse_sample_<n>.xml files. To -start a specific sample configuration of the ESB, use the '-sample <n>' +start a specific sample configuration of the ESB, use the '-Desb.sample=<n>' switch as follows:synapse_sample_<n>.xml files. To start a specific -sample configuration of the ESB, use the '-sample <n>' switch as +sample configuration of the ESB, use the '-Desb.sample=<n>' switch as follows: </p> <p></p> -<pre xml:space="preserve">wso2-esb.bat -sample <n> -wso2-esb.sh -sample <n></pre> +<pre xml:space="preserve">wso2server.bat -Desb.sample=<n> +wso2server.sh -Desb.sample=<n></pre> <p></p> @@ -440,7 +444,7 @@ listener configuration. If you are using a JMS provider other than ActiveMQ, this configuration should be updated to reflect your environment. Once uncommented, the default configuration should be as follows. To enable JMS -for the ESB, the webapp/WEB-INF/classes/conf/axis2.xml must be updated. To +for the ESB, the conf/axis2.xml must be updated. To enable JMS support for the sample Axis2 server, the samples/axis2Server/repository/conf/axis2.xml file must be updated. </p> @@ -473,7 +477,7 @@ <p></p> <p>To enable the mail transport for samples, you need to uncomment the mail -transport sender configuration in the webapp/WEB-INF/classes/conf/axis2.xml. +transport sender configuration in the conf/axis2.xml. Uncomment the MailTransportSender sample configuration and make sure it points to a valid SMTP configuration for any actual scenarios. </p> @@ -628,7 +632,7 @@ for all BSF supported scripting languages may not be bundled by default with the ESB distribution. Before you use some script mediators, you may need to manually add the required .jar files to the lib -directory('webapp/WEB-INF/lib'), and optionally perform other installation +directory('lib/extensions'), and optionally perform other installation tasks as may be required by the individual scripting language. This is detailed in the following sections. </p> _______________________________________________ Esb-java-dev mailing list [email protected] https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev
