Author |
Message
|
rediffuser |
Posted: Wed Oct 06, 2004 5:55 am Post subject: Help needed for MDB/WebSphere MQ |
|
|
Novice
Joined: 06 Oct 2004 Posts: 10
|
Hello I am trying to use MDB with WebSphere MQ JMS Provider.
I have MQ setup ready with queues and Queue Manager.
Can anybody tell me what are steps required at websphere end
(I guess I need to setup Qfactory / Q and Listner) I tried it with but my listner is not able to start
Urgent help is appriciated |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Oct 06, 2004 5:58 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
In order to set up receiving MDB's you need to read the Websphere Application Server Configuration manual.
On WAS set up the ports (Virtual ports linking to the queues)
Then link the MDB to the virtual port.
Et Voila!  |
|
Back to top |
|
 |
rediffuser |
Posted: Wed Oct 06, 2004 6:09 am Post subject: Thanks for Reply. |
|
|
Novice
Joined: 06 Oct 2004 Posts: 10
|
Thanks for Reply.
Yes!! Refering Websphere Conf. Manual. I have already tried all steps.
I have created
1. WebSphere MQ JMS Provider > WebSphere MQ Queue Connection
Factories > MyMQFactory
2. WebSphere MQ JMS Provider > WebSphere MQ Queue Destinations >
MQ MQueue
3. Application Servers > tmup_server1 > Message Listener Service >
MyListenerPort
In ibm-ejb-jar-bnd.xmi I am putting
<ejbBindings xmi:type="ejbbnd:MessageDrivenBeanBinding" xmi:id="MessageDrivenBeanBinding_MyMDB" listenerInputPortName="MyListenerPort">
<enterpriseBean xmi:type="ejb:MessageDriven" href="META-INF/ejb-jar.xml#MessageDriven_MyMDB"/>
</ejbBindings>
Thanks |
|
Back to top |
|
 |
rediffuser |
Posted: Wed Oct 06, 2004 6:14 am Post subject: But it didn't work |
|
|
Novice
Joined: 06 Oct 2004 Posts: 10
|
Sorry forgot to tell..
Even after following stpes It didn't work??
Am following correct steps?
I was getting error while starting listner.
Also getting errors as -->
Message(s)
The WMQQueueDefiner MBean has encountered an error.
WMSG0314E: Unexpected error occurred. MQ reason code 2,033, please check the MQSeries Information Center for a description of the error.
Under -->
WebSphere MQ JMS Provider > WebSphere MQ Queue Destinations -->MyQueue
I tried to read/write MQ Q with java apllication.. Its working fine
Am following correct steps? |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Oct 06, 2004 8:29 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Did you set MQ_INSTALL_ROOT in the WebSphere Variables? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
vennela |
Posted: Wed Oct 06, 2004 8:34 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
|
Back to top |
|
 |
rediffuser |
Posted: Wed Oct 06, 2004 10:02 am Post subject: |
|
|
Novice
Joined: 06 Oct 2004 Posts: 10
|
Yes MQ_INSTALL_ROOT already set.
Does any body have idea what could be reason behind getting errors
Message(s)
The WMQQueueDefiner MBean has encountered an error.
WMSG0314E: Unexpected error occurred. MQ reason code 2,033, please check the MQSeries Information Center for a description of the error.
??
(I tried to read/write MQ Q with java apllication.. Its working fine)
or why listener is not able to start? |
|
Back to top |
|
 |
rediffuser |
Posted: Wed Oct 06, 2004 10:06 am Post subject: |
|
|
Novice
Joined: 06 Oct 2004 Posts: 10
|
One more thing
DO I need JMS server (on websphere side ) if I am using WebSphere MQ JMS Provider?? |
|
Back to top |
|
 |
vennela |
Posted: Wed Oct 06, 2004 10:56 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Quote: |
DO I need JMS server (on websphere side ) if I am using WebSphere MQ JMS Provider?? |
NO |
|
Back to top |
|
 |
bower5932 |
Posted: Wed Oct 06, 2004 10:58 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
If I understand your message above, it sounds like you are getting a 2033 error which simply means no message available. However, it mentions an MBean instead of an MDB. My guess would be that you have something else running and it is timing out while trying to get messages? |
|
Back to top |
|
 |
bower5932 |
Posted: Wed Oct 06, 2004 11:11 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
I think that I want to stand corrected on previous append. I'd like more information on what you are trying to do. I'm guessing the MBean is probably what talks to WMQ to get the actual queue defined. The 2033 is probably an error that is related to underlying WMQ administration not getting back a response to create a queue. So, where exactly does this 2033 show up at? Do you have your command server running on the machine where you are defining queues (strmqcsv qmgr-name)? |
|
Back to top |
|
 |
rediffuser |
Posted: Wed Oct 06, 2004 11:22 am Post subject: |
|
|
Novice
Joined: 06 Oct 2004 Posts: 10
|
think that I want to stand corrected on previous append. I'd like more information on what you are trying to do. I'm guessing the MBean is probably what talks to WMQ to get the actual queue defined. The 2033 is probably an error that is related to underlying WMQ administration not getting back a response to create a queue. So, where exactly does this 2033 show up at? Do you have your command server running on the machine where you are defining queues (strmqcsv qmgr-name)?
-->
I have Webspehere MQ running having Queue and manager.
I am trying to create MDB which will trigger, when there is message in one of MQueue.
2033 show up when I click MQConfig Link which appears at bottom after creating "Websphere MQ QUeue Destination"
I don't have command server running on the machine (why its required?)
Yes probably you are right !!
MBean is probably what talks to WMQ to get the actual queue defined. The 2033 is probably an error that is related to underlying WMQ administration not getting back a response to create a queue
But what could be reason behind getting this..Any idea
(I am able to send/get message thr java application.. )
Thanks |
|
Back to top |
|
 |
vennela |
Posted: Wed Oct 06, 2004 11:31 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
What did you do from first?
How did you build your application? Is that application an MDB (EJB) application? Did you deploy the .ear file ?
An MDB should not get a 2033. An application that is reading the queue might get but an MDB should not.
Can you post the code of the MDB. |
|
Back to top |
|
 |
rediffuser |
Posted: Wed Oct 06, 2004 12:12 pm Post subject: |
|
|
Novice
Joined: 06 Oct 2004 Posts: 10
|
I think I should explain this again
I have MQ running on one machine (having Queues and Manager)
and MDB application running on another machine
I am trying to develop MDB which will trigger when there is message in one of Queue (of MQ ) -- PTP messaging
For this I have created
WebSphere MQ JMS Provider > WebSphere MQ Queue Connection Factories > MyMQFactory
WebSphere MQ JMS Provider > WebSphere MQ Queue Destinations > MyQueue
Application Servers > tmup_server1 > Message Listener Service > MyMQListenerPort (using above factory and Destination Queue)
My MDB is normal MDB (nothing special) having
( <ejbBindings xmi:type="ejbbnd:MessageDrivenBeanBinding" xmi:id="MessageDrivenBeanBinding_MyMDB" listenerInputPortName="MyMQListenerPort">
<enterpriseBean xmi:type="ejb:MessageDriven" href="META-INF/ejb-jar.xml#MessageDriven_MyMDB"/>
</ejbBindings>) in ibm-ejb-jar-bnd.xmi
Problem is my MDB is not able to trigger when there is message in MQ Queue
I think there could be some configuration related problem
I am guessing
1) either Listener Service (which is not able to start)
or
2) because of error whcih I am getting when I click Link "MQ Config" in
WebSphere MQ JMS Provider > WebSphere MQ Queue Destinations > MyQueue > Additional Properties > MQConfig
Message(s)
The WMQQueueDefiner MBean has encountered an error.
WMSG0314E: Unexpected error occurred. MQ reason code 2,033, please check the MQSeries Information Center for a description of the error
Now my question is am I missing anything in configuration??
Hope now I have explained it properly..
Any clues?? |
|
Back to top |
|
 |
vennela |
Posted: Wed Oct 06, 2004 12:23 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Are you building the app right?
I am not sure if you have to do this
Quote: |
In ibm-ejb-jar-bnd.xmi I am putting
<ejbBindings xmi:type="ejbbnd:MessageDrivenBeanBinding" xmi:id="MessageDrivenBeanBinding_MyMDB" listenerInputPortName="MyListenerPort">
<enterpriseBean xmi:type="ejb:MessageDriven" href="META-INF/ejb-jar.xml#MessageDriven_MyMDB"/>
</ejbBindings>
|
If you build your .ear file right all you have to do is deploy and nothing else.
WHY are you doing this?
Same question again... how is this app built? |
|
Back to top |
|
 |
|