Although nobody answers, here is some more information to the topic.
My purpose is to pass large dataset (up to several thousands records) with SOAP.
When I use standard way (session bean returns a collection of entity beans), passing 3500 records takes 5,5 minutes.
I have just tried to add another method to session bean, that iterates through the same collection of 3500 entity beans and writes data to string in text format (comma-separated). This operation is being performed on server-side, so Web-sevice method returns one string instead of 3500 beans.
For this method, SOAP call takes 15 seconds against 5,5 minutes in previous case.
My conclusion : bottleneck is in serializing collection of CMP to XML envelope in JBoss.NET .
I still wonder is there any way to make this process faster ?
I don't have a real answer for you, but it may be that the serializer that is converting your CMP beans to XML is doing it in a generic fashion - i.e., using reflection or some such. This will most likely be much slower than a custom serializer, like your comma-separated one.
Find out what class is doing the serialization - you may just need a custom serializer.