Home » Server Options » Streams & AQ » Recipientlist (Connection with Java)
icon5.gif  Recipientlist (Connection with Java) [message #301207] Tue, 19 February 2008 10:09
scharbes
Messages: 1
Registered: February 2008
Junior Member
Hi,
I have a AQ Connection with Java and got this send-error:
ORA-25216 invalid recipient, either NAME or ADDRESS must be specified

I think, this is refered to the recipientlist from the message.
I set the recipientlist, string recipientName is not null also, even though I got the Error.
The Error appaered at "enqueue".

This is the relevant part of my code:

message = queue.createMessage();
messageProperty = new AQMessageProperty();
AQAgent agt = new AQAgent(recipientName, null);
recipients = new Vector();
recipients.add(agt);
if(recipients != null){
messageProperty.setRecipientList(recipients);
}
messageData.setXmlData(xmlData);
AQObjectPayload payload = message.getObjectPayload();
payload.setPayloadData(messageData);
message.setMessageProperty(messageProperty);
message.setObjectPayload(payload);
System.out.println("Sending message to queue ... ");
queue.enqueue(
enqueueOption, // Options and paramters to enqueue
message // Passes message
);

I'm helpless...who has an idea???
Previous Topic: streams Configuration
Next Topic: View payload contents of a msg in a queue?
Goto Forum:
  


Current Time: Fri Jul 25 07:20:41 CDT 2014

Total time taken to generate the page: 0.08854 seconds