Posted: Sun Apr 20, 2008 9:56 pm Post subject: Error Trying to publish a MQ message
Newbie
Joined: 20 Apr 2008 Posts: 2
Hi,
We have a seperate team that sets up the MQ server.I have the hostdetails and all revelant info from the team.
I have written a Java code to publish a simple message on the Queue.
I however get the below error.
Note : Im trying to get the revelant jars from the net but my connection keeps breaking .We use MQ version 6 .I have a few jars but the version may be out of sync.Also i dont have connector.jar.
Please help me by sending the necessary jars
See the error
Exception in thread "main" java.lang.NoClassDefFoundError: javax/resource/Resour
ceException
at com.ibm.mq.MQEnvironment.<clinit>(MQEnvironment.java:242)
at MQPublisher.init(MQPublisher.java:33)
at MQPublisher.main(MQPublisher.java:90)
Posted: Mon Apr 21, 2008 12:37 am Post subject: Re: Error Trying to publish a MQ message
Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
stacey wrote:
We have a seperate team that sets up the MQ server.I have the hostdetails and all revelant info from the team.
...
Note : Im trying to get the revelant jars from the net but my connection keeps breaking .We use MQ version 6 .I have a few jars but the version may be out of sync.Also i dont have connector.jar.
Please help me by sending the necessary jars
FWIW I always recommend a client installation rather than just putting the jars in the path; you will find a number of discussions on the forum on the pros and cons of these two methods.
Tell the separate team you need an MQ Client installation or the jar files - they'll have the relevent files bundled with their MQServer install and you can source them locally. _________________ Honesty is the best policy.
Insanity is the best defence.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum