[jboss-dev-forums] [Design of JCA on JBoss] - Mock JMS Provider
weston.price@jboss.com
do-not-reply at jboss.com
Fri Nov 17 05:56:31 EST 2006
I am nearing completion on the first 'rough' pass of a MockJMS framework that allows exercising the JMS/JCA adapter outside of the application server. The fundamentals are working and I can send messages, test DLQ handling and simulate provider failures without having to deploy anything to the application server. While this is not end to end testing, I believe it does provide a decent framework for excercising the fundamental purposes of the inflow adapter:
Provider connectivity
SeverSession/Pool management
before/onMessage/after delivery semantics
Correct tranasaction enlistment based on transacted/non-transacted delivery
While most of the code is stubbed out, the necessary functions to get a basic working model are implemented. The trickiest part was extending JmsActivation and the DLQQueueHandler to override looking up the administrative objects from a real JNDI tree rather than simple instantiation.
This is not a mechanism to test JMS provider functionality. We have that pretty well covered in the rest of the testsuite.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986793#3986793
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986793
More information about the jboss-dev-forums
mailing list