On 8/4/03 11:45 AM, Girish Chafle <[EMAIL PROTECTED]> wrote: > > >Hi, >� >I have a MDB listening on a topic. It�receives a message and does >a lot of processing, essentialy holding the thread for a long time.�I >use a multi-threaded client to load it.�When I run the client with >lots of threads I get the following exception >�
I've also gone through this StreamCorruptedException. But my case was different. It happened for me when I did a JNDI lookup from a Standalone client which was running on a different JVM. >2003-08-04 12:42:36,229 DEBUG [org.jboss.mq.il.oil.OILServerILService] >IOException processing client connection >java.io.StreamCorruptedException: Caught EOFException while reading >the stream header >�at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:851) >�at java.io.ObjectInputStream.<init>(ObjectInputStream.java:174) >�at org.jboss.mq.il.oil.OILServerILService$Client.<init>(OILServerILService.java:181) >�at org.jboss.mq.il.oil.OILServerILService.run(OILServerILService.java:501) >�at java.lang.Thread.run(Thread.java:498) > >I see the messages (in the directroy where the messages are stored) >siting in the queue but are not picked up the MDB. Can anyone give >me any clue on what is happening ? I am running JBoss 3.0.4 on linux. >� >Also, how do I do the following >� >a) change the number of threads in JBoss so that the system can take >more load.� Basicaly the performance (number of requests served) >I get from a multi-threaded client is not better than the single >threaded client. What is wrong going on ? >� >b) change the parameters like time-to-live etc related to Queue Look in to standardjboss.xml to configure your MDB. you can configure your MDB in the following: <invoker-proxy-binding> ... </invoker-proxy-binding> Things you would be interested in: <MaximumSize>15</MaximumSize> <MaxMessages>1</MaxMessages> >� >c) change the default mode of messages to non-persistent so that >I avoid the overheads of IO and storage... When a JMS message is sent, Delivery Mode can be set for the message. Check if you had used setDeliveryMode(DeliveryMode.PERSISTENT); If you had not set this, you can avoid the overheads of Storage. >� >Thanks in advance >� >- Girish >� >� >� >Going on a holiday? Want to study abroad? Need a personal loan? ><http://g.msn.com/8HMZENIN/2740??PS=> >------------------------------------------------------- This SF.Net >email sponsored by: Free pre-built ASP.NET sites including Data Reports,> E-commerce, Portals, and Forums are available now. Download today >and enter to win an XBOX or Visual Studio .NET. >http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 >_______________________________________________ JBoss-user mailing >list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ********************************************************************** This email and its attachments are intended for the above named only and may be confidential. If they have come to you in error, you must take no action based on them, nor must you copy or show them to anyone; please reply to this email and highlight the error. Security Warning: Please note that this email has been created in the knowledge that the internet email is not a 100% secure communications medium. We advise that you understand and observe this lack of security when emailing us. Viruses: Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. If you have received this email in error please notify: [EMAIL PROTECTED] ********************************************************************** ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
