Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMS Stub Code for Testing?

 
Jimmy Ho
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know where I can find some JMS stub code? That is, I want to instantiate JMS objects, and send/receive messages, but not actually have a transport mechanism underneath the covers supporting it. I just want some Java classes (possibly running in another thread) to just 'fake it' by acknowledging receipt of the messages or sending messages for my 'real' code to process.

Sometimes I like to just test some interfaces without having to go through and set up all the 'stuff' required to do real JMS/systems integration testing.
 
Shailesh Kini
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jimmy,

I feel Mock objects are appropriate for the situation you are describing here. You could either look at frameworks like Mockmaker, easymock, ejb3unit etc.. or write your own jms mock implementation.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic