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 » Listener servlet not notified

Post new topic  Reply to topic
 Listener servlet not notified « View previous topic :: View next topic » 
Author Message
ppietrus
PostPosted: Fri Feb 15, 2002 9:51 am    Post subject: Reply with quote

Newbie

Joined: 14 Feb 2002
Posts: 3


Hi,
I am using MQSeries with WAS 3.5, we have a bunch of servlets
deployed which register as listeners with some MQSeries queues.
Most of the time this setup works ok. But once in a while
I see that I have a message waiting in my queue, yet my servlet
is not notified. Then the next day after the system is rebooted
- with no configuration changes is miraculously starts to work..

Now however we hit this problem again and refuses to go away
(even by miracle) ... - any thoughts on this?


Thanks!
Pawel

Back to top
View user's profile Send private message
bduncan
PostPosted: Tue Feb 19, 2002 11:42 am    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

Some questions:
1) are you using triggering, or are these servlets always running?
2) are you doing a single MQGET with an unlimited wait time, or looping MQGETs with some arbitrary timeout period (and if so, what is the timeout period)?
3) Are the servlets running in a simple servlet-runner, or a full fledged application server?


_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
ppietrus
PostPosted: Tue Feb 19, 2002 1:48 pm    Post subject: Reply with quote

Newbie

Joined: 14 Feb 2002
Posts: 3

Hey Brandon,
Thanks for your reply. Here are answers to your questions:

> 1) are you using triggering, or are these servlets always running?

They're always running - actually now, during development, they don't
load at startup, I hit the ones I need with a browser to cause
them to load, and start processing messages.

>2) are you doing a single MQGET with an unlimited wait time, or looping MQGETs
> with some arbitrary timeout period (and if so, what is the timeout period)?

I am using JMS message listeners and register to
be asynchronously notified by MQ
when a new message appears in queue.
I am not calling any polling or proprietary MQ APIs or setting any timeouts.

>3) Are the servlets running in a simple servlet-runner, or a full fledged >application server?

Servlets are deployed to WebSphere Advanced Edition 3.5.4 server

Thanks,
Pawel
Back to top
View user's profile Send private message
ppietrus
PostPosted: Thu Feb 28, 2002 2:17 pm    Post subject: Reply with quote

Newbie

Joined: 14 Feb 2002
Posts: 3

Seems the problem is solved

The connection factory I was using was transactional (wsqcf) while
my listener servlet obviously did not have an associated
transactional context - and it was never notified. As soon
as I switched to non transactional factory (qcf) all started
to work just fine.
One would expect to get an error if such combination is not allowed
but...


Pawel

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Listener servlet not notified
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.