JMS 1 « Development « Spring Q&A





1. How to nest Spring JMS MessageConverters    stackoverflow.com

I'd like to write a MessageConverter class that can wrap another MessageConverter. This MessageConverter would call the child converter, which is assumed to generate a TextMessage. It would take the payload ...

2. Unable to start Camel 1.5.0    stackoverflow.com

I'm trying to run the Camel Example "camel-example-spring-jms" (also at http://activemq.apache.org/camel/tutorial-jmsremoting.html). However, when I try to start Camel using "org.apache.camel.spring.Main" class, I get the error saying "Configuration problem: Unable to locate ...

3. Adding JMS Info breaks EhCache    stackoverflow.com

I want to distribute my EhCache via a JMS Topic. This is documented here on EhCache's site I'm using:

  • ehcache-1.6.0-beta3
  • ehcache-jmsreplication-0.3
  • spring-2.5
  • spring-modules-0.9
My Spring config looks like this:
<bean id="cacheManager"
     ...

4. How to gracefully shut down a Spring JMS MessageListenerAdapter    stackoverflow.com

I have a message handler, which consumes from a JMS queue and that sends results to another JMS queue. The message handler lives in a Spring DefaultMessageListenerContainer. When the container shuts down, ...

5. How to receive what was sent by convertAndSend?    stackoverflow.com

I'm reading Spring Framework reference, chapter about JMS integration. There are some examples for sending text messages and asynchronously receiving them (by listeners). And there is also an example ...

6. Configuration of tibco jms with Spring    stackoverflow.com

Now I have java code which starts tibco jms subscription with several steps:

Properties props = new Properties();
        props.put("java.naming.provider.url", namingProvider);
      ...

7. Embedding HornetQ in Spring    stackoverflow.com

I am trying to evaluate HornetQ and the possibility of embedding it in a spring application. To start with a simple setup I am just trying to initialize it as follows. ...

8. JMS dependencies in unit tests    stackoverflow.com

I have a given test which I want to run in JUnit. It has a dependency on a complex service that the code calls using JMS, so while running the JUnit ...

9. Spring JMS MQJE001: Completion Code '2', Reason '2042'    stackoverflow.com

My setup is Spring 3 JMS, MVC + Websphere MQ + Websphere 7

<!-- this is the Message Driven POJO (MDP) -->
<bean id="messageListener" class="com.SomeListener" />

<!-- and this is the message listener container ...





10. Spring JMS DefaultMessageListener - onMessage() not getting invoked    stackoverflow.com

I am trying to implement a point-to-point messaging system using TIBCO EMS and Spring framework. I am able to write a message to the queue, but the problem I am facing is ...

11. HP exstreme dialog how to send JMS BytesMessage    stackoverflow.com

We are using HP Exstreme Dialog to send a message/pdfstream to the MQ. For some reason when we receive the message using JMS, it is always TextMessage (JMS Message class: jms_text) and ...

12. Method not called when using Spring JMS namespace    stackoverflow.com

I have an application which is built on Spring 3.0.5 and uses JMS for exchanging messages. The beans which receive the messages are configured by using the jms namespace. The class ...

13. Help with Spring and JMS. I am trying to setup a simple publisher using spring?    stackoverflow.com

So I have the following publisher:

import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.Session;
import javax.jms.Topic;

import org.springframework.jms.core.MessageCreator;
import org.springframework.jms.core.JmsTemplate;

public class JmsTopicSender {

    private JmsTemplate jmsTemplate;
    private Topic topic;

    public ...

14. Does anyone know exactly what javax.jms.InvalidDestinationException: Not allowed to create destination means?    stackoverflow.com

I am try to connect to a Tibco Ems Topic using Spring when I recieve this error. Here is the config:

    <jms:listener-container connection-factory="Tcf"    acknowledge="auto" >
  ...

15. Best practice for error handling with Spring JMS    stackoverflow.com

I'm working on a message based service that queues all incoming requests and handles them later. What is the best practice for handling errors. For example malformed messages or communication errors ...

16. Apache Karaf 2.2.3, featuresBoot issue    stackoverflow.com

Karaf 2.2.3 recently released and finally has a pre-bundled spring-jms feature. In order to make life easy I added it to the featuresBoot config property with the other defaults: featuresBoot=config,ssh,management,spring-jms However, when I ...





17. Mutiple Connectionfactories in applicationContext.xml using DefaultMessageListenerContainer102    stackoverflow.com

How can I configure mutiple connection factories using org.springframework.jms.listener.DefaultMessageListenerContainer102 in applicationContext.xml?

18. IBM MQ vs JMS - Spring Implementation    stackoverflow.com

I am working on a Spring application where we have implemented code to send messages through IBM MQ. Now we have been advised not to directly use MQ APIs directly and ...

19. Kill a task in threadexecutor if it takes more time    stackoverflow.com

Here is the scenario: I have a java main process, which uses JMS to publish to some ActiveMQ broker. Each time a message is supposed to be sent to the broker, a thread ...

20. spring jms request response with a queue    stackoverflow.com

I have a simple spring jms tutorial.A lender is acting as receiver. A borrower is action as sender. borrower sends salary and loan amount, and waits for response. The lender runs ...

21. typical deployment for JMS+tomcat+spring    stackoverflow.com

I've got quite a bit of experience with tomcat+spring, but I haven't done anything with message queues. I'm wondering how people typically set up a stack that includes tomcat+jms (active mq)+spring ...

22. Remote JMS async callbacks    forum.springsource.org

I use ActiveMQ broker and have implemented a Remote JMS with JmsInvokerProxyFactoryBean and JmsInvokerServiceExporter, like this example: Spring Ref. 19.6 JMS. It work fine but unfortunately it seems not the right ...

23. No timeout in JMS reception    forum.springsource.org

No timeout in JMS reception Hello, I'm trying to migrate a J2EE application to Spring. We have a special MDB configured to handle the transaction itself (BMT). The idea behind that ...

24. error-channel on JMS adaptor    forum.springsource.org

error-channel on JMS adaptor Hi Guys, I am using error-channel attribute on message driven endpoint. The flow is like MDEndPoint-->SA1-->SA2-->SI Channel-->PutMessageOnResponseQueue(Topic). If error occurs anywhere in the chain above then message ...

25. Problem implementing JMS synchonous communication with outbound gateway.    forum.springsource.org

Problem implementing JMS synchonous communication with outbound gateway. Here it is: I'm implementing a service BUS that talks to a Message Driven Bean (MDB). It is a synchonous call. I'm using ...

26. JMS from within TransactionSynchronizationAdapter    forum.springsource.org

JMS from within TransactionSynchronizationAdapter I am trying to send a JMS message after a database transaction completes; the obvious thing seemed to register a callback with the TransactionSynchronizationManager. However, I am ...

27. Support for Websphere MQ no JMS    forum.springsource.org

I'm looking to use Websphere MQ for Java API (not for JMS) since I need to access a property only available on com.ibm.mq.MQQueue (not on com.ibm.mq.jms.MQQueue) Are there any Spring support ...

28. Remote Chunking Example with JMS    forum.springsource.org

Remote Chunking Example with JMS Greeting all, I am very new to Spring batch and executing a few PoC's to prove the case for a Global Batch framework in my division. ...

29. jms outbound-gateway and resolving request/reply destination names based on Msg conte    forum.springsource.org

jms outbound-gateway and resolving request/reply destination names based on Msg conte Hi, I am using to send a request message and to receive a reply. In my case, request-destination-name (JMS ...

30. using header-filter with jms:inbound-gatway    forum.springsource.org

using header-filter with jms:inbound-gatway We have a simple requirement to remove a header before we send the reply message (specifically, the JMSXUserID). However, I can't figure out how to use header-filter ...

31. Dynamically calculate "time-to-live" value of JMS    forum.springsource.org

Hi! I would like to calculate "time-to-live" value dynamically based on payload. I tried to use expression like this: Code: But this expression ...

32. Topics with jms containers    forum.springsource.org

Topics with jms containers Below is my applicationContext.xml file used by Tomcat. I am new to spring and JMS and have a few different questions. First, my xml file uses listener-container ...

33. JMS Inbound gateway fundamental understanding    forum.springsource.org

JMS Inbound gateway fundamental understanding Hello Today I tried to build up a test case, I used activemq to send a message an inbound jms gateway, the gateways' requests destination pointing ...

34. jms producer performance with spring    forum.springsource.org

jms producer performance with spring Hello, i created a simple producer consumer simulation based on spring, jms and activemq, i'm trying to reach high performance from both sides, producers and consumers, ...

35. Spring JMS+Sonic MQ JCA    forum.springsource.org

Spring JMS+Sonic MQ JCA Hi, I'm trying Sonic use JCA Resource Adapter with Spring JMS on WebLogic Server using locally transacted sessions. In configuration I set acknowledge="transacted", but what seems to ...

36. How do I connect to a remote HornetQ JMS server?    forum.springsource.org

How do I connect to a remote HornetQ JMS server? Hello all, I would like to hookup Spring's DefaultMessageListenerContainer to a remote HornetQ instance. I am new to this, so I ...

37. spring jms    forum.springsource.org

spring jms Hi, I am new to spring jms..already i developed mdb which listens to websphere queue and process the message. Now I want to convert this MDB ejb to spring ...

38. JMS backed channel priority issue    forum.springsource.org

JMS backed channel priority issue I have to process a priority message even in between the JMS has started processing low priority messages. here I have splitter which receives List and ...

39. Package hiearchy: jms.remoting vs remoting.*    forum.springsource.org

I see that in the sandbox the jms impl of remoting is under the jms package (ie, jms.remoting). Whereas in the production source the remoting impls are under the remoting package ...

40. spring unit testing within jms app    forum.springsource.org

Hi, I have an spring jms app and for that I want to go for junit testing ,junit 4 testing can u please guide me how to proceed for this approch...and ...

41. Logs for jms outbound adaptor    forum.springsource.org

Logs for jms outbound adaptor I am putting the message by below code .If suppose some how it fails to send the message to MQ may be MQ is down i ...

42. jms item writer and reader    forum.springsource.org

43. JMS-outbound and transformer    forum.springsource.org

The way you have it configured now, any Message sent to the "incomingMessageChannel" will be sent in round-robin fashion to either the JMS outbound-gateway or the transformer. Also, the "message-driven" JMS ...

44. Remote chunking with JMS    forum.springsource.org

Hi All, I am trying to implement the Spring batch scalability feature using remote chunking with JMS. Can anyone please provide some sample code/configs or detailed steps how I can implement ...

45. Durable JMS Subscriber support    forum.springsource.org

Durable JMS Subscriber support Hi Friends, How can i define durable subscriber for jms topic in spring? What I need is we have one application which is sending message to jms ...

46. JMS implementation    forum.springsource.org

JMS implementation hi, I am deploying my JMS implementation (Sender and Receiver) using spring web framework on BEA weblogic and i get the below error.. Can someone pls help me to ...

47. Is async available to JMS Remoting?    forum.springsource.org

Is async available to JMS Remoting? This quote got me thinking: "The JMS remoting support in the Spring Framework is pretty basic - it sends and receives on the same thread ...

48. problem setting up JMS listener    forum.springsource.org

problem setting up JMS listener I have a class (no http) that listens for messages using JMS. What is the best way to implement this in a web app using the ...

49. Remote invokcation over JMS?    forum.springsource.org

Hi I see that http://www.springframework.org/docs/.../remoting.html lists some alternatives to do remote invocation over burlap/hessian/JAX-RPC etc, and "JMS (TODO)". What's in the TODO? Does Spring support baseclasses/framework classes for doing remote invocation ...

50. Table based approach or JMS?    forum.springsource.org

Table based approach or JMS? Our application needs to send out emails with attached document which are generated by our application too, in large volume. Our current approach is what i ...

51. JMS and JMX    forum.springsource.org

Hi I am currently working on an application that uses JMS. I was wondering if would be possible to stop the listener using JMX and Spring. Currently I have an ant ...

52. Spring JMS and MQ series    forum.springsource.org

Hi, I am developing a J2EE application using Spring and Struts.I have requirement in which I need to send and read Data to an MQ series residing in an AS400 machine. ...

53. JMS unit testing with Weblogic    forum.springsource.org

Everyone talks about how easy it is to do unit testing with Spring outside the container. Can someone please show me an example of how to unit test JMS (with Weblogic, ...

54. Now in sandbox: JMS support    forum.springsource.org

Now in sandbox: JMS support Hi, I've just finished working on JMS support for Spring-WS. It uses Spring-2.0's MessageDriven POJO's mechanism, though it can also work as a MessageDriven EJB. (For ...

55. jms.remoting and Lingo    forum.springsource.org

Hey, In the Spring 2.0.1 release, there are classes in a package org.springframework.remoting.jms.JmsInvokerService Exporter, JmsInvokerClientInterceptor, etc, which implements Spring remoting over JMS. Is this in any way related to Lingo, the ...

56. Trouble connecting to IBM MQ using JMS Template    forum.springsource.org

Trouble connecting to IBM MQ using JMS Template Hi, I am trying to connect to IBM MQ using JmsTemplate with the following code and configuration. Code: void send(JmsTemplate jmsTemplate){ jmsTemplate.send(new TextMessage(message)); ...

57. What's the best practice for using JMS in spring?    forum.springsource.org

What's the best practice for using JMS in spring? For the SimpleMessageListenerContainer, it doesn't originally support XA transaction, which may be required in some cases. For the DefaultMessageListenerContainer, it uses a ...

58. Exporting a JMS Queue as a manageble attribute    forum.springsource.org

Exporting a JMS Queue as a manageble attribute Hi, I'm using 1.5 annotations with spring JMX to export a JMS Queue, which is monitored through JConsole. I'm using Active MQ as ...

59. JMS Subscriptions...    forum.springsource.org

JMS Subscriptions... Question on how to architect something with JMS - please forgive my ignorance of JMS funcitonality, I've got a lot to learn here: Need to have clients subscribing to ...

60. Tomcat, Spring and JMS    forum.springsource.org

Hi All, I've got Spring (2.0.2) based web application running under Tomcat (4.1.31). I need to asynchronously listen (receive/consume) to the JMS messages from remote server. I do not need to ...

61. about JMS Inbox    forum.springsource.org

hello i have to implement javamail using sprring framework. iam able to send mails . can any one tell me how to implement "INBOX" in srping frame work.

62. Pox & Jms    forum.springsource.org

Well, the JMS code is still in the sandbox. And there is a sample application context for configuring JMS in the airline sample here. The only thing you would need to ...

63. jms exceptionlistener and reconnect    forum.springsource.org

jms exceptionlistener and reconnect Hi, I am looking into ways to use spring's jms support with a jboss messaging, and have 2 questions: 1) According to the jms spec exception listeners ...

64. type mismatherror in spring with jms configuration    forum.springsource.org

type mismatherror in spring with jms configuration Hi, i am new to spring and i am getting following exception while attempting to use JMS. i think there are clashes between com.ibm.mqjms ...

65. Do I need to use JMS in my case    forum.springsource.org

Do I need to use JMS in my case Hello all, I am new in Java Web application development. In my project, I need to develop a forum, which has the ...

66. Dynamic creation of multiple JMS listeners to many queues    forum.springsource.org

Dynamic creation of multiple JMS listeners to many queues Hi Springers, I wonder if it is possible to have multiple JMS listeners in a dynamic fashion; the problem Im facing is ...

67. Problem Implementing JMS with Spring on Tomcat    forum.springsource.org

I am using an ICEFaces application that includes spring in my business layer. Now I want to use JMS with Spring and want to deploy it on Tomcat 5.5 server. First ...

68. Principle Question when using JMS (in Spring)    forum.springsource.org

Principle Question when using JMS (in Spring) (the content of this post has changed, because the old problem is obsolete) Hi! I work with JMS queue/s to parallelize work. In that ...

69. JMS and Tomcat? Mule vs. JMS?    forum.springsource.org

JMS and Tomcat? Mule vs. JMS? What's the general status/consensus on using JMS (ActiveMQ?) and tomcat? Is it ready for prime time? Bleeding edge? Are a lot of folks using in ...

70. WebSphere 6.1 + Default JMS Provider - Hanging WebSphere    forum.springsource.org

WebSphere 6.1 + Default JMS Provider - Hanging WebSphere Hello, I am using the default WebSphere MQ provider as jndi resources in WebSphere 6.1 and Spring 2.0.5. The application seems to ...

71. Shutdown problem with Jms listeners after Spring upgrade    forum.springsource.org

Shutdown problem with Jms listeners after Spring upgrade I am upgrading our application from using Spring 2.0 to 2.0.7. However I seem to have run into problems when trying to shutdown ...

72. Question about Listener and overall Spring JMS performance    forum.springsource.org

Question about Listener and overall Spring JMS performance Traditionally we were using MQ to connect our site to a legacy app that often times out or crashes under load. So I ...

73. SpringIDE and Websphere 6.1 JMS    forum.springsource.org

SpringIDE and Websphere 6.1 JMS Hi, I'm a Spring IDE newbie trying to use Spring IDE to link two spring beans (publisher and consumer) to a thin Websphere 6.1 client. I ...

74. Reconnect to Foreign JMS Objects    forum.springsource.org

Reconnect to Foreign JMS Objects I've written an application using Spring JMS that uses a connection factory and queue that are part of a foreign JMS server. The application works fine ...

75. WAS Default JMS Messaging    forum.springsource.org

All, I have configured Default Messaging on my WAS 6.0 server in order to run few samples MDP to check if messaging is working for me. I have setup Buses , ...

76. Spring JMS Scalability - Newbie questions    forum.springsource.org

Spring JMS Scalability - Newbie questions Hi All, I have just implemented a messaging system using Spring JMS with Active MQ 4.1.1...I do have some questions...Would be appreciable if someone could ...

77. lost jms propery    forum.springsource.org

lost jms propery Hello, I am sending TextMessage generated by JmsTemplate to IBM MQ, prior to sending I set boolean parameter called 'isPassiveToProcess'. I pick up the message from the queue. ...

78. Weblogic - JMS failover not working.    forum.springsource.org

Oct 18th, 2007, 04:00 PM #1 swarnar View Profile View Forum Posts Private Message Junior Member Join Date Oct 2007 Posts 4 Weblogic - JMS failover not working. Hi All, I ...

79. Websphere v6, Spring JMS    forum.springsource.org

Websphere v6, Spring JMS Worked for quite a while on IBM forum to figure out how to get JMS working from a servlet under WebSphere, but I finally got it working. ...

80. JMS Log    forum.springsource.org

JMS Log Hi, I am using Log4j for logging. I am getting jms listener is continuously logging in log file. Following is the log: [listenerContainer-1] DEBUG AbstractPollingMessageListenerContainer : Consumer [connection146.session147.consumer149] of ...

81. Multiple JMS destinations from one Sender Class    forum.springsource.org

Multiple JMS destinations from one Sender Class I have a JMS Sender class with two methods which sends different messages to different queues: Class SomeClass{ public void methodA() { jmsTemplate.send(destination, new ...

82. JMS in Spring 1.2    forum.springsource.org

JMS in Spring 1.2 I'm trying to implement JMS on my project so I did Spring Lab Chapter 17-JMS. It is somehow similar to what I need - send Java Objects ...

83. JMS to run on resources avaliability    forum.springsource.org

JMS to run on resources avaliability Hi , I need to write a user entered query (not DB only) that will run on open resources avaliability or max wait time , ...

84. Spring - JMS without using JNDIs    forum.springsource.org

Hi, Is it possible in spring to do JMS programming without actually creating the connection factory & destination jndis in the appserver (like directly using the host, queuemanager, queue etc..) Similar ...

85. Asynchron Receiving with JMS    forum.springsource.org

Hello I am reading some infos about JMS support in Spring.. and I realized, there is no possibility to use asynchrone receiving, like the onMessage methode from the MessageListener(JMS API) interface. ...

86. Newbie JMS/IBM MQ setPriority(int) question    forum.springsource.org

Hello, Has anyone had any success with the setPriority(int) method on the JMSTemplate? I've tried a few things and setting the priority seems to have no affect. If I understand correctly, ...

87. jms-source cannot be configured with a jms-template    forum.springsource.org

jms-source cannot be configured with a jms-template Hello, I am working on a Spring Integration (1.0.0m1) sample that uses both a jms-target and a jms-source in my configuration. Even though the ...

88. JMS Testing    forum.springsource.org

JMS Testing Hello, I am trying to setup a test environment (in Jetty) to run my application. I do not expect everything to work in my test environment (like my JMS ...

89. DefaultMessageListenerContainer102 and reconnect on JMS Server down    forum.springsource.org

DefaultMessageListenerContainer102 and reconnect on JMS Server down Environment: Spring 2.0.3, JBoss 4.0.2 Based on all the documentation for DefaultMessageListenerContainer102 class, it is supposed to reconnect to the JMS server after restart ...

90. JMS UnitTest    forum.springsource.org

JMS UnitTest Hi The following applicationContext-jms.xml inside our application: Code: ${java.naming.provider.url} org.jnp.interfaces:org.jboss.naming org.jnp.interfaces.NamingContextFactory ...

91. JMS Remoting | How does it work?    forum.springsource.org

JMS Remoting | How does it work? Hi, I have tried out the example in the spring reference documentation on JMS Remoting. I have be able to successfully get it working ...

92. JMS Remoting & XA    forum.springsource.org

JMS Remoting & XA Hi All, We are rewriting a EJB application to a standalone app and use JMS remoting to invoke a business implementation. We are using the JMSInvokerProxyFactoryBean to ...

93. JMS - Webloic Server - TIBCO    forum.springsource.org

Mar 18th, 2008, 06:45 PM #1 SpringingSpringles View Profile View Forum Posts Private Message Member Join Date Feb 2008 Posts 39 JMS - Webloic Server - TIBCO Spring version: 2.5.x Weblogic ...

94. New to Spring JMS    forum.springsource.org

Hi, I am new to JMS in Spring but have used it in a full-blown app server (JBoss in particular). My question is, in Spring, do we still need some sort ...

95. Stopping JMS listening warning    forum.springsource.org

Hi, I am trying to suspend/resume JMS input to throttle processing in my app. I have a class that implements the SessionAwareMessageListener and I call the stop()/start() methods on it. When ...

96. Chat application with JMS    forum.springsource.org

Chat application with JMS Hi, My chat application needs to multicast messages to the proper chat rooms. An important requirement is that clients must be able to subscribe and unsubscribe to/from ...

97. JMSInvokerServiceExporter & JMS 1.0.2    forum.springsource.org

JMSInvokerServiceExporter & JMS 1.0.2 Hi, I was trying Spring JMS Remoting using JMS 1.0.2 and i observed that JMSInvokerClientInterceptor supports sending messaging with JMS1.0.2 but the JMSInvokerServiceExporter does not. When the ...

98. JMS Listener 'lost'?    forum.springsource.org

JMS Listener 'lost'? Under WebSphere 6.1, I have 4 JVMs running on 2 boxes . One of them runs the JMS messaging engine, and the other MEs in the other JVMs ...

99. JMS Listeners    forum.springsource.org

Hi, Spring JMS API(s) allow for easy configuration of JMS. Is there a recommendation or documentation for deciding the total number of listeners that can be configured on a single server ...

100. problem I can't figure out with spring jms remoting    forum.springsource.org

hi, guys I find a problem with spring jms remoting, maybe it's not problem, here is the details: when I use DefaultMessageListenerContainer with JmsInvokerServiceExporter, the Message can't be received and can't ...