Activemq producer connections limit?

2009-03-18 Thread Feyash
Hi guys, I have a question that if activemq have a producer connections limit when I create a lot of producer connections to activemq server to send messages simultaneously. Well, I have the requirement that a lot of producer connections to access activemq, how should I tuning activemq server to

ActiveMQ producer/consumer hangs when on of the consumer didn't respond

2009-03-18 Thread ashoknan
We are using ActiveMQ 5.1 & Spring 2.5.4... We are using ActiveMQ Embeeded broker vm://localhost?broker.persistent=false We are sending the email from all these listeners after doing some logic.when something happens in the SMTP side and if the

Re: how can I really use more then 1 receiver on the same queue?

2009-03-18 Thread ttmgary
Seems like setting prefetchPolicy=1 (or greater, if message volume warrants it) should activate your multiple consumer threads. - Gary steve56 wrote: > > > case 2: > - set prefetchPolicy = 0 > - now all threads work consuming sequentially (non in parallel!) > messages. i.e: a thread rece

Re: ActiveMQ JNDI support only for testing?

2009-03-18 Thread David Jencks
I'm really mystified by why you want to rely on remote ldap to look up a connection factory or destinations. I don't think you've thought through what information needs to be distributed where by what means and I think you are going towards a much harder to administer heavyweight solution

Re: Which types to use - org.apache.activemq namespace or javax.jms namespace

2009-03-18 Thread Postol
Sorry for that stupid question:) - it is clear now. Postol wrote: > > Hello All, > > maybe it is a stupid question, but I am little bit confused, which objects > should be used, when I am developing clients, which will communicate with > ActiveMQ broker. > > I am not sure if I should use typ

Re: Killing activemq with connected JMS listener

2009-03-18 Thread Rob Davies
You've registered a JMS ExceptionListener with the Connection ? On 18 Mar 2009, at 18:06, mffrench wrote: must add I tested the same code with other queuers (QPID, ...) and I get exception with these queuers ... mffrench wrote: yes my client is connected... and it only receive message (

Stomp: unsubscribe durable consumer - only works if client id == subscription name

2009-03-18 Thread mjustin
Hello, It looks like unsubscribing a durable subscriber using Stomp works only if the same name has been used both for the client id and for the subscription name. This is the setup in the JUnit test in StompTest.java - testDurableUnsub() - where 'test' is the name for the client and the subscri

Re: Killing activemq with connected JMS listener

2009-03-18 Thread mffrench
must add I tested the same code with other queuers (QPID, ...) and I get exception with these queuers ... mffrench wrote: > > yes my client is connected... and it only receive message (it's a jms > listener). > can you tell me what options I must set to enable the log level in the > activemq cl

Re: Killing activemq with connected JMS listener

2009-03-18 Thread mffrench
yes my client is connected... and it only receive message (it's a jms listener). can you tell me what options I must set to enable the log level in the activemq client ? Some netstat Before killing : tcp6 0 0 *:61611 *:* LISTEN 18673/java

Re: Killing activemq with connected JMS listener

2009-03-18 Thread Gary Tully
Is your client really connected? Has it sent or received a message. With activemq, the connection is created on demand on first but not when the connection factory is created. Can you enable debug logging and see what additional information you can gather? 2009/3/18 mffrench > > Here's my JNDI c

Re: ActiveMQ exception when using asynchronous communication

2009-03-18 Thread mffrench
UP mffrench wrote: > > Hello, > > some times I get an activemq exception (broker side) which appends > regularly when I do some stress tests (many producers / consumers on the > broker) and when I do some simple transactionnal tests. > > I've some difficulies to reproduce every time nor expl

Re: New question about activemq network

2009-03-18 Thread mffrench
UP mffrench wrote: > > Hello, > > I do not understand why the routing is done on the GET and not directly on > the PUT. I do not see the interest to keep the message in the non final > destination broker. For me this kind of routing raise some questions like > : > > + if you have N nodes if

Re: Killing activemq with connected JMS listener

2009-03-18 Thread mffrench
Here's my JNDI configuration : java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory java.naming.provider.url = tcp://127.0.0.1:61611 connectionFactoryNames = MICHEL queue.TEST = TEST As you can see I provide a brokerUrl with tcp://... and I never get any exception

Re: ActiveMQ JNDI support only for testing?

2009-03-18 Thread janylj
Hello Huntc, I read your blog especially the Authorisation part. I think we are talking about the same thing. The LDAP server I set up also uses ACI to grant or limit the access to specific topic/queue. I guess this discussion is mainly about whether ActiveMQ has an embedded JNDI provider for c

Re: Killing activemq with connected JMS listener

2009-03-18 Thread Gary Tully
If this is 5.2, and you do not provide a brokerUrl to your activemq connection factory then the failover transport will be used by default and it will block waiting to reconnect. Provide a brokerUrl and use "tcp://..." and you will get the exception you require. 2009/3/18 mffrench > > Hello, > >

Killing activemq with connected JMS listener

2009-03-18 Thread mffrench
Hello, if I kill ActiveMQ, there is no exception raised to my connected JMS listener and so my client doesn't detect the link is broken with ActiveMQ. I think this is a bug which should be corrected. Is there any issue about this ? Thanks -- View this message in context: http://www.nabble.com/

Re: Change Message Destination using Interceptors

2009-03-18 Thread James Strachan
2009/3/17 DanielR : > > I can't get it working... any examples would be nice please Here's a bunch of examples... http://camel.apache.org/examples.html The spring XQuery example might be a good start... http://camel.apache.org/spring-xquery-example.html you might find its easier to write your p

Re: ActiveMQ JNDI support only for testing?

2009-03-18 Thread James Strachan
2009/3/18 Antsa : > > > huntc wrote: >> >> I'm curious as to what is trying to be achieved here. Could you please >> explain why it is useful to perform a naming/directory lookup for a queue >> or topic name? >> > My use case is probably due to my newbie status with JMS. > Session.createTopic javad

Re: ActiveMQ JNDI support only for testing?

2009-03-18 Thread huntc
janylj wrote: > > I was trying to have a centralized repository of destinations and > ConnectionFactory. I could use a uniform namespace for destination to > avoid conflicting. However, I don't want to allow users creating > destination or ConnectionFactory on the fly. I would like them accessin