tag:blogger.com,1999:blog-599554868473356802.post8475998810224371704..comments2023-04-05T04:32:01.032-07:00Comments on Another Double Espresso Please!: Spring, JMS, Listener Adapters and ContainersGeraint Joneshttp://www.blogger.com/profile/09112495975196330505noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-599554868473356802.post-56801066015178598182013-10-03T07:03:23.751-07:002013-10-03T07:03:23.751-07:00Geraint, any help in setting a different listener ...Geraint, any help in setting a different listener container than using the default container? Chandra Mohanhttps://www.blogger.com/profile/11809615797979046708noreply@blogger.comtag:blogger.com,1999:blog-599554868473356802.post-51713126412271699742013-01-11T11:56:44.568-08:002013-01-11T11:56:44.568-08:00Hi Ramesh
My best guess would be the jar versions...Hi Ramesh<br /><br />My best guess would be the jar versions. At runtime, your code is accessing a different Websphere MQ jar to the one that the code got compiled with. Check the classpath Tomcat is using.<br /><br />GeraintGeraint Joneshttps://www.blogger.com/profile/09112495975196330505noreply@blogger.comtag:blogger.com,1999:blog-599554868473356802.post-40300487741112855982013-01-11T09:06:33.096-08:002013-01-11T09:06:33.096-08:00I am trying to use the MessageListener with Tomcat...I am trying to use the MessageListener with Tomcat trying to connect to Websphere MQ. But when I do that I am consistently getting the exception<br />Exception in thread "main" java.lang.AbstractMethodError: com.ibm.mq.jms.MQQueueConnectionFactory.createConnection(Ljava/lang/String;Ljava/lang/String;)Ljavax/jms/Connection;<br /> at org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter.doCreateConnection(UserCredentialsConnectionFactoryAdapter.java:175)<br /><br /><br />Any help will be highly appreciated<br /><br />Here is the snippet of my spring configuration<br /> <br /> <br /> <br /><br /><br /><br /> <br /> <br /><br /><br /><br /><br /><br /><br /><br />HOST<br />PORT<br /> QMGR<br /> CHANNEL<br />1<br /><br />KesavRameshhttps://www.blogger.com/profile/01894230485872143612noreply@blogger.comtag:blogger.com,1999:blog-599554868473356802.post-16819180651526904662012-09-12T07:58:55.719-07:002012-09-12T07:58:55.719-07:00Yes it is possible but if the queue in question is...Yes it is possible but if the queue in question is point to point then only one of the listeners will receive the message. If the queue is publish subscribe then all the listeners for that same destination will receive the message.Geraint Joneshttps://www.blogger.com/profile/09112495975196330505noreply@blogger.comtag:blogger.com,1999:blog-599554868473356802.post-34407973300637326402012-09-12T06:09:03.307-07:002012-09-12T06:09:03.307-07:00Very nice post.
Is it possible to specify multipl...Very nice post.<br /><br />Is it possible to specify multiple listeners with the SAME destination WITHIN the same listener-container ?<br />EDHhttps://www.blogger.com/profile/08340651507449123061noreply@blogger.comtag:blogger.com,1999:blog-599554868473356802.post-55790135241258365922011-10-15T09:53:59.201-07:002011-10-15T09:53:59.201-07:00Nice post.
But this Spring container works for sim...Nice post.<br />But this Spring container works for simple cases. <br /><br />What about reconnections with JMS? delivery types and etc.amagdenkohttps://www.blogger.com/profile/16938182606133817012noreply@blogger.comtag:blogger.com,1999:blog-599554868473356802.post-71984683829101307692011-10-14T07:10:31.123-07:002011-10-14T07:10:31.123-07:00Completely agree, Spring is the best framework ava...Completely agree, Spring is the best framework available now be it JMS, JDBC or Remoting its quite easy to use them by using Spring framework with the help of JMSTemplate and JdbcTemplate etc.<br /><br />Thanks<br />Javin<br /><a href="http://javarevisited.blogspot.com/2011/07/string-vs-stringbuffer-vs-stringbuilder.html" rel="nofollow">String vs StringBuffer vs StringBuilder in Java</a>javin paulhttps://www.blogger.com/profile/15028902221295732276noreply@blogger.com