Hi Folks,
I’m hoping somebody can help me here.
I’m having trouble running WebsphereMQ with jbossAS using the Spring framework.
When I send a message and reference the Queue details with values from the .properties file, everything is fine and I receive the message. My problem lies in trying to reference the ConnectionFactory via jndi (as shown below).
I have a Spring configuration file referencing the jndi name.
I have coppied wmq.jmsra.rar from Websphere to my
jboss deploy directory.
In the deploy directory, my –ds.xml files configure the destination and the ConnectionFactory thus:
The jndi binding appears to be successful when using jndi given the following server.log details:
But then I get an error creating a ConfigurableMessageListenerContainer bean.
There is a lot more content in the log file but it finishes:
My Spring configuration includes the following (The references to the .properties file are commented out) :
As I’m new to this level of programming, I don’t know if there are any more .xml configuration files I should be using.
I have tried several different ways of formatting the jndi reference in the Spring configuration, ie. jndi-name="java/NMQ_CF", jndi-name="java:/NMQ_CF", etc.
Another point I’m considering is that even though I have my –ds.xml and wmq.jmsra.rar files in C:/Servers/applications/deploy my .war file is deployed to c:/Servers/jboss_MWS_ESTSVC/jboss-as/server/production/deploy.
Help appreciated.
Thanks.