Re: prefetchExtension off-by-1 for transacted consumers with prefetchSize > 0

2010-03-18 Thread rodos77
I don't really get this. If you extend the prefetchSize to more than what it was configured to be by the maxMessages parameter in the Connection.createConnectionConsumer() call, you are violating the JMS spec. The maxMessages parameter is defined as "the maximum number of messages that can be as

Re: BlobMessage,ftp and exception

2010-03-18 Thread Gary Tully
add a trailing slash to the ftp upload url, think that is what the strategy is looking for to determine a working directory in the ftp server. jndiParameters.put(Context.PROVIDER_URL, "tcp://localhost:61616?jms.blobTransferPolicy.uploadUrl=ftp://user:p...@myhost /"); On 16 March 2010 08:00, joe

Re: Can I allow storing of JMS msg in Queue but deny fetching them?

2010-03-18 Thread Mats Henrikson
You can achieve this but it's not as easy as a setting in a config file. You could implement your own BrokerPlugin/Filter that overrides BrokerFilter.addConsumer(), and implement that so that it rejects consumers on your specific destination. Mats On 19 March 2010 05:31, BenXS wrote: > > For

Re: prefetchExtension off-by-1 for transacted consumers with prefetchSize > 0

2010-03-18 Thread Gary Tully
The prefetch extension in the transacted case is necessary for the case where a transacted consumer wants to consumer more than prefetch messages in a single transaction. Without the extension, the broker would see a full prefetch and not dispatch any more and a receive could block. On 15 March 20

Re: ActiveMQ's JNDI does not resolve XAConnectionFactory

2010-03-18 Thread Gary Tully
Yea, it is a simple in memory hash map configured from the environment. I was thinking of a new property, xa=true|false that could trigger the creation of an XA variant of the connection factory. I think doing XA by default may upset clients what check for an XA connection factory, transaction wrap

Re: AMQ persistence not working for me

2010-03-18 Thread jumbro
Aha!!! This finally makes it clear... I had durable subscription working a week or two ago. But I had never tested the "persistence" piece of that, i.e. taking the broker down with unconsumed messages on a topic which has a registered durable subscriber. I just did that test and see that it works

Re: ActiveMQ's JNDI does not resolve XAConnectionFactory

2010-03-18 Thread edan
Gary Tully wrote: > > you need to change > the > org.apache.activemq.jndi.ActiveMQInitialContextFactory.createConnectionFactory(Hashtable) > method to optionally create an ActiveMQXAConnectionFactory > I think it would be a sensible default but having a property that can > ensure > that a partic

Re: AMQ persistence not working for me

2010-03-18 Thread Bruce Snyder
On Thu, Mar 18, 2010 at 12:15 PM, jumbro wrote: > > I just tested persistence using a QUEUE and... it works! > > So my question is: do topics offer this same functionality? If not, then > why? > > If topics do support persistence, then I'm still missing something.. Topics support durability which

Re: AMQ persistence not working for me

2010-03-18 Thread jumbro
I just tested persistence using a QUEUE and... it works! So my question is: do topics offer this same functionality? If not, then why? If topics do support persistence, then I'm still missing something.. jumbro wrote: > > I traced the message send within Spring.net. Setting > NmsTemplate.Per

Message Groups under failover

2010-03-18 Thread art yakuba
I have questions surrounding message groups and their behaviour under failover: My configuration: * 2 brokers (A & B) connected to each other using a network connector. Both brokers define a queue called TEST_Q. * BrokerA and BrokerB have their own slave broker (SlaveBrokerA and SlaveBrokerB).

Re: AMQ persistence not working for me

2010-03-18 Thread jumbro
I traced the message send within Spring.net. Setting NmsTemplate.Persistent = true propagates that property to the MessageProducer. I also set NmsTemplate.ExplicitQosEnabled = true which leads to: producer.Send(message, persistent, priority, timeToLive); where producer is an Apache.NMS.ActiveMQ.

Re: AMQ persistence not working for me

2010-03-18 Thread Timothy Bish
On Thu, 2010-03-18 at 08:55 -0700, jumbro wrote: > Thanks for your reply. > > I tested your suggestion and it works. I see now that it's the producer that > determines the persistence. > > Do you know off hand how to configure this same behavior using Spring? I'm > using the NmsTemplate and allow

Re: Can I allow storing of JMS msg in Queue but deny fetching them?

2010-03-18 Thread Bruce Snyder
On Thu, Mar 18, 2010 at 10:31 AM, BenXS wrote: > > For a certain Queue (e.g. myqueue123) I would like to allow producers to > store new JMS messages > but not for Consumers to retrieve them. > > How can I achieve this? In other words: Which parameter do I have to set in > which confg file? There'

Re: Problem reading kahaPersistence data store

2010-03-18 Thread Gary Tully
odd, that stack trace does not match with the 5.3.0 source. I missing subscription should be ignored during recovery. Can you verify that it is 5.3.0 and that this installation has no duplicate jars or anything odd like that. So the root cause seems to be connections not shutting down which forces

Re: AMQ persistence not working for me

2010-03-18 Thread Bruce Snyder
On Thu, Mar 18, 2010 at 9:55 AM, jumbro wrote: > > Thanks for your reply. > > I tested your suggestion and it works. I see now that it's the producer that > determines the persistence. > > Do you know off hand how to configure this same behavior using Spring? I'm > using the NmsTemplate and allowi

Composite Destination Question - Multiple Topics as One Topic

2010-03-18 Thread jmdev
I am trying to use the internals of activemq to produce the following result: Topic A Topic B > Virtual Topic Z Topic C I want to publish different messages to topics A, B, and C and receive them all via a single consumer listening to Virtual Topic Z. I attempted to use a composite topic,

Can I allow storing of JMS msg in Queue but deny fetching them?

2010-03-18 Thread BenXS
For a certain Queue (e.g. myqueue123) I would like to allow producers to store new JMS messages but not for Consumers to retrieve them. How can I achieve this? In other words: Which parameter do I have to set in which confg file? Ben -- View this message in context: http://old.nabble.com/Can-

Re: AMQ persistence not working for me

2010-03-18 Thread jumbro
Thanks for your reply. I tested your suggestion and it works. I see now that it's the producer that determines the persistence. Do you know off hand how to configure this same behavior using Spring? I'm using the NmsTemplate and allowing Spring to manage the underlying messaging context. I'm set

One transacted consumer prevents other from consuming

2010-03-18 Thread yair
Hi all I have a job's queue, from which a worker receives messages to work on. Each time the worker decides to take a job (it can handle more than on the same time) it calls createQueueSession with transacted=true, creates a consumer, receives a message, and keep these 3 objects until the job's ha

Re: Problem reading kahaPersistence data store

2010-03-18 Thread Roland Thomas Lichti
Gary Tully schrieb: > what version are you using? this looks like > http://issues.apache.org/activemq/browse/AMQ-1712 but that is not consistent > with your reference to KahaDB. > Sorry. The broker is 5.3.0. We had no problems with our stores on 5.2.0 but there we had problems with hanging conne

Re: ActiveMQ and addConnector, addNetworkConnector

2010-03-18 Thread Gary Tully
can you raise an issue for this, with the url you pass to addNetworkConnector. I see some of the networkConnectors override the getName method to make it unique but not all do. On 16 March 2010 15:41, Ryan Moquin wrote: > I was experimenting with adding network connectors to ActiveMQ through JMX

Re: Topics messages don't expire

2010-03-18 Thread Gary Tully
What you describe is as expected. Topics are a little different w.r.t to expiry as the messages are only persisted on a per consumer basis. If there are no consumers, the messages are discarded so they don't get a chance to expire. If there are durable subscribers the pendingMessageLimitStrategy ki

Re: Problem reading kahaPersistence data store

2010-03-18 Thread Gary Tully
what version are you using? this looks like http://issues.apache.org/activemq/browse/AMQ-1712 but that is not consistent with your reference to KahaDB. On 17 March 2010 12:43, Roland Thomas Lichti wrote: > Hi, > > after a broker shutdown I get IOExceptions when starting again. The > broker tries

Re: ActiveMQ's JNDI does not resolve XAConnectionFactory

2010-03-18 Thread Gary Tully
you need to change the org.apache.activemq.jndi.ActiveMQInitialContextFactory.createConnectionFactory(Hashtable) method to optionally create an ActiveMQXAConnectionFactory I think it would be a sensible default but having a property that can ensure that a particular factory is xa would be a nice a

Re: In JMS can we have multiple senders and single receiver

2010-03-18 Thread Gary Tully
can you post your consumer code? On 18 March 2010 10:29, sand...@i2it wrote: > > Hello All, > In my application i have two types of user A & B. Now what i want to > alert the user B whenever A performs some action through mail. So for 100% > delivery of messages i am using JMS ActiveMQ. My Re

Re: activemq-ra ClassCastException after restart in glassfish v3

2010-03-18 Thread devylon
uu... you are right i forgot that i also copied activemq.rar to the common glassfish modules directory some weeks ago. i removed that directory and now everything is fine again! thanks for your help!!! Gary Tully wrote: > > That smells of a classloading issue, like the activemq jars

Re: activemq-ra ClassCastException after restart in glassfish v3

2010-03-18 Thread Gary Tully
That smells of a classloading issue, like the activemq jars are available to two different classloaders, or two different versions of the acrtivemq-core jar are available. Both of the referenced classes are from the same activemq-core jar and should only be resolved from the RAR. The jars should no

Re: tomcat+jndi+activemq namingexception cannot create resource instance

2010-03-18 Thread mschaefer
Looking for a way to make ActiveMQ use PooledConnectionFactory through JNDI I came across your post and http://www.mail-archive.com/us...@tomcat.apache.org/msg66249.html that one which may not help solve your issue but possibly delivers an explanation. Michael stevegula wrote: > > I have spe

activemq-ra ClassCastException after restart in glassfish v3

2010-03-18 Thread devylon
I deployed the activemq-ra-5.3.rar to glassfish v3. My MDB can now consume jms messages from my activemq broker. everything is fine, BUT when i restart my glassfish domain, I get the folowing stacktrace: after restarting the activemq resource adapter and my application ear everything is fine aga

In JMS can we have multiple senders and single receiver

2010-03-18 Thread sand...@i2it
Hello All, In my application i have two types of user A & B. Now what i want to alert the user B whenever A performs some action through mail. So for 100% delivery of messages i am using JMS ActiveMQ. My Requirement is before directly sending request to mail server first i want to check whethe

ActiveMQ on Websphere REQUIRES_NEW transactions.

2010-03-18 Thread jeroend
Environment: Win32 Environment Websphere 6.1.0.13 ActiveMQ 5.3.0 [Win32, same machine as WAS] ActiveMQ configured with accompanying Resource Adapter on Websphere. Spring 2.5.6. Hibernate 3.3.2 LS, In preparation for our Websphere - Websphere MQ connection and absense of the latter on o

Re: ActiveMQ with C# Web Service

2010-03-18 Thread Thierry M.
Thank you for answers. Don't hesitate if you have any other suggestions. I will invistigate on WCF and ServiceMix. Thierry M. -- View this message in context: http://old.nabble.com/ActiveMQ-with-SOAP-tp27933776p27942877.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.