Solved

JMS processing few messages after that putting all the messages in pending list.

Posted on 2004-09-14
6
903 Views
Last Modified: 2008-01-16
We have Message Driven Beans listening to the queue.
We have a client which is sending JMS messages to the Queue. It sends 100s of messages one by one. On the server, eight messages are being listened to and processed. The rest are ending up in the pending messages.

Do you have any idea what could be going wrong and why would it not process the rest of the messages. I'm trying to debug using the eclipse, what I found out was, after eight messages, the listener method on the MDB, which is 'onMessage' is not at all called again.

Its very little information I have provided. If you want to know anything, like configuration details or code snippets, please let me know.

 
0
Comment
Question by:pandey5
  • 4
  • 2
6 Comments
 
LVL 11

Expert Comment

by:cjjclifford
ID: 12055302
how are you handling ACK of the messages? What transactionality handling is set for the MDB?
0
 
LVL 1

Author Comment

by:pandey5
ID: 12055646
ACK is AUTOACKNOWLEDGE
Transaction Type is REQUIRED.


This is snippet from the thread dump once the server stopped receiving any messages:

"ExecuteThread: '6' for queue: 'weblogic.kernel.Default'" daemon prio=5 tid=0x28 9b8410 nid=0x634 in Object.wait() [2af1f000..2af1fdb0]at java.lang.Object.wait(Native Method)
- waiting on <0x109c0eb8> (a weblogic.transaction.internal.ServerTransactionImpl)at weblogic.transaction.internal.ServerTransactionImpl.waitForPrepareAcks(ServerTransactionImpl.java:2264)
- locked <0x109c0eb8> (a weblogic.transaction.internal.ServerTransactionImpl)
at weblogic.transaction.internal.ServerTransactionImpl.globalPrepare(ServerTransactionImpl.java:1971)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:252)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:221)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:412)
at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:316)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:281)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2596)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:2516)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
0
 
LVL 11

Expert Comment

by:cjjclifford
ID: 12055822
been a while since I've worked on Weblogic, but it definitely looks like its waiting on a transaction... unless you are actually doing some transaction related processing in the MDB set the Transaction Type to "NotSupported", otherwise it could be waiting for an XA transaction to be commited somewhere....
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 1

Author Comment

by:pandey5
ID: 12057079
Thanks a lot. It worked after changing the transaction type to NotSupported. :-)
0
 
LVL 11

Accepted Solution

by:
cjjclifford earned 250 total points
ID: 12057165
cheers (btw, accept the answer if it worked)
0
 
LVL 11

Expert Comment

by:cjjclifford
ID: 12062744
thanks. Why just a B though :-)
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PHP question(s) about order of output 9 62
C# Error - Add Failed 12 87
"Black Box" Testing of Control System Software 2 48
iSeries email authority 6 55
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
A short article about problems I had with the new location API and permissions in Marshmallow
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now