[esb-java-dev] Re: [esb-java-user] Running the ESB as an Embedded Tomcat Server or a web application

Asankha C. Perera asankha at wso2.com
Wed Aug 8 00:56:26 PDT 2007


Paul

Since the ESB changes the synapse.xml etc at runtime, these files and 
folders (such as registry) should remain in the file system for 
manipulation by the ESB runtime. Thus we need to go with an extracted 
WAR distribution. What we have done is create a single distribution of 
the ESB that holds the deployable WAR component as well as the other 
files and folders. Since the ESB can run an embedded Tomcat, we ship it 
in a separate folder to support the 'embedded distribution'. If one 
wants to deploy the ESB on an existing Tomcat or other J2EE server, they 
can simply point to the WAR module and deploy.

thanks
asankha

Paul Fremantle wrote:
> Indika
>
> Can you please ensure that the Nightly Builds page on wso2.org 
> includes the WAR distro?
>
> Thanks
> Paul
>
> indika wrote:
>> hi all
>>
>> Jetty Server and the Jetty transports had been removed from the ESB 
>> in the current SVN. Now ESB can be run as an embedded tomcat server 
>> or it can be deployed as a web application.
>>
>>   1.
>>
>>      To run as an Embedded Server ...just run the wso2-esb.sh or the
>>      wso2-esb.bat . The default context path is /esb and it can be
>>      changed from editing the server-web.xml .
>>
>>   2.
>>
>>      To deploy as a web application
>>
>> eg : tomcat
>>
>>         1.
>>
>>            add some configuration properties to the server.xml of the
>>            tomcat
>>
>>               1.
>>
>>                  add a SSL connector
>>
>>                  eg:
>>
>>                  <Connector port="9443" maxHttpHeaderSize="8192"
>>                  maxThreads="150" minSpareThreads="25"
>>                  maxSpareThreads="75" enableLookups="false"
>>                  disableUploadTimeout="true" acceptCount="100"
>>                  scheme="https" secure="true"
>>
>>                  clientAuth="false" sslProtocol="TLS"
>>                  
>> keystoreFile="/@esb.home@/webapp/WEB-INF/classes/conf/identity.jks"
>>                  keystorePass="password" />
>>
>>               2.
>>
>>                  add a context path to the host
>>
>>                  eg :
>>
>>                  <Context path="/esb docBase="@esb.home@/webapp"/>
>>
>>               3.
>>
>>                  add an init-param to the StartUpServlet. The web.xml
>>                  is located in the @esb.home@/webapp/WEB-INF
>>
>>                  <init-param>
>>
>>                  <param-name>esb.home</param-name>
>>
>>                  <param-value>@esb.home@</param-value>
>>
>>                  </init-param>
>>
>>                  esb,home – the absolute path to the ESB binary
>>                  distribution
>>
>>
>> thanks
>>
>> indika
>>
>> _______________________________________________
>> Esb-java-user mailing list
>> Esb-java-user at wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/esb-java-user
>>
>




More information about the Esb-java-dev mailing list