Re: BlobMessage - How to make it work?

2008-06-05 Thread Marco Buss
;>> http://xyz.16.233.50:61618?jms.blobTransferPolicy.uploadUrl=http://xyz.16.233.50:8161/fileserver/ >>>> >>>> >>>> >>>> >>>> ... >>>> 4) Here is how I create the BlobMessage: >>>> blobMessage = activeMQSession.createBlobMessage(new File("path to the >>>> local file system here")); >>>> When I call blobMessage.getURL() I get null. >>>> If I create the message with a URL as argument: >>>> blobMessage = activeMQSession.createBlobMessage(new URL("url here")); >>>> the call to getURL() return a valid value. >>>> 5) I know there is an option to use BlobTransferPolicy. Do I have to >>>> use it or the default is good enough? >>>> Please advice. >>>> >>>> Thanks >>>> >>>> Avishay >>>> >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/BlobMessage---How-to-make-it-work--tp17644495s2354p17674184.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: BlobMessage - How to make it work?

2008-06-05 Thread ttmdev
>>> >>> >>> ... >>> 4) Here is how I create the BlobMessage: >>> blobMessage = activeMQSession.createBlobMessage(new File("path to the >>> local file system here")); >>> When I call blobMessage.getURL() I get null. >>> If I create the message with a URL as argument: >>> blobMessage = activeMQSession.createBlobMessage(new URL("url here")); >>> the call to getURL() return a valid value. >>> 5) I know there is an option to use BlobTransferPolicy. Do I have to use >>> it or the default is good enough? >>> Please advice. >>> >>> Thanks >>> >>> Avishay >>> >> >> > > -- View this message in context: http://www.nabble.com/BlobMessage---How-to-make-it-work--tp17644495s2354p17672886.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: BlobMessage - How to make it work?

2008-06-05 Thread ttmdev
;> local file system here")); >> When I call blobMessage.getURL() I get null. >> If I create the message with a URL as argument: >> blobMessage = activeMQSession.createBlobMessage(new URL("url here")); >> the call to getURL() return a valid value. >> 5) I know there is an option to use BlobTransferPolicy. Do I have to use >> it or the default is good enough? >> Please advice. >> >> Thanks >> >> Avishay >> > > -- View this message in context: http://www.nabble.com/BlobMessage---How-to-make-it-work--tp17644495s2354p17671420.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: BlobMessage - How to make it work?

2008-06-04 Thread balderman
t is the right way to do it. >>>>> More info: >>>>> 1) The message sender and the message consumer run on my PC. >>>>> 2) The message broker run on a different machine. >>>>> 3) I am using Spring JMS template. Here is a config snippet of the >>>>> Sender: >>>>> (I replaced some part of the IP with xyz - but this is the IP of the >>>>> message broker) >>>>> ... >>>>> >>>> class="org.apache.activemq.pool.PooledConnectionFactory" >>>>> destroy-method="stop"> >>>>> >>>>> >>>>> >>>>> >>>>> http://xyz.16.233.50:61618?jms.blobTransferPolicy.uploadUrl=http://xyz.16.233.50:8161/fileserver/ >>>>> >>>>> >>>>> >>>>> >>>>> ... >>>>> 4) Here is how I create the BlobMessage: >>>>> blobMessage = activeMQSession.createBlobMessage(new File("path to the >>>>> local file system here")); >>>>> When I call blobMessage.getURL() I get null. >>>>> If I create the message with a URL as argument: >>>>> blobMessage = activeMQSession.createBlobMessage(new URL("url here")); >>>>> the call to getURL() return a valid value. >>>>> 5) I know there is an option to use BlobTransferPolicy. Do I have to >>>>> use it or the default is good enough? >>>>> Please advice. >>>>> >>>>> Thanks >>>>> >>>>> Avishay >>>>> >>>> >>>> >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/BlobMessage---How-to-make-it-work--tp17644495s2354p17655386.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: BlobMessage - How to make it work?

2008-06-04 Thread Marco Buss
;>>> ... >>>> >>> class="org.apache.activemq.pool.PooledConnectionFactory" >>>> destroy-method="stop"> >>>> >>>> >>>> >>>> >>>> http://xyz.16.233.50:61618?jms.blobTransferPolicy.uploadUrl=http://xyz.16.233.50:8161/fileserver/ >>>> >>>> >>>> >>>> >>>> ... >>>> 4) Here is how I create the BlobMessage: >>>> blobMessage = activeMQSession.createBlobMessage(new File("path to the >>>> local file system here")); >>>> When I call blobMessage.getURL() I get null. >>>> If I create the message with a URL as argument: >>>> blobMessage = activeMQSession.createBlobMessage(new URL("url here")); >>>> the call to getURL() return a valid value. >>>> 5) I know there is an option to use BlobTransferPolicy. Do I have to >>>> use it or the default is good enough? >>>> Please advice. >>>> >>>> Thanks >>>> >>>> Avishay >>>> >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/BlobMessage---How-to-make-it-work--tp17644495s2354p17655237.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: BlobMessage - How to make it work?

2008-06-04 Thread balderman
.. >>> 4) Here is how I create the BlobMessage: >>> blobMessage = activeMQSession.createBlobMessage(new File("path to the >>> local file system here")); >>> When I call blobMessage.getURL() I get null. >>> If I create the message with a URL as argument: >>> blobMessage = activeMQSession.createBlobMessage(new URL("url here")); >>> the call to getURL() return a valid value. >>> 5) I know there is an option to use BlobTransferPolicy. Do I have to use >>> it or the default is good enough? >>> Please advice. >>> >>> Thanks >>> >>> Avishay >>> >> >> > > -- View this message in context: http://www.nabble.com/BlobMessage---How-to-make-it-work--tp17644495s2354p17646660.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: BlobMessage - How to make it work?

2008-06-04 Thread balderman
File("path to the >> local file system here")); >> When I call blobMessage.getURL() I get null. >> If I create the message with a URL as argument: >> blobMessage = activeMQSession.createBlobMessage(new URL("url here")); >> the call to getURL() return a valid value. >> 5) I know there is an option to use BlobTransferPolicy. Do I have to use >> it or the default is good enough? >> Please advice. >> >> Thanks >> >> Avishay >> > > -- View this message in context: http://www.nabble.com/BlobMessage---How-to-make-it-work--tp17644495s2354p17645544.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: BlobMessage - How to make it work?

2008-06-04 Thread Marco Buss
all to getURL() return a valid value. > 5) I know there is an option to use BlobTransferPolicy. Do I have to use > it or the default is good enough? > Please advice. > > Thanks > > Avishay > -- View this message in context: http://www.nabble.com/BlobMessage---How-to-make-it-work--tp17644495s2354p17645127.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: BlobMessage - How to make it work?

2008-06-04 Thread balderman
get null. > If I create the message with a URL as argument: > blobMessage = activeMQSession.createBlobMessage(new URL("url here")); > the call to getURL() return a valid value. > 5) I know there is an option to use BlobTransferPolicy. Do I have to use > it or the default is

BlobMessage - How to make it work?

2008-06-04 Thread balderman
e BlobTransferPolicy. Do I have to use it or the default is good enough? Please advice. Thanks Avishay -- View this message in context: http://www.nabble.com/BlobMessage---How-to-make-it-work--tp17644495s2354p17644495.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.