activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugeny N Dzhurinsky <>
Subject Broker upload url is null?
Date Thu, 07 Aug 2008 09:00:46 GMT
Hello, everybody!

I had configured the internal broker with this descriptor

    <broker brokerName="broker0" xmlns="">
            <managementContext connectorPort="1599"
        <!-- The transport connectors ActiveMQ will listen to -->
            <transportConnector name="openwire" uri="tcp://localhost:1235" />
    <jetty xmlns="">
            <nioConnector port="8161" />
            <webAppContext contextPath="/admin"
                resourceBase="webapps/admin" logUrlOnStart="true" />
            <webAppContext contextPath="/demo"
                resourceBase="webapps/demo" logUrlOnStart="true" />
            <webAppContext contextPath="/fileserver"
                resourceBase="webapps/fileserver" logUrlOnStart="true" />

Pretty simple, the broker is started with this piece of code:

final BrokerService broker = BrokerFactory.createBroker(new URI(

and the JMS client is started with this piece of code:

final ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(
final ActiveMQConnection connection = (ActiveMQConnection) factory
System.out.println("Using upload url = "
        + connection.getBlobTransferPolicy().getBrokerUploadUrl());

for some weird reason the upload URL is not propagated by the broker to the client, 
and in the output of the client I can see 

Using upload url = null

and then on each try to send and receive BlobMessage the stream is null.

I tried to set the upload url explicitly with


but this doesn't work either.

Could somebody please help?

Eugene N Dzhurinsky

View raw message