This content has been marked as final.
Show 4 replies
-
1. Re: multiple messages
beve Aug 16, 2008 3:14 AM (in response to vishal12345)Can you try modifying the helloworld quickstart and update its SendEsbMessage.java and add the following to the main method:
for ( int i = 0 ; i < 3 ; i++ ) { Message esbMessage = MessageFactory.getInstance().getMessage(); esbMessage.getBody().add("Test body content"); new ServiceInvoker(args[0], args[1]).deliverAsync(esbMessage); }
Then run the quickstart with 'ant sendesb'. This will send three different messages to the ESB. They will all have the same message body contents, "Test body content", but that is expected.
I'm not sure that I fully understand your problem but please try this and let me know if you still have an issue with this.
Regards,
/Daniel -
2. Re: multiple messages
vishal12345 Aug 16, 2008 6:54 AM (in response to vishal12345)thanks Daniel
I tested the code and worked but is ther any problem if message contains some XML ? any special precautions i have to take or it will work same like a simple string ? -
3. Re: multiple messages
beve Aug 16, 2008 8:06 AM (in response to vishal12345)any special precautions i have to take or it will work same like a simple string ?
No, xml will work fine as the message body payload. -
4. Re: multiple messages
vishal12345 Aug 16, 2008 1:32 PM (in response to vishal12345)yes thanks daniel !