Link to home
Start Free TrialLog in
Avatar of dpalyca755
dpalyca755

asked on

trouble getting the jmsMessageID

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
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Looks like weblogic doesn't create an id. I can't tell you for sure since the api is apparently secret
Avatar of dpalyca755
dpalyca755

ASKER

Is there a reference where you found that information I can see?
What information? Your code clearly shows what happens (doesn't happen)
I checked the disabled flag and its set to false.
Sorry - i don't understand
ASKER CERTIFIED SOLUTION
Avatar of mccarl
mccarl
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial