activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Buss <marco.b...@gmx.de>
Subject Re: problem with blobmessage in activemq 5.0
Date Sun, 24 Feb 2008 13:41:37 GMT
Iosev Perez Rivero schrieb:
> When i create blobmessage object and print the inputstream, printed NULL, why??? then
when i send the message the file not sending, the message sending empty.
>
>  
>
> Please may anybody help me??
>
>  
>
> Here is code:
>
>  
>
>    conn = (ActiveMQConnection)cf.createConnection();
>
>    session = (ActiveMQSession) conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
>
>    Destination destination = new ActiveMQQueue("Queue");
>
>    MessageProducer producer = session.createProducer(destination);
>
>    
>
>    BlobMessage message = session.createBlobMessage(new File("src\\BlobMessage\\file\\foto.jpg"));
>
>    
>
>    System.out.println(message.getInputStream());
>
>    
>
>    producer.send(message);
>
>  
>
>  
>
>  
>
> Ing. Iósev Pérez Rivero
>
> Dirección Técnica - IP
>
> Universidad de las Ciencias Informáticas
>
>  
>
>
>   
Hello.

What ist you initialisation URL? Did you run the Fileserver webapp or an 
Server wich supports the put command?

Mime
View raw message