Solved

trouble getting the jmsMessageID

Posted on 2012-03-15
6
201 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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 “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

773 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