Solved

trouble getting the jmsMessageID

Posted on 2012-03-15
6
196 Views
Last Modified: 2012-03-15
I am trying to retrieve the messageID after creating a TextMessage from the QueueSession.
The call to getJMSMessageID() on the resulting message returns null.

Any ideas?
Code example below:
           try {
                      System.out.println("QueueSession = " + qsess.toString());
                      message = qsess.createTextMessage();
                      msgId = message.getJMSMessageID();
                      System.out.println("msgID:= " + msgId);
                }

Debug output:
QueueSession = weblogic.jms.client.WLSessionImpl@afa68a
msgID:= null
0
Comment
Question by:dpalyca755
  • 3
  • 2
6 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 37725592
Looks like weblogic doesn't create an id. I can't tell you for sure since the api is apparently secret
0
 

Author Comment

by:dpalyca755
ID: 37725673
Is there a reference where you found that information I can see?
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 37725688
What information? Your code clearly shows what happens (doesn't happen)
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Comment

by:dpalyca755
ID: 37725690
I checked the disabled flag and its set to false.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 37725759
Sorry - i don't understand
0
 
LVL 35

Accepted Solution

by:
mccarl earned 500 total points
ID: 37727361
The JMSMessageID isn't assigned until the message is sent.


For what purpose are you wanting the ID? There may be other way to satisfy your requirement.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

743 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

12 Experts available now in Live!

Get 1:1 Help Now