• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

IBM Websphere v6 and JBoss 4x MQ Connectivity - Please Help

 
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On Server Side, i have IBM Websphere v6...

On Client Side, i have JBoss 4.0.3SP1....


I want to use MQ technology. I Need Client Side Settings.


1) I read that it requires "wmq.jmsra.rar" <--- Not able to find this rar file on searches but found 2 files(com.ibm.mq.jar and com.ibm.mqjms.jar) of this rar on IBM Server's folder i.e \IBM\WebSphere\AppServer\lib\WMQ\java\lib. Should i make .rar of these two files


2) I Found two files ""messaging-service.xml"" and "wsmq-ds.xml". when i put those in my Jboss jms folder "\server\default\deploy\jms". I get following error on server. "No ClassLoaders found for: org.jboss.jms.server.ServerPeer; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.jms.server.ServerPeer)".

where could i get this ServerPeer .jar file?

Kindly Guide me how to make connection further i stuck on the way.

Thank you

Files are :
wsmq-ds.xml
messaging-service.xml
 
Azrael Noor
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Our Green Horns are busy in eating grass

I am moving forward of my own, what i do is, i have downloaded Websphere MQ V7

and i copied following wmq.jmsra.rar (attached below) from it's folder: \IBM\WebSphere MQ\java\lib\jca

I put it in jboss deploy folder which gives following error

___________________________________________________



_____________________________________________________

So Next work i am doing now is

Downloading WebSphere MQ V6.0.2.

Let's See how it will Go.

Will Update, Boss Gonna Kick ma


wmq.jmsra.rar (V7) Download
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To be honest, I have no clue what you are trying. So can't really help. Can you explain what you are trying to achieve?

 
Greenhorn
Posts: 12
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is this a toy application or just for your own study? Because if it is going to be a real application that your business depends on then you should be aware that support from IBM requires that you actually install the full WMQ client. In addition to the WMQ Jar files, this installs utilities such as the ability to tun traces, display the version you have installed, the install verification test utilities and apply maintenance. Frankly, even if it is a toy application one wonders why anyone would attempt to get something working by guesswork rather than just run the vendor-supplied install. Also, if you run the IBM installer instead of grabbing the jar files from the V6 server you can use the V7 client. If you build the app on V7 client and run against V6 server it is compatible but it saves you from having to upgrade the client later (WMQ V6 is end of life as of Sept 2012).

Download the V7 client at http://bit.ly/SupportPacMQC7
Download the V6 client at http://bit.ly/SupportPacMQC6

WMQ V7 Using Java Manual
WMQ V6 Using Java Manual
 
Azrael Noor
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jaikiran Pai and Rob Woyatt

Server is sending JMS messages through WebsphereMQ and
client Jboss v6.0.2 is receiving the messages.

I don't know about server. what i know is the queue manager name, queuename, channel name etc.

I want to set my jboss server to receive messages from there for that what is am doing is above.

and ya it is not toy application.

What settings i have to do at jboss v4.0.3SP1 to recieve message from server(contains websphere mq to send messages)

i hope understood little bit.

Take Care and rob thank you for replying, already seen those links, you mean to say i should call IBM for settings of jboss??


Keep on updating what am i doing further. Thank you
 
Azrael Noor
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So here i proceed further

After Downloading WebSphere MQ V6.0.2 i got a rar file wmq.jmsra.rar which contains only four jar files

i.e dhbcore.jar, com.ibm.mqjms.jar, com.ibm.mq.jar and mqconnector.jar and there is ra.xml in meta-inf folder inside it. I have attached that file below.

I Copied that .rar file into my deploy/jms folder and i got following exception:

____________________


____________________

Don't know why this error occur, i have to check because i have chose correct version of rar file. Let's hope for the best.

Will update you guys soon.

If you have any idea then please tell.


Following attachment is of Websphere 6.0.2.10 Fix

wmq.jmsra.rar (V6)
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are going to just randomly use some jars from here and there then it isn't ever going to work. Have you read Rob's reply in this thread?
 
Azrael Noor
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jaikiran Pai

Actually i was trying to follow this link:
http://www.ibm.com/developerworks/websphere/library/techarticles/0710_ritchie/0710_ritchie.html

The Only link giving description of this connection. It has given the version, i have downloaded same version and copied required jar and rar to my jboss deployment. It is not picking the rar and giving that error in my previous posts. I am just using jars as mentioned there.

I read Rob, but i have nothing to take with server side, i mean i do not want MQ on my end at all. just need jars and rars to connect to server mq.
I am not building anything on Websphere MQ. i am just connectiong to a server having Websphere MQ installed, from my JBOSS.

Sir, What track you want me to follow? am i moving somewhere wrong?

Regards....
 
T.Rob Wyatt
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Azrael Noor wrote:Jaikiran Pai and Rob Wyatt
...
What settings i have to do at jboss v4.0.3SP1 to recieve message from server(contains websphere mq to send messages)
...
you mean to say i should call IBM for settings of jboss??



I don't know the JBoss settings, hopefully someone else here will help with that. I'm just suggesting to start with a correctly installed version of WMQ client. My experience from working many PMRs for many clients is that a ticket gets opened with something like "my WMQ JMS client isn't working." Then when we start digging in and the IBM tech says "well take a trace" or "run this diagnostic command" the reply comes back that these are not available because instead of a full install, someone copied the jar files over and tried to cobble it together themselves. At that point the IBM support person says "well if you want support you need to install the full client so we can run these diagnostics." As soon as the client is installed, the environment variables set as per the docs and the Initial Verification Test programs successfully, run, the application problem magically disappears. Of course, this does not fix the problem in every case but in about half the cases I've personally worked simply installing the WMQ client as per the vendor specs resolves the problem. I *always* start there.

And, no, I'm not suggesting calling IBM for JBoss settings. But if you have the full client install you can use the verification test programs to connect to the QMgr and verify your install and if those fail, you can and should call IBM for support. Once the IVT programs work, then and only then should you move on to getting JBoss running with WMQ except now it will be with a known working install instead of guesswork.

For what it's worth. I realize the culture of the JMS crowd is based on "just give me the jar files" and resistant to the notion of using vendor-provided install procedures such as these. Especially those that require root. However, since the WMQ client install includes a lot of functionality not delivered in the jar files, and since the full install is the only supported configuration, I haven't given up on trying to convince you guys to try it.
 
Azrael Noor
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

However, since the WMQ client install includes a lot of functionality not delivered in the jar files, and since the full install is the only supported configuration, I haven't given up on trying to convince you guys to try it.



This probably be the reason it's .rar file is throwing this exception:




So Sir you mean
first, i should purchase IBM Websphere MQ or freely download it from some torrent,
have a full install it on system
and then copy require rar's and use the IVT or Diagnostic Trace to solve problems?
am i getting right

Thank you for telling that.

 
T.Rob Wyatt
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Azrael Noor wrote:

However, since the WMQ client install includes a lot of functionality not delivered in the jar files, and since the full install is the only supported configuration, I haven't given up on trying to convince you guys to try it.



So Sir you mean
first, i should purchase IBM Websphere MQ or freely download it from some torrent,
have a full install it on system
and then copy require rar's and use the IVT or Diagnostic Trace to solve problems?
am i getting right



No, I'm saying that you can download the FREE WMQ client from the links provided and install that on your JBoss server. Those links again are:

FREE WMQ V7 client: http://bit.ly/SupportPacMQC7
FREE WMQ V6 client: http://bit.ly/SupportPacMQC6

Note that the Ben Ritchie article that was linked provides instructions on how to configure JBoss to talk to a LOCALLY INSTALLED QMgr using XA. Since you are not connecting to a local WMQ server using shared memory connection as described in the article but instead are using a remote network connection, the article does not directly apply to your configuration. You won't be able to use bindings mode connections and therefore will not get XA functionality.

 
T.Rob Wyatt
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

T.Rob Wyatt wrote:Note that the Ben Ritchie article that was linked provides instructions on how to configure JBoss to talk to a LOCALLY INSTALLED QMgr using XA. Since you are not connecting to a local WMQ server using shared memory connection as described in the article but instead are using a remote network connection, the article does not directly apply to your configuration. You won't be able to use bindings mode connections and therefore will not get XA functionality.



Sorry, I needed to read Ben's article further. He *does* show you how to configure the Extended Transactional Client but the instructions assume you have a fully licensed WMQ Server installed locally. This is probably where the disconnect lies here. In the article Ben starts by assuming that WMQ Server is installed and then has you copy mqetclient.jar (the extended transactional client) to the server lib directory. What isn't mentioned in the article is that use of mqetclient.jar (the Extended Transactional Client) incurs a full WMQ license obligation on the client host server in addition to any license on the WMQ QMgr server. Because the article assumes a fully licensed WMQ install has been performed, it is correct to simply copy this jar file from the install directory to install_path/server/default/lib on the same host. Also because the article starts with a WMQ Server already locally installed, Ben doesn't walk you through obtaining the WMQ client and installing it.

Sooooo...to follow the article and stay in full compliance you'd want a licensed WMQ server install on the JBoss host and then just use the XA client components of it. If all you want is client and don't need XA then download the installs I've linked above.
 
Azrael Noor
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for sharing information.

No I need no client of IBM. Client is JBoss on my side and simply i copied .rar and.jar files available in library of Websphere MQ.
Well, i will give you update and seek your blessings in form of solutions shortly.
will keep on updating the thread the process i am going on to install the Client listening to Websphere MQ.
 
Azrael Noor
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So Guys Here are settings with which i able to Receive Message from Server installed with Websphere MQ, it take more then a week to understand such easy settings..........hufffffffffffffffffffff:

In MDB, in EJB.JAR file the settings are




In JBOSS.XML, we have following :




In WMQ-ds.xml, which should be in deploy/jms folder, which is not required []:


Following is file you have to put in deploy folder:
wmq.jmsra.rar (V6.0.1 to .11)

Following file need to put in default/lib folder

 
I've never won anything before. Not even a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic