activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Fernandez <>
Subject Re: Starting Jetty to serve blobs with embedded broker
Date Tue, 05 Aug 2008 13:10:20 GMT

Hi Eugeny,

You can try starting the embedded broker with a brokerURL that specifies a
config file, and have the config file include a <jetty> element. 

With this brokerURL the cfg file must be in the application’s CLASSPATH. 

With this one, you're specifying an absolute path to the cfg file.

Here's an example file with the <jetty> element. 

  <!-- Allows us to use system properties as variables in this configuration
file -->
 <broker brokerName="broker0" xmlns="">            
       <managementContext connectorPort="1599"
    <!-- The transport connectors ActiveMQ will listen to -->
      <transportConnector name="openwire" uri="tcp://localhost:61616" />     

<jetty xmlns="">
      <nioConnector port="8161" />

      <webAppContext contextPath="/admin"
resourceBase="${activemq.base}/webapps/admin" logUrlOnStart="true" />
      <webAppContext contextPath="/demo"
resourceBase="${activemq.base}/webapps/demo" logUrlOnStart="true" />
      <webAppContext contextPath="/fileserver"
resourceBase="${activemq.base}/webapps/fileserver" logUrlOnStart="true" />

Hope this helps. 

Joe - get a free ActiveMQ user guide

Eugeny N Dzhurinsky-2 wrote:
> Hello, all!
> Could somebody please advice how can I start the embedded Jetty server
> when
> starting ActiveMQ from the application using embedded brokers?
> I need to serve blobs, and looks like the default Jetty server is not
> started
> when broker is created, thus blobs aren't uploaded and
> BlobMessage.getInputStream()
> returns null.
> Thank you in advance!
> -- 
> Eugene N Dzhurinsky

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message