Home » Developer & Programmer » Precompilers, OCI & OCCI » OCCI AQ Enqueue of object with blob (oracle occi )
OCCI AQ Enqueue of object with blob [message #497303] Fri, 04 March 2011 15:26
Messages: 2
Registered: March 2011
Junior Member
I am working with occi attempting to enqueue an object, the object has a blob inside of it. I used the ott tool to create the C++ object, but am having an issue in setting the blob. WHen the send is called it throws an exception indicating Cannot perform operation on a null LOB.

Below is my code.

Producer prod( conn );
prod.setVisibility( Producer::ENQ_IMMEDIATE );
Message msg( env );
long count = 0;

pMsg = new cbsmsg( );
pMsg->setmsgtype( ( Number )msgType );

Blob dBlob;

if ( !dBlob.isInitialized() ) {

pMsg->setdata( dBlob );
msg.setObject( pMsg );

prod.send( msg, queueName );
Previous Topic: Pro*C - how to compile with SQLCHECK when access to meta-information requires a SET ROLE
Next Topic: Retrieve collection of user-defined object in OCCI
Goto Forum:

Current Time: Mon Jun 27 01:41:24 CDT 2022