This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am using jboss-4.0.5.GA and have defined JMS connection factories and queues. Everything is fine in the AppServer and all MDB's are deployed and work fine. I get a classcast exception while trying to do a lookup for the QueueConnectionFactory. The class being returned by JBoss is org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl as opposed to javax.jms.QueueConnectionFactory which is what i expect to get.
The connectionfactory is defined as below in the jms-ds.xml file in jboss..
The client program does a simple lookup for the connection factory and the relevent section is as shown below..
queueConnectionFactory = (javax.jms.QueueConnectionFactory Source code of javax.jms.QueueConnectionFactory)jndiContext.lookup( "jms/novaJMSConnectionFactory");
The above line fails with a ClassCastException because JBoss is not returning the connection factory typecasted to javax.jms.QueueConnectionFactory
Any advice, please?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com