<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Simplifying Spring’s JMS configuration for JndiTemplate</title>
	<atom:link href="http://www.stevideter.com/2008/08/25/simplifying-spring%e2%80%99s-jms-configuration-for-jnditemplate/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stevideter.com/2008/08/25/simplifying-spring%e2%80%99s-jms-configuration-for-jnditemplate/</link>
	<description>Technology, code, and thoughts by Stevi Deter</description>
	<lastBuildDate>Thu, 15 Dec 2011 15:20:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Girish</title>
		<link>http://www.stevideter.com/2008/08/25/simplifying-spring%e2%80%99s-jms-configuration-for-jnditemplate/comment-page-1/#comment-20495</link>
		<dc:creator>Girish</dc:creator>
		<pubDate>Tue, 19 Apr 2011 14:51:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/?p=28#comment-20495</guid>
		<description>Hi,
   I am trying to put message into the queue with the help of Tibco EMS and trying to read it with java(jms). Till now we were using Wehsphere, now we are changing it to Tomcat. So could you please help me out in this. I want to know what all configurations I need to do in tomcat for jms thing to run.. 
changes in web.xml as well..

Thanks,
Girish.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
   I am trying to put message into the queue with the help of Tibco EMS and trying to read it with java(jms). Till now we were using Wehsphere, now we are changing it to Tomcat. So could you please help me out in this. I want to know what all configurations I need to do in tomcat for jms thing to run..<br />
changes in web.xml as well..</p>
<p>Thanks,<br />
Girish.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Archana</title>
		<link>http://www.stevideter.com/2008/08/25/simplifying-spring%e2%80%99s-jms-configuration-for-jnditemplate/comment-page-1/#comment-15788</link>
		<dc:creator>Archana</dc:creator>
		<pubDate>Thu, 02 Dec 2010 17:01:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/?p=28#comment-15788</guid>
		<description>Hey nevermind,

I figured out that I have to use &quot;FTQueueConnectionFactory&quot; because I am using queues. I could able to fix all the issues and above method is working great.

Thanks,</description>
		<content:encoded><![CDATA[<p>Hey nevermind,</p>
<p>I figured out that I have to use &#8220;FTQueueConnectionFactory&#8221; because I am using queues. I could able to fix all the issues and above method is working great.</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Archana</title>
		<link>http://www.stevideter.com/2008/08/25/simplifying-spring%e2%80%99s-jms-configuration-for-jnditemplate/comment-page-1/#comment-15736</link>
		<dc:creator>Archana</dc:creator>
		<pubDate>Wed, 01 Dec 2010 15:08:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/?p=28#comment-15736</guid>
		<description>Hi stevi,

Could you please help me doing the above configuration in my project, I am also using Tibco JMS with Tomcat and Spring app, my current serverUrl is hardcoded like below in my spring context file:

 
        
        
        
        
    
    
            

               
        
    

I am trying to move the serverUrl out of the code and want to config it in tomcat somewhere like you did above.

I am not able to figure out what should my tomcat serverl.xml should have for the following :

FTTopicConnectionFactory

And also could you please post your configuration from tomcat end, like the jms.properties what it has and the above FTTopicConnectionFactory details.

Thanks for your help.
golamari</description>
		<content:encoded><![CDATA[<p>Hi stevi,</p>
<p>Could you please help me doing the above configuration in my project, I am also using Tibco JMS with Tomcat and Spring app, my current serverUrl is hardcoded like below in my spring context file:</p>
<p>I am trying to move the serverUrl out of the code and want to config it in tomcat somewhere like you did above.</p>
<p>I am not able to figure out what should my tomcat serverl.xml should have for the following :</p>
<p>FTTopicConnectionFactory</p>
<p>And also could you please post your configuration from tomcat end, like the jms.properties what it has and the above FTTopicConnectionFactory details.</p>
<p>Thanks for your help.<br />
golamari</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Irfan Ansari</title>
		<link>http://www.stevideter.com/2008/08/25/simplifying-spring%e2%80%99s-jms-configuration-for-jnditemplate/comment-page-1/#comment-1042</link>
		<dc:creator>Irfan Ansari</dc:creator>
		<pubDate>Thu, 02 Apr 2009 19:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/?p=28#comment-1042</guid>
		<description>Hi Stevi,

Thanks for your reply.

I haven&#039;t started the other application which is listening on port 2099 and have queue&#039;s runing.

Actually  I wanted to see if my application deploys/starts successfully, if the other application is not runing, but it failed.
I&#039;m not passing any user/password and not sure where its required.

Thanks &amp; Regards,
Irfan</description>
		<content:encoded><![CDATA[<p>Hi Stevi,</p>
<p>Thanks for your reply.</p>
<p>I haven&#8217;t started the other application which is listening on port 2099 and have queue&#8217;s runing.</p>
<p>Actually  I wanted to see if my application deploys/starts successfully, if the other application is not runing, but it failed.<br />
I&#8217;m not passing any user/password and not sure where its required.</p>
<p>Thanks &amp; Regards,<br />
Irfan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stevi</title>
		<link>http://www.stevideter.com/2008/08/25/simplifying-spring%e2%80%99s-jms-configuration-for-jnditemplate/comment-page-1/#comment-1039</link>
		<dc:creator>stevi</dc:creator>
		<pubDate>Thu, 02 Apr 2009 17:55:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/?p=28#comment-1039</guid>
		<description>Looks like your connection is being refused. Have you verified the username and password?</description>
		<content:encoded><![CDATA[<p>Looks like your connection is being refused. Have you verified the username and password?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Irfan Ansari</title>
		<link>http://www.stevideter.com/2008/08/25/simplifying-spring%e2%80%99s-jms-configuration-for-jnditemplate/comment-page-1/#comment-1037</link>
		<dc:creator>Irfan Ansari</dc:creator>
		<pubDate>Thu, 02 Apr 2009 15:18:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/?p=28#comment-1037</guid>
		<description>Here is the config

	&lt;!-- JMS Connection factory --&gt;
			
		
			
		
		
			QueueConnectionFactory
		
		
		
		
	
	

	&lt;!-- JMS Destination --&gt;
	
		
			
		
		
			queue/PricingQueue
		
		
		
		
	

Regards,
Irfan</description>
		<content:encoded><![CDATA[<p>Here is the config</p>
<p>	<!-- JMS Connection factory --></p>
<p>			QueueConnectionFactory</p>
<p>	<!-- JMS Destination --></p>
<p>			queue/PricingQueue</p>
<p>Regards,<br />
Irfan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Irfan Ansari</title>
		<link>http://www.stevideter.com/2008/08/25/simplifying-spring%e2%80%99s-jms-configuration-for-jnditemplate/comment-page-1/#comment-1036</link>
		<dc:creator>Irfan Ansari</dc:creator>
		<pubDate>Thu, 02 Apr 2009 15:17:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/?p=28#comment-1036</guid>
		<description>Thanks  Stevi,

I have used these settings for my application as below

		
		
			
		
		
			QueueConnectionFactory
		
		
		
		
	


and 


		
			
		
		
			queue/DataQueue
		
		
		
		
	

But when deploying this application it throws error for  listener


		
		
		
		
		

and errors are as below

2009-04-02 16:04:12,500 DEBUG [org.jnp.interfaces.NamingContext] Failed to connect to localhost:2099
javax.naming.CommunicationException: Failed to connect to server localhost:2099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:2099 [Root exception is java.net.ConnectException: Connection refused: connect]]
	at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:274)
	at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1533)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
	at javax.naming.InitialContext.lookup(InitialContext.java:392)
	at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:123)
	at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:85)
	at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:121)
	at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:146)
	at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:93)
	at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)
	at org.springframework.jndi.JndiObjectTargetSource.getTarget(JndiObjectTargetSource.java:126)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:184)
	at $Proxy56.createQueueConnection(Unknown Source)
	at org.springframework.jms.listener.DefaultMessageListenerContainer102.createConnection(DefaultMessageListenerContainer102.java:71)
.
.
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:2099 [Root exception is java.net.ConnectException: Connection refused: connect]
	at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:248)
	... 173 more
Caused by: java.net.ConnectException: Connection refused: connect

Any ideas?
Best Regards,
Irfan</description>
		<content:encoded><![CDATA[<p>Thanks  Stevi,</p>
<p>I have used these settings for my application as below</p>
<p>			QueueConnectionFactory</p>
<p>and </p>
<p>			queue/DataQueue</p>
<p>But when deploying this application it throws error for  listener</p>
<p>and errors are as below</p>
<p>2009-04-02 16:04:12,500 DEBUG [org.jnp.interfaces.NamingContext] Failed to connect to localhost:2099<br />
javax.naming.CommunicationException: Failed to connect to server localhost:2099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:2099 [Root exception is java.net.ConnectException: Connection refused: connect]]<br />
	at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:274)<br />
	at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1533)<br />
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)<br />
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)<br />
	at javax.naming.InitialContext.lookup(InitialContext.java:392)<br />
	at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:123)<br />
	at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:85)<br />
	at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:121)<br />
	at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:146)<br />
	at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:93)<br />
	at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)<br />
	at org.springframework.jndi.JndiObjectTargetSource.getTarget(JndiObjectTargetSource.java:126)<br />
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:184)<br />
	at $Proxy56.createQueueConnection(Unknown Source)<br />
	at org.springframework.jms.listener.DefaultMessageListenerContainer102.createConnection(DefaultMessageListenerContainer102.java:71)<br />
.<br />
.<br />
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:2099 [Root exception is java.net.ConnectException: Connection refused: connect]<br />
	at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:248)<br />
	&#8230; 173 more<br />
Caused by: java.net.ConnectException: Connection refused: connect</p>
<p>Any ideas?<br />
Best Regards,<br />
Irfan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stevi</title>
		<link>http://www.stevideter.com/2008/08/25/simplifying-spring%e2%80%99s-jms-configuration-for-jnditemplate/comment-page-1/#comment-1024</link>
		<dc:creator>stevi</dc:creator>
		<pubDate>Tue, 31 Mar 2009 16:30:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/?p=28#comment-1024</guid>
		<description>Irfan,

I&#039;ve been meaning to do a follow-up post about this very issue. What you want to do is configure to use a proxy interface at startup. You need to add two properties to you connection factory, proxyInterface and lookupOnStartup. We also find that setting the cache property to false also helps, as this allows the application to recover if it fails for any particular attempt to use the topic connection. We have low enough volume that it&#039;s not a performance issue for us.

&lt;bean id=&quot;topicConnectionFactory&quot; class=&quot;org.springframework.jndi.JndiObjectFactoryBean&quot;/&gt;
       &lt;property name=&quot;jndiTemplate&quot; ref=&quot;jndiTemplate&quot;/&gt;
       &lt;property name=&quot;jndiName&quot; value=&quot;FTTopicConnectionFactory&quot;/&gt;
	&lt;property name=&quot;proxyInterface&quot; value=&quot;javax.jms.TopicConnectionFactory&quot; /&gt;
	&lt;property name=&quot;lookupOnStartup&quot; value=&quot;false&quot; /&gt;
	&lt;property name=&quot;cache&quot; value=&quot;false&quot; /&gt;&lt;br /&gt;
    &lt;/bean&gt;
</description>
		<content:encoded><![CDATA[<p>Irfan,</p>
<p>I&#8217;ve been meaning to do a follow-up post about this very issue. What you want to do is configure to use a proxy interface at startup. You need to add two properties to you connection factory, proxyInterface and lookupOnStartup. We also find that setting the cache property to false also helps, as this allows the application to recover if it fails for any particular attempt to use the topic connection. We have low enough volume that it&#8217;s not a performance issue for us.</p>
<p>&lt;bean id=&#8221;topicConnectionFactory&#8221; class=&#8221;org.springframework.jndi.JndiObjectFactoryBean&#8221;/&gt;<br />
       &lt;property name=&#8221;jndiTemplate&#8221; ref=&#8221;jndiTemplate&#8221;/&gt;<br />
       &lt;property name=&#8221;jndiName&#8221; value=&#8221;FTTopicConnectionFactory&#8221;/&gt;<br />
	&lt;property name=&#8221;proxyInterface&#8221; value=&#8221;javax.jms.TopicConnectionFactory&#8221; /&gt;<br />
	&lt;property name=&#8221;lookupOnStartup&#8221; value=&#8221;false&#8221; /&gt;<br />
	&lt;property name=&#8221;cache&#8221; value=&#8221;false&#8221; /&gt;&lt;br /&gt;<br />
    &lt;/bean&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Irfan Ansari</title>
		<link>http://www.stevideter.com/2008/08/25/simplifying-spring%e2%80%99s-jms-configuration-for-jnditemplate/comment-page-1/#comment-1023</link>
		<dc:creator>Irfan Ansari</dc:creator>
		<pubDate>Tue, 31 Mar 2009 16:15:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/?p=28#comment-1023</guid>
		<description>Hi Stevi,

I have everything working fine and the only issue is my application reads the queue on some remote location and when starting the application if the remote application is not runing my application doesn&#039;t start.


           
                  
                         
                            com.tibco.tibjms.naming.TibjmsInitialContextFactory
                         
                         
                            ${jms.jndicontexturl}
                         
                  
           
    

In above configuration if the java.naming.provider.url is not accessible, application simply doesn&#039;t start.

Any ideas?

Thanks &amp; Regards,
Irfan</description>
		<content:encoded><![CDATA[<p>Hi Stevi,</p>
<p>I have everything working fine and the only issue is my application reads the queue on some remote location and when starting the application if the remote application is not runing my application doesn&#8217;t start.</p>
<p>                            com.tibco.tibjms.naming.TibjmsInitialContextFactory</p>
<p>                            ${jms.jndicontexturl}</p>
<p>In above configuration if the java.naming.provider.url is not accessible, application simply doesn&#8217;t start.</p>
<p>Any ideas?</p>
<p>Thanks &amp; Regards,<br />
Irfan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to configure a secure JMS connection using Spring &#124; Moving the Curve</title>
		<link>http://www.stevideter.com/2008/08/25/simplifying-spring%e2%80%99s-jms-configuration-for-jnditemplate/comment-page-1/#comment-219</link>
		<dc:creator>How to configure a secure JMS connection using Spring &#124; Moving the Curve</dc:creator>
		<pubDate>Fri, 05 Sep 2008 19:14:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/?p=28#comment-219</guid>
		<description>[...] a comment to my previous post about configuring JMS via Spring, Vikas Kadam asked about configuring a connection to a secure TIBCO EMS topic or queue. As fate [...]</description>
		<content:encoded><![CDATA[<p>[...] a comment to my previous post about configuring JMS via Spring, Vikas Kadam asked about configuring a connection to a secure TIBCO EMS topic or queue. As fate [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

