File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes Spring configuration for Testing JMS using Junit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring configuration for Testing JMS using Junit" Watch "Spring configuration for Testing JMS using Junit" New topic
Author

Spring configuration for Testing JMS using Junit

Santosh Ramachandrula
Ranch Hand

Joined: Apr 04, 2004
Posts: 252
Hi All,
I am trying to test (using JUnit) a Helper class in WEB application (deployed to JBOSS) that internally uses JMS (Junit is out of container). For this I would like to know how do I configure the Spring context file for the JMS connection factory and Queue that I am using (consider "jms/app1ToApp2QueueConnectionFactory" and "jms/app1ToApp2SendQueue" as the JNDI names for the connection factory and the queue)...

Right now I have following in my configuration file::





Any ideas/suggestions would be of great help.


Thanks,
Santosh
 
Don't get me started about those stupid light bulbs.
 
subject: Spring configuration for Testing JMS using Junit
 
Similar Threads
How to connect to a remote MQ Queue using Spring MDPs and Weblogic
Problem with PropertyPlaceholderConfigurer
Spring JMS with IBM Websphere MQ5.3.1
can't create connection to JBoss MQ using Spring JMS
Spring+JMS+OC4J