Why not delete the file when BlobMessage has been consumed?

2007-09-06 Thread pplive
I produce a BlobMessage to broker, then the binary file would be saved in the fileserver(inside jetty). However, even when I consumed that BlobMessage and get the binary file, the file saved in the fileserver still exists!! Named :ID_MyConputer-3581-1189147531234-0_0_1_1_1. Why not delete it ? -

Re: Looking for Help ActiveMQ and Jetty

2007-09-06 Thread chago
FWIW, I can't reproduce the timing issue... It seems your original code runs fine on my setup. Keep in mind that I am using a different version of amq.js. (See JIRA issue http://issues.apache.org/activemq/browse/AMQ-1377 AMQ-1377 . ) Find the debug log and see if there were any exceptions or st

Re: Looking for Help ActiveMQ and Jetty

2007-09-06 Thread chago
Try this: http://www.w3.org/TR/html4/strict.dtd";> Observatory amq.uri='amq'; var myHandler = { rcvMessage: function(message) { alert("received " + message);

Re: Strict order of messages with redelivery

2007-09-06 Thread James Strachan
On 9/6/07, Juergen Mayrbaeurl <[EMAIL PROTECTED]> wrote: > > Hi! > > Our application has to make sure that all consumers with durable topic > subscriptions get messages in strict order even when a message has to be > delivered. > E.g. > Publisher puts message 1 to 10 on topic. Consumer opens a sess

Re: Missing messages in multithreaded producer

2007-09-06 Thread James Strachan
Could you try with a more recent release; say at least 4.1.1? There have been numerous bug fixes since 4.1 On 9/6/07, tendlu <[EMAIL PROTECTED]> wrote: > > Using ActiveMQ 4.1 > > I have a producer that does the following - > > 1. main thread creates a Connectionfactory using tcp > 2. creates a few

Re: PooledConnectionFactory - Spring - Loadbalancing in a network

2007-09-06 Thread James Strachan
On 9/6/07, Olivier OTTAVI <[EMAIL PROTECTED]> wrote: > That will result in easier connection managment between the nodes of the > network and even load of each brokers. I would like to be able to scale the > network of brokers without scaling automatically the producers. Like 2 > producers and 3 br

Re: Help! Missing messages in Multithreaded producer

2007-09-06 Thread James Strachan
On 9/7/07, tendlu <[EMAIL PROTECTED]> wrote: > Not all messages(persistent) to a queue are sent to the broker if messages > are sent from multiple threads. Each thread creates its own connection and > session. > > Please let me know if I am missing something or is this a bug? That sounds wrong; do

Re: Looking for Help ActiveMQ and Jetty

2007-09-06 Thread Zanderfax
Ok, It looks like the webpage is talking via the servlet, I am seeing post and get messages in the log file when I hit the send button on my page. Below is the HTML I am using: Observatory amq.uri='amq'; var myHandler = { rcvMessage: functi

Re: Looking for Help ActiveMQ and Jetty

2007-09-06 Thread Zanderfax
I tried them, but I could not get them to work. Sorry for all the dumb questions. J chago wrote: > > That's correct. Have you tried the examples in web demo? > > > Zanderfax wrote: >> >> So I don't have to configure anything on the Jetty side to have the >> topics available? >> > > --

Re: Looking for Help ActiveMQ and Jetty

2007-09-06 Thread chago
That's correct. Have you tried the examples in web demo? Zanderfax wrote: > > So I don't have to configure anything on the Jetty side to have the topics > available? > -- View this message in context: http://www.nabble.com/Looking-for-Help-ActiveMQ-and-Jetty-tf4379195s2354.html#a12533912 Se

Re: Looking for Help ActiveMQ and Jetty

2007-09-06 Thread Zanderfax
So I don't have to configure anything on the Jetty side to have the topics available? J chago wrote: > > When using the javascript client (amq.js) you subscribe to topics and > queues in your javascript code. For example, in the chat.js file when the > 'join' button is pressed, an event fires

Re: Looking for Help ActiveMQ and Jetty

2007-09-06 Thread chago
When using the javascript client (amq.js) you subscribe to topics and queues in your javascript code. For example, in the chat.js file when the 'join' button is pressed, an event fires that is coded as: amq.addListener('chat', 'topic://CHAT.DEMO', chatHandlerCallback); Any messages posted to tha

Help! Missing messages in Multithreaded producer

2007-09-06 Thread tendlu
Not all messages(persistent) to a queue are sent to the broker if messages are sent from multiple threads. Each thread creates its own connection and session. Please let me know if I am missing something or is this a bug? -- View this message in context: http://www.nabble.com/Help%21-Missing-m

Re: Looking for Help ActiveMQ and Jetty

2007-09-06 Thread Zanderfax
Ok, I understand that. Next question, how do I define what queue I want to watch? I have tried to follow the docs on the Jetty page, but I am not sure that I have the right things in the jetty.xml and jetty-plus.xml files. Or is that not where you set that up? The docs are not very clear on thi

Re: Looking for Help ActiveMQ and Jetty

2007-09-06 Thread ttmdev
You use the http: scheme to connect your client to a remote or external broker. You also have available other schemes like https:, tcp:, and ssl: to connect to a remote broker. Just depends what protocol you want to use. The vm: scheme is used to start an intra-JVM or embedded broker. So if you

Re: Looking for Help ActiveMQ and Jetty

2007-09-06 Thread Zanderfax
So if my broker is running on server bob, I would change the value to vm://bob:1234 or would it be http://bob:1234? J chago wrote: > > If you download ActiveMQ, the web demo module contains a few demos that > use Jetty with an embedded broker talking to web pages using the amq.js > script fil

ActiveMq Connection errors in NMS when Redelivery Policy set

2007-09-06 Thread re.mark
If you specifiy a broker uri of the following format in creating an ActiveMQ.ConnectionFactory: tcp://localhost:61616?jms.redeliveryPolicy.maximumRedeliveries=3 an NMSException is thrown on calling ActiveMQ.ConnectionFactory.CreateConnection(). The exception text is: "no such property: redeliv

Temp queue deleted when thread interrupted

2007-09-06 Thread TOPPER_HARLEY
Hi all, This is a follow on from the thread "Temp queue vs topic with message selectors?", where I was having difficulty with temp queues. See also : https://issues.apache.org/activemq/browse/AMQ-1375 AMQ-1375 Anyway, following some investigation I have encountered a situation where temp que

Re: Missing messages in multithreaded producer

2007-09-06 Thread tendlu
Any clues? tendlu wrote: > > Using ActiveMQ 4.1 > > I have a producer that does the following - > > 1. main thread creates a Connectionfactory using tcp > 2. creates a few threads - say 5 > 3. each thread creates a new Connection and a new Session using the > connectionfactory created in the

Re: PooledConnectionFactory - Spring - Loadbalancing in a network

2007-09-06 Thread Olivier OTTAVI
That will result in easier connection managment between the nodes of the network and even load of each brokers. I would like to be able to scale the network of brokers without scaling automatically the producers. Like 2 producers and 3 brokers etc. Is Iona recommand architecture where load balancin

Re: prefetchSize for TopicSubscriber

2007-09-06 Thread Juergen Mayrbaeurl
We're using the Spring configuration for the ActiveMQConnectionFactory (with version 4.1.0):

Re: prefetchSize for TopicSubscriber

2007-09-06 Thread James Strachan
On 9/6/07, drod <[EMAIL PROTECTED]> wrote: > > Yes I did and I try it with this configuration: > tcp://localhost:61616?jms.prefetchPolicy.all = 100 Strange, works for me. You can also customize the PrefetchPolicy POJO on ActiveMQConnectionFactory / ActiveMQConnection before you create a consume

Re: prefetchSize for TopicSubscriber

2007-09-06 Thread drod
Yes I did and I try it with this configuration: tcp://localhost:61616?jms.prefetchPolicy.all = 100 But it doesn't work! Juergen Mayrbaeurl wrote: > > Did you look at > http://activemq.apache.org/what-is-the-prefetch-limit-for.html > what-is-the-prefetch-limit-for on the ActiveMQ website?

Re: PooledConnectionFactory - Spring - Loadbalancing in a network

2007-09-06 Thread James Strachan
On 9/6/07, Olivier OTTAVI <[EMAIL PROTECTED]> wrote: > It seems from my perspective that the PooledConnectionFactory is caching > only one connection to the network. Since load balancing between nodes is > done at connection time, using PooledConnectionFactory will not work with > load balancing. W

Re: ActiveMQ version 4.1.0 and incubator version 4.1.0

2007-09-06 Thread James Strachan
On 9/6/07, Juergen Mayrbaeurl <[EMAIL PROTECTED]> wrote: > > Thanks! > > Upgrading from 4.1.0 to 4.1.1 means that we'll have to to rebuild/distribute > our publisher and consumer apps and setup up a new broker, too? Its always advisable to upgrade the JMS client and broker together, yes -- James

Re: ActiveMQ version 4.1.0 and incubator version 4.1.0

2007-09-06 Thread Juergen Mayrbaeurl
Thanks! Upgrading from 4.1.0 to 4.1.1 means that we'll have to to rebuild/distribute our publisher and consumer apps and setup up a new broker, too? Kind regards Juergen James.Strachan wrote: > > On 9/6/07, Juergen Mayrbaeurl <[EMAIL PROTECTED]> wrote: >> >> Are the versions (distributions) o

Re: PooledConnectionFactory - Spring - Loadbalancing in a network

2007-09-06 Thread Olivier OTTAVI
It seems from my perspective that the PooledConnectionFactory is caching only one connection to the network. Since load balancing between nodes is done at connection time, using PooledConnectionFactory will not work with load balancing. Will this be a problem to have a real pool of jms connections

Re: ActiveMQ version 4.1.0 and incubator version 4.1.0

2007-09-06 Thread James Strachan
On 9/6/07, Juergen Mayrbaeurl <[EMAIL PROTECTED]> wrote: > > Are the versions (distributions) of ActiveMQ "ActiveMQ 4.1.0" and "Apache > ActiveMQ 4.1.0-incubator" the same? Yes. 4.1.0 happened while ActiveMQ was still in incubation; so the maven version number had to include "-incubator". However

Re: ActiveMQ version 4.1.0 and incubator version 4.1.0

2007-09-06 Thread Juergen Mayrbaeurl
Sorry! Just found the answer on the website. The distribution package of version 4.1.0 has "incubator" in its name. Juergen Juergen Mayrbaeurl wrote: > > Are the versions (distributions) of ActiveMQ "ActiveMQ 4.1.0" and "Apache > ActiveMQ 4.1.0-incubator" the same? > > Kind regards > Juergen

ActiveMQ version 4.1.0 and incubator version 4.1.0

2007-09-06 Thread Juergen Mayrbaeurl
Are the versions (distributions) of ActiveMQ "ActiveMQ 4.1.0" and "Apache ActiveMQ 4.1.0-incubator" the same? Kind regards Juergen -- View this message in context: http://www.nabble.com/ActiveMQ-version-4.1.0-and-incubator-version-4.1.0-tf4392835s2354.html#a12524900 Sent from the ActiveMQ - Use

Re: Consumer with java.util.zip.ZipException: unknown compression method

2007-09-06 Thread Juergen Mayrbaeurl
Just read https://issues.apache.org/activemq/browse/AMQ-1140 JIRA issue about compression . Does this really mean that up to version 4.1.1 compression didn't work? Kind regards Juergen Juergen Mayrbaeurl wrote: > > We're using compression (useCompression=true in serverURL) on the producer > s

Re: connection state check

2007-09-06 Thread James Strachan
On 9/6/07, Marcin Szkudlarek <[EMAIL PROTECTED]> wrote: > > Hi all, > How I can check the state of activemq connection? i.e. how i can check that > the activemq server is up and running? My app needs to detect the cases when > the server is killed by kill -9 so advisory topics are not helpful here.

Re: connection state check

2007-09-06 Thread Juergen Mayrbaeurl
Hi! Try to use the JMX interface ( http://activemq.apache.org/jmx.html ActiveMQ JMX ). Since you're using Spring this is quite easy. Kind regards Juergen Marcin Szkudlarek wrote: > > Hi all, > How I can check the state of activemq connection? i.e. how i can check > that the activemq server i

connection state check

2007-09-06 Thread Marcin Szkudlarek
Hi all, How I can check the state of activemq connection? i.e. how i can check that the activemq server is up and running? My app needs to detect the cases when the server is killed by kill -9 so advisory topics are not helpful here. I'm using SpringFramework support for activemq. Regards, Marc

Re: prefetchSize for TopicSubscriber

2007-09-06 Thread Juergen Mayrbaeurl
Did you look at http://activemq.apache.org/what-is-the-prefetch-limit-for.html what-is-the-prefetch-limit-for on the ActiveMQ website? Juergen drod wrote: > > How can I set the prefetchSize for a TopicSubscriber using ActiveMQ 4.1.1 > ? > > -- View this message in context: http://www.n

Re: ActiveMQ and Linux NFS

2007-09-06 Thread Mario Siegenthaler
Hi We had the same problem with NFS, I think it's an NFS/Java issue since there also seem to be problems with other applications. But someone told me they've it running successful with NFS, so I suppose it's NFS-implementation/version specific whether locking works or not (he ran a JVM 1.5.0_08 and

Re: Consumer with java.util.zip.ZipException: unknown compression method

2007-09-06 Thread Juergen Mayrbaeurl
Unfortunately noone has replied yet! Our problem still exists, but maybe some more information will help: The problem showed up the first time, when we switched from Java 1.4 to Java 5 on our AIX machines. It's not reproducable what makes tracking down the problem quite difficult. Any ideas? Sho

Re: ActiveMQ and Linux NFS

2007-09-06 Thread Mario Siegenthaler
You can specify your own jdbc adapter class (see http://activemq.apache.org/jdbc-support.html). What I'd do is write a mysql adapter (extend the mysql one) and override the locking statements. You can also rename the mysql adapter for AMQ 5 (or svn revision 518161/518164) into MySqlPropertLockingAd

Strict order of messages with redelivery

2007-09-06 Thread Juergen Mayrbaeurl
Hi! Our application has to make sure that all consumers with durable topic subscriptions get messages in strict order even when a message has to be delivered. E.g. Publisher puts message 1 to 10 on topic. Consumer opens a session, gets message 1, makes a client acknowledment, gets message 2, mak

prefetchSize for TopicSubscriber

2007-09-06 Thread drod
How can I set the prefetchSize for a TopicSubscriber using ActiveMQ 4.1.1 ? -- View this message in context: http://www.nabble.com/prefetchSize-for-TopicSubscriber-tf4390619s2354.html#a12518267 Sent from the ActiveMQ - User mailing list archive at Nabble.com.