Hi, can you give some more details? for example how huge is the amount of your data like? is it huge number of normal sized messages or some messages of which each has a very large size?
Usually sending messages in batch will improve performance.
What kind of data? If you zipped the file do you get a decent reduction in size? If so, try zipping it before sending it.
Is there any way to do this using Jboss Messaging, so that my application will not take 4 hrs?
Are you using NonPersistentMessages?
If you are using a sheel, it seems you don't need an extra level of persistence.
Like.. if someting happens, you could have the producer sending the messages again after some sort of request.