[jboss-user] [EJB 3.0] - slow remote communication

justkeys do-not-reply at jboss.com
Tue Sep 26 05:54:49 EDT 2006


I have a stateless facade bean that fetches a deep hierarchic structure from my database using ejb3 with eager-mapped relations. This takes 2 seconds (timed with an ejb interceptor).

On the client, i wrapped the ejb-proxy in a dynamic proxy, to time remote calls: 11 seconds.

What is going on, in between the ejb-interceptor, and the client? 

Java-serialisation: i timed this, by serialising the fetched data into a byte-array-stream (and deserialising it again): 140ms.

(using 4.0.4, rc8 and rc9, hsqldb or mysql, all the same)



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974161#3974161

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974161



More information about the jboss-user mailing list