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???
|
|
|