God.I have the same problem. 
According to what James mentioned, I use  File/Inputstream for the blob
messages, but still can't get anything. It seems that the inputstream
received from the ActiveMQ is null. who knows what's wrong?


OnlyLove wrote:
> 
> I send the blob message using...
> 
> BlobMessage message = session.createBlobMessage(new
> URL("http://localhost:8080/test.pdf";));
> 
> then, I close the tomcat server, and try to get the message from the amq
> broker, 
> fail ! (it seems that the blob message just send the url to the broker,
> but not the real data of the file!)
> 
> Exception in thread "main" java.net.ConnectException: Connection refused:
> connect
>       at java.net.PlainSocketImpl.socketConnect(Native Method)
>       at java.net.PlainSocketImpl.doConnect(Unknown Source)
>       at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
>       at java.net.PlainSocketImpl.connect(Unknown Source)
>       at java.net.Socket.connect(Unknown Source)
>       at java.net.Socket.connect(Unknown Source)
>       at sun.net.NetworkClient.doConnect(Unknown Source)
>       at sun.net.www.http.HttpClient.openServer(Unknown Source)
>       at sun.net.www.http.HttpClient.openServer(Unknown Source)
>       at sun.net.www.http.HttpClient.<init>(Unknown Source)
>       at sun.net.www.http.HttpClient.New(Unknown Source)
>       at sun.net.www.http.HttpClient.New(Unknown Source)
>       at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown
> Source)
>       at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown
> Source)
>       at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
>       at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
> Source)
>       at java.net.URL.openStream(Unknown Source)
>       at
> org.apache.activemq.command.ActiveMQBlobMessage.getInputStream(ActiveMQBlobMessage.java:129)
>       at BlobMessagesQueue.BlobConsumer.main(BlobConsumer.java:24)
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Blob-Message-is-a-skin-game----not-real--%21---tf4260124s2354.html#a12137483
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to