Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 63 Insurance
- 535.7K On-Premises Infrastructure
- 138.1K Analytics Software
- 38.6K Application Development Software
- 5.6K Cloud Platform
- 109.3K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71K Infrastructure Software
- 105.2K Integration
- 41.5K Security Software
OO4O

3004
Member Posts: 204,171 Green Ribbon
Need help!
I am using OO4O OraAQ object to enqueue/dequeue.
If am Dequeing for a consumer which has no more messages the Enqueue call throws an exception and gives IDispactch error #440.
Once this happens, all subsequent calls for Dequeing for other consumer also fail even though there are messages for them.
What am i doing wrong?
pseudo code..
#import "ocip8.tlb
...OpenDatabase done.
...GetCreateAQ done...before this class method
CSomething::Enqueue()
{
try{
if(!not_alloc_DqMsg)
m_oDQMsg = m_oAQ->GetAQMsg(ORATYPE_RAW,_bstr_t("RAW"),_bstr_t("SYS"));
m_oAQ->PutConsumer("SomeConsumer");
m_AQ->Dequeue(); //Throws EXCEPTION here
var = m_oDQMsg->GetValue();
...
}
catch(_com_error &err)
{
....
}
}
null
I am using OO4O OraAQ object to enqueue/dequeue.
If am Dequeing for a consumer which has no more messages the Enqueue call throws an exception and gives IDispactch error #440.
Once this happens, all subsequent calls for Dequeing for other consumer also fail even though there are messages for them.
What am i doing wrong?
pseudo code..
#import "ocip8.tlb
...OpenDatabase done.
...GetCreateAQ done...before this class method
CSomething::Enqueue()
{
try{
if(!not_alloc_DqMsg)
m_oDQMsg = m_oAQ->GetAQMsg(ORATYPE_RAW,_bstr_t("RAW"),_bstr_t("SYS"));
m_oAQ->PutConsumer("SomeConsumer");
m_AQ->Dequeue(); //Throws EXCEPTION here
var = m_oDQMsg->GetValue();
...
}
catch(_com_error &err)
{
....
}
}
null
Comments
-
It seems like you may not be cleaning up after the error before setting the new consumer. Any questions related to oo4o can be posted on the oo4o mailing list- the response time will be quicker.
Could you please email me your sample application at [email protected]
Thanks
Prabha -
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Krishna Chari:
It seems like you may not be cleaning up after the error before setting the new consumer. Any questions related to oo4o can be posted on the oo4o mailing list- the response time will be quicker.
Could you please email me your sample application at [email protected]
Thanks
Prabha<HR></BLOCKQUOTE>
I had set navigation to next message. I have since set that to first message and it works fine.
Thanks for your response
This discussion has been closed.