Skip to content

How to fetch message_properties value from Oracle Advanced Queue #1283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
samuthan opened this issue Aug 7, 2020 · 7 comments
Closed

How to fetch message_properties value from Oracle Advanced Queue #1283

samuthan opened this issue Aug 7, 2020 · 7 comments
Labels
inactive This was marked by stalebot as inactive question

Comments

@samuthan
Copy link

samuthan commented Aug 7, 2020

  1. What versions are you using?

Give your database version. 12.2

Also run node and show the output of:

process.platform win32
process.version 'v10.21.0'
process.arch 'x64
require('oracledb').versionString  4.2.0
require('oracledb').oracleClientVersionString '19.3.0.0.0
  1. Describe the problem

How to get the sender_id(Message_properties) value from Oracle Advanced Queue at the time of dequeue the message

  1. Include a runnable Node.js script that shows the problem.
@cjbj
Copy link
Member

cjbj commented Aug 7, 2020

Look at aqobject.js. You can edit deq() to access properties directly like:

      console.log('Dequeued:  ', msg.payload.NAME);

If this isn't what you wanted, then please give a runnable testcase that creates a queue, and then enqueues & dequeues a message.

@samuthan
Copy link
Author

samuthan commented Aug 7, 2020

This is not resolved my issue. Sure I will create the testcase and share it.

Actually I am looking like below

Functionality is Enqueue happened from PLSQL script with below properties. And Dequeue happened from Node JS application

message_properties DBMS_AQ.MESSAGE_PROPERTIES_T
message_properties.sender_id := SYS.AQ$_AGENT(SYS_CONTEXT ('USERENV', 'SESSION_USER'), NULL, NULL);

In node JS application, i need to find the sender_id value available in Queue table

@stale
Copy link

stale bot commented Oct 7, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the inactive This was marked by stalebot as inactive label Oct 7, 2020
@stale
Copy link

stale bot commented Oct 14, 2020

This issue has been automatically closed because it has not been updated in 28 days.

@stale stale bot closed this as completed Oct 14, 2020
@lordvlad
Copy link

I'm having an similar case where I need the enqueue_time. AdvancedQueueMessage<T> only has a delay property, but it is always 0 for some reason. In the java libs we have AQMessageProperty.getEnqueueTime()

@cjbj
Copy link
Member

cjbj commented Feb 26, 2025

@lordvlad could you open a new issue so we can track it as an enhancement request?

@lordvlad
Copy link

@lordvlad could you open a new issue so we can track it as an enhancement request?

done #1725

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive This was marked by stalebot as inactive question
Projects
None yet
Development

No branches or pull requests

3 participants