OCCI AQ Enqueue of object with blob [message #497303] |
Fri, 04 March 2011 15:26 |
![](http://www.gravatar.com/avatar/a557312a8234c9dc42891edb77d2b49e?s=64&d=mm&r=g) |
bwbmds
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() ) {
dBlob.setEmpty();
}
pMsg->setdata( dBlob );
msg.setObject( pMsg );
prod.send( msg, queueName );
|
|
|