DefaultMessageListenerContainer « Java EE « Spring Q&A





1. How can I create a dynamic number of DefaultMessageListenerContainer MDPojos in Spring?    stackoverflow.com

I need to create a variable number of these based on a configuration value, the intention is to have multiple consumers where each corresponds to a physical resource that can only ...

2. Spring 3.0 lazy-init not honoured for DefaultMessageListenerContainer?    stackoverflow.com

I've setup a spring config for JMS. Things work fine, except I can't seem to get it to lazy load (notice the default-lazy-init true in the code below). If I comment ...

3. How to do manual commit using spring's DefaultMessageListenerContainer?    stackoverflow.com

We have an application that listens on a queue for messages and I know that the dmlc provides a sessionTransacted property that I assume would allow us to manually commit the ...

4. ActiveMQ + Spring + DefaultMessageListenerContainer - Extremely poor performance    stackoverflow.com

I have a DefaultMessageListenerContainer setup with the following configuration:

threadServiceListenerContainer(org.springframework.jms.listener.DefaultMessageListenerContainer) {
        maxConcurrentConsumers = 10
        concurrentConsumers = 1
  ...

5. How to implement a long-running Spring JMS listener (DefaultMessageListenerContainer)?    stackoverflow.com

I'm looking for advice on the subject. The only hints on the web I've found pertain to message-driven beans and are:

  1. Annotating the MDB with NOT_SUPPORTED transaction type, thus making it non-transactional,
  2. Running ...

6. DefaultMessageListenerContainer managed with JMX + ActiveMQ Multiple Consumers on a Single Queue    stackoverflow.com

Say you have two Spring DefaultMessageListenerContainer listening on the same Queue (ActiveMQ for example), started in different VMs. Send 1 000 000 messages in. After 500 000 of messages you want the ...

7. DefaultMessageListenerContainer & BisocketServerInvoker    forum.springsource.org

Hi, I have problems with my client app written in spring. Here http://community.jboss.org/thread/111400?tstart=0 I have posted explanations. There is my configuration: Code:

9. Setting DefaultMessageListenerContainer thread names    forum.springsource.org

Greetings, I'd like to customize the names of consumer threads that service JMS queues. My motivation is to ease the debugging of an application with dozens of queues and hundreds of ...





10. DefaultMessageListenerContainer setMaxConcurrentConsumers(n) = n+ 1 consumer threads    forum.springsource.org

DefaultMessageListenerContainer setMaxConcurrentConsumers(n) = n+ 1 consumer threads I'm using Spring 3.0.5, I noticed while wiring up a ThreadPoolTaskExecutor as the task executor for a DefaultMessageListenerContainer that at runtime the number of ...

11. Delaying start of DefaultMessageListenerContainer    forum.springsource.org

Delaying start of DefaultMessageListenerContainer Hello, In the event that my application crashes,when it does restart, it will need to do some preprocessing before being able to processing incoming messages. Is there ...

12. Custom MessageSelector and DefaultMessageListenerContainer    forum.springsource.org

Custom MessageSelector and DefaultMessageListenerContainer Hi all, I'm having a quite strange problem to solve: I'm using the new DefaultMessageListenerContainer (org.springframework.jms.listener.DefaultMessageLi stenerContainer) for receiving messages from a Websphere MQ queue. As I ...

13. How do perform soft/hard suspend using DefaultMessageListenerContainer    forum.springsource.org

How do perform soft/hard suspend using DefaultMessageListenerContainer Hi all Consider this: I have a DefaultMessageListenerContainer, with multiple concurrent consumer, and is been setup to process multipleMessagePerTask. What is the best approach ...

14. DefaultMessageListenerContainer not shutting down    forum.springsource.org

DefaultMessageListenerContainer not shutting down I know there have been other threads about this but none which have helped. I am using tomcat, activemq and using an Message driven pojo via DefaultMessageListenerContainer. ...

15. DefaultMessageListenerContainer and MQ Channels    forum.springsource.org

Just a simple question. Does anyone know what the correlation between MQ channels and the concurrentConsumers property of the DefaultMessageListener container? In other words, if I have 5 concurrent consumers configured, ...

16. DefaultMessageListenerContainer CommonJ WorkManager rejects Work - Weblogic 9.2    forum.springsource.org

DefaultMessageListenerContainer CommonJ WorkManager rejects Work - Weblogic 9.2 Hi, I'm trying to use the DefaultMessageListenerContainer in conjunction with the CommonJ WorkManager (via Spring's TaskExecutor abstraction) on Weblogic 9.2. When the DefaultMessageListenerContainer ...





17. DefaultMEssageListenerContainer Auto Reconnect with JBOSS MESSAGING 1.4.0    forum.springsource.org

Hi, I am using DefaultMEssageListenerContainer with JBOSS MEssaging. When my JMS Server is stopped and restarted, it is not able to reconnect. Can anyone help me?? Any Ideas??

18. Switch off DefaultMessageListenerContainer    forum.springsource.org

Hello, I need to stop DefaultMessageListenerContainer for couple hours during the day. the idea is to write a script which will stop the running instance executing if(listener.isRunning()) listener.stop() I need another ...

19. Errors while stoping DefaultMessageListenerContainer    forum.springsource.org

Errors while stoping DefaultMessageListenerContainer Hi there, I've got a bean that can start/stop DefaultMessageListenerContainer bean via Lifecycle interface. It seems to work fine, but every time I stop it I get ...

20. DefaultMessageListenerContainer isRunning() always false    forum.springsource.org

Hi I am monitoring a instance of DefaultMessageListenerContainer. I use the isRunning() and the isActive() methods to check it the container is alive. These methods always return false. The container is ...

21. DefaultMessageListenerContainer, maxConcurrentConsumers and shrinking of consumers    forum.springsource.org

DefaultMessageListenerContainer, maxConcurrentConsumers and shrinking of consumers Hi, I am using the DefaultMessageListenerContainer and it states in the documentation that is I use maxConcurrentConsumers then threads will shrink back to the concurrentConsumers ...

22. DefaultMessageListenerContainer reconnecting at startup    forum.springsource.org

DefaultMessageListenerContainer reconnecting at startup To ensure the application can recover when the JMS server down at startup, my application code will establish a JMS connection before attempting to load the DefaultMessageListenerContainer ...

23. configuring DefaultMessageListenerContainer as topic and testing it with client    forum.springsource.org

configuring DefaultMessageListenerContainer as topic and testing it with client Hello, I followed an example to configure DefaultMessageListenerContainer at server side as follow:

24. DefaultMessageListenerContainer and concurrentConsumers > 1 (javax.jms.JMSException)    forum.springsource.org

DefaultMessageListenerContainer and concurrentConsumers > 1 (javax.jms.JMSException) I have a DefaultMessageListenerContainer listening to a queue, and concurrentConsumers is set to 1. This works fine, but when I increase concurrentConsumers (e.g. to 3) ...

25. DefaultMessageListenerContainer and nonfatal FATAL Errors    forum.springsource.org

Jan 16th, 2008, 06:01 PM #1 ddefer View Profile View Forum Posts Private Message Junior Member Join Date Jan 2008 Location Dallas, TX Posts 1 DefaultMessageListenerContainer and nonfatal FATAL Errors I ...

26. DefaultMessageListenerContainer start call hangs    forum.springsource.org

DefaultMessageListenerContainer start call hangs I have a client/server application, with separate client, server and shared spring configurations. In the JMS portion of these definitions, I have a org.springframework.jms.listener.DefaultMessageLis tenerContainer bean defined ...

27. Multiple DefaultMessageListenerContainer    forum.springsource.org

Multiple DefaultMessageListenerContainer -------------------------------------------------------------------------------- hi, I have a requirement where I need to use selectors when reading from a queue. even though we have an option to set concurrent consumers but there ...

28. DefaultMessageListenerContainer and exceptions    forum.springsource.org

What's the right way to propagate a listener exception to the JMS provider using the DefaultMessageListenerContainer? Some of the resources used by my listener are unreliable and an exception thrown by ...

29. DefaultMessageListenerContainer    forum.springsource.org

Hello, Im new to spring and would like to know the easiest way to rollback messages using the DefaultMessageListenerContainer. My setup seems to be correct, and everything is working lovely. However, ...

30. shutdown on DefaultMessageListenerContainer block my thread    forum.springsource.org

shutdown on DefaultMessageListenerContainer block my thread Hi, i'm using the Spring 2.5.2 and ActiveMQ 4.1.1 and encounter problems while tying to shutdown a DefaultMessageListenerContainer. Here is what I am doing: Code: ...

31. Optimizing DefaultMessageListenerContainer    forum.springsource.org

Optimizing DefaultMessageListenerContainer what is the best way to determine the optional values for the defaultmessagelistenercontainer? we have a median throughput application (~100 msgs/sec), processing small messages (~50bytes). We are using JBoss ...

32. manual ack DefaultMessageListenerContainer    forum.springsource.org

manual ack DefaultMessageListenerContainer I have to make an application thhat listens to a jms queue and onMessage do the following : - Save message to a database - do some_work() with ...

33. DefaultMessageListenerContainer - maxConsumers    forum.springsource.org

DefaultMessageListenerContainer - maxConsumers Hello, in my context I use a bean with type of DefaultMessageListenerContainer. For properties i set : Code: However when ...

34. JMS DefaultMessageListenerContainer recovery fails    forum.springsource.org

Aug 2nd, 2008, 12:21 AM #1 pigwin32 View Profile View Forum Posts Private Message Junior Member Join Date Mar 2008 Location Oakura Posts 17 JMS DefaultMessageListenerContainer recovery fails Hi I am ...

35. JmsGateway: Injecting an ErrorListener into the DefaultMessageListenerContainer    forum.springsource.org

JmsGateway: Injecting an ErrorListener into the DefaultMessageListenerContainer Gang, Quick question: I have a jms-gateway configuration for which I need to configure the underlying DefaultMessageListenerContainer. I need to do some custom error ...

36. DefaultMessageListenerContainer & ActiveMQ    forum.springsource.org

DefaultMessageListenerContainer & ActiveMQ I am having a strange problem running with Spring 2.5.1 & ActiveMQ 5.1 - running on Tomcat, I have one jar that is contains both producer & consumers ...

37. DefaultMessageListenerContainer and temporary queues    forum.springsource.org

DefaultMessageListenerContainer and temporary queues Hi all, I have scoured the spring forums for a hint on how to implement the following to no avail: I have a message listener class that ...

38. DefaultMessageListenerContainer and temporary queues (REPHRASED)    forum.springsource.org

Hi All, Is it possible for MDP's in a DefaultMessageListenerContainer to be receiving on a temporary queue? If so, how is this specified within the configuration using destinationName and destinationResolver?