Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

trouble getting the jmsMessageID

Posted on 2012-03-15
6
Medium Priority
?
212 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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 36

Accepted Solution

by:
mccarl earned 2000 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
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…
Suggested Courses

604 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