ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Help needed for MDB/WebSphere MQ

Post new topic  Reply to topic Goto page 1, 2  Next
 Help needed for MDB/WebSphere MQ « View previous topic :: View next topic » 
Author Message
rediffuser
PostPosted: Wed Oct 06, 2004 5:55 am    Post subject: Help needed for MDB/WebSphere MQ Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Oct 06, 2004 5:58 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
rediffuser
PostPosted: Wed Oct 06, 2004 6:09 am    Post subject: Thanks for Reply. Reply with quote

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
View user's profile Send private message
rediffuser
PostPosted: Wed Oct 06, 2004 6:14 am    Post subject: But it didn't work Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed Oct 06, 2004 8:29 am    Post subject: Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Wed Oct 06, 2004 8:34 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

If you are using WSAD then you might want to take a look at this article.

http://www7b.software.ibm.com/wsdd/library/techarticles/0307_wilkinson/wilkinson1.html

http://www-106.ibm.com/developerworks/websphere/library/techarticles/0307_wilkinson/wilkinson3.html
Back to top
View user's profile Send private message Send e-mail Visit poster's website
rediffuser
PostPosted: Wed Oct 06, 2004 10:02 am    Post subject: Reply with quote

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
View user's profile Send private message
rediffuser
PostPosted: Wed Oct 06, 2004 10:06 am    Post subject: Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Wed Oct 06, 2004 10:56 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
bower5932
PostPosted: Wed Oct 06, 2004 10:58 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
bower5932
PostPosted: Wed Oct 06, 2004 11:11 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
rediffuser
PostPosted: Wed Oct 06, 2004 11:22 am    Post subject: Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Wed Oct 06, 2004 11:31 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
rediffuser
PostPosted: Wed Oct 06, 2004 12:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Wed Oct 06, 2004 12:23 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » IBM MQ Java / JMS » Help needed for MDB/WebSphere MQ
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.