Solved

trouble getting the jmsMessageID

Posted on 2012-03-15
6
206 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to implement Singleton Design Pattern in Java.

688 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