activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From OnlyLove <v.plussh...@gmail.com>
Subject Blob Message is a skin game??? not real ?!??
Date Mon, 13 Aug 2007 09:38:17 GMT

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---tf4260141s2354.html#a12123406
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Mime
View raw message