<?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>Tue, 23 Feb 2010 22:52:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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>
	<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-188</link>
		<dc:creator>stevi</dc:creator>
		<pubDate>Wed, 03 Sep 2008 16:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/?p=28#comment-188</guid>
		<description>Vikas, 

Are you able to log into the EMS servers directly using those passwords (e.g. using the EMS Administration Tool)? 

How are you setting the username and password into the session? 

Based on the error, that&#039;s where I&#039;d start looking, but don&#039;t know if this is useful to what you&#039;ve already tried.</description>
		<content:encoded><![CDATA[<p>Vikas, </p>
<p>Are you able to log into the EMS servers directly using those passwords (e.g. using the EMS Administration Tool)? </p>
<p>How are you setting the username and password into the session? </p>
<p>Based on the error, that&#8217;s where I&#8217;d start looking, but don&#8217;t know if this is useful to what you&#8217;ve already tried.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vikas Kadam</title>
		<link>http://www.stevideter.com/2008/08/25/simplifying-spring%e2%80%99s-jms-configuration-for-jnditemplate/comment-page-1/#comment-185</link>
		<dc:creator>Vikas Kadam</dc:creator>
		<pubDate>Wed, 03 Sep 2008 13:53:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevideter.com/?p=28#comment-185</guid>
		<description>Hi Stevi,
I have been struggling for last couple of days to configure TIBCO EMS from WebSphere environment.  This is the configurations.
I get invalid username and password error when I try to post message to corresponding Topic.  I have tried various things w/o any success.

 
		 
		
				
	 

	
    	
        	
            	com.tibco.tibjms.naming.TibjmsInitialContextFactory
            	tcp://EMS-UAT-001.aholdusa.com:26874,tcp://EMS-UAT-002.aholdusa.com:26874
            	tibusr
            	tibusr
        	
    	
	
	
	
    	
	

	 
		 
		 
	 


	    
	        
	    
	   	
	   	
	

Please let me know if you see anything obvious here.  Also, I do not want to create JNDI entry in WebSphere environment.  It should be done through config file at runtime.
Thanks,
- Vikas Kadam
vikas.kadam@ahold.com</description>
		<content:encoded><![CDATA[<p>Hi Stevi,<br />
I have been struggling for last couple of days to configure TIBCO EMS from WebSphere environment.  This is the configurations.<br />
I get invalid username and password error when I try to post message to corresponding Topic.  I have tried various things w/o any success.</p>
<p>            	com.tibco.tibjms.naming.TibjmsInitialContextFactory<br />
            	tcp://EMS-UAT-001.aholdusa.com:26874,tcp://EMS-UAT-002.aholdusa.com:26874<br />
            	tibusr<br />
            	tibusr</p>
<p>Please let me know if you see anything obvious here.  Also, I do not want to create JNDI entry in WebSphere environment.  It should be done through config file at runtime.<br />
Thanks,<br />
- Vikas Kadam<br />
<a href="mailto:vikas.kadam@ahold.com">vikas.kadam@ahold.com</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
