Hi,
we have following problem with Weblogic 8.1:
A stateful session bean returns a very large object graph as the result of a remote method call, so that the transfer of the result from server to client takes very long. After 60 sec. into the data transfer, a RemoteException is thrown on the client side (from the stub, I presume), stating that the message was to large and the transfer took too long. Where can I configure these parameters?
(No, reducing the size of the result is not an option.)
Thanks in advance for your help,
Lars
Discussions
EJB programming & troubleshooting: Remote Exception while returning large result from SessionBean
-
Remote Exception while returning large result from SessionBean (8 messages)
- Posted by: Lars Stitz
- Posted on: July 06 2004 06:13 EDT
Threaded Messages (8)
- Remote Exception while returning large result from SessionBean by Jaspreet Singh on July 06 2004 09:27 EDT
- Remote Exception while returning large result from SessionBean by Race Condition on July 07 2004 15:15 EDT
- Remote Exception while returning large result from SessionBean by Lars Stitz on July 08 2004 10:18 EDT
-
Remote Exception while returning large result from SessionBean by Race Condition on July 08 2004 11:08 EDT
-
Remote Exception while returning large result from SessionBean by Lars Stitz on July 09 2004 04:59 EDT
- Remote Exception while returning large result from SessionBean by Race Condition on July 09 2004 10:53 EDT
-
Remote Exception while returning large result from SessionBean by Lars Stitz on July 09 2004 04:59 EDT
-
Remote Exception while returning large result from SessionBean by Race Condition on July 08 2004 11:08 EDT
- Remote Exception while returning large result from SessionBean by Lars Stitz on July 08 2004 10:18 EDT
- Remote Exception while returning large result from SessionBean by Corneil Du Plessis on July 07 2004 16:29 EDT
- Remote Exception while returning large result from SessionBean by Lars Stitz on July 08 2004 10:18 EDT
-
Remote Exception while returning large result from SessionBean[ Go to top ]
- Posted by: Jaspreet Singh
- Posted on: July 06 2004 09:27 EDT
- in response to Lars Stitz
Zip it! then send it back ...
If its really that big you could xml it and then zip :) max compression! more work course but it sounds dodgy whats going on anyway! -
Remote Exception while returning large result from SessionBean[ Go to top ]
- Posted by: Race Condition
- Posted on: July 07 2004 15:15 EDT
- in response to Lars Stitz
Hi,we have following problem with Weblogic 8.1: A stateful session bean returns a very large object graph as the result of a remote method call, so that the transfer of the result from server to client takes very long. After 60 sec. into the data transfer, a RemoteException is thrown on the client side (from the stub, I presume), stating that the message was to large and the transfer took too long. Where can I configure these parameters?(No, reducing the size of the result is not an option.)Thanks in advance for your help,Lars
Is reducing the size of the result an option? -
Remote Exception while returning large result from SessionBean[ Go to top ]
- Posted by: Lars Stitz
- Posted on: July 08 2004 10:18 EDT
- in response to Race Condition
Is reducing the size of the result an option?
Working at JBoss must be boring like hell... -
Remote Exception while returning large result from SessionBean[ Go to top ]
- Posted by: Race Condition
- Posted on: July 08 2004 11:08 EDT
- in response to Lars Stitz
It is boring but I'm not at JBoss. Why do you think I'm at JBoss?Is reducing the size of the result an option?
Working at JBoss must be boring like hell... -
Remote Exception while returning large result from SessionBean[ Go to top ]
- Posted by: Lars Stitz
- Posted on: July 09 2004 04:59 EDT
- in response to Race Condition
http://www.theserverside.com/news/thread.tss?thread_id=21607#97155
It is boring but I'm not at JBoss. Why do you think I'm at JBoss?Is reducing the size of the result an option?
Working at JBoss must be boring like hell...
Why do you think I am stupid? -
Remote Exception while returning large result from SessionBean[ Go to top ]
- Posted by: Race Condition
- Posted on: July 09 2004 10:53 EDT
- in response to Lars Stitz
Lars, I don't think you are stupid and please don't tell anyone who I am.
Cheers,
MF -
Remote Exception while returning large result from SessionBean[ Go to top ]
- Posted by: Corneil Du Plessis
- Posted on: July 07 2004 16:29 EDT
- in response to Lars Stitz
Hi,we have following problem with Weblogic 8.1: A stateful session bean returns a very large object graph as the result of a remote method call, so that the transfer of the result from server to client takes very long. After 60 sec. into the data transfer, a RemoteException is thrown on the client side (from the stub, I presume), stating that the message was to large and the transfer took too long. Where can I configure these parameters?(No, reducing the size of the result is not an option.)Thanks in advance for your help,Lars
Stateful session is not a good idea and having a result the requires more than a minute to transfer means that you are courting disaster.
If you look at the protocol database servers or JDBC drivers use internally to transfer data, you will notice they don't attempt to move all the data in one chunk.
You are going to run into memory problems on the server or client or failures on the network.
You will have to rethink the way you model and manage your result set because there is no magic that is going to solve your problem.
You will have to consider an asynchronous model where the large set is prepared at the server's leisure and stored somewhere. The client should then be able to retrieve the results in parts using a method that is better suited to the transfer of large chunks of data.
Search for articels on reliable messaging and you will find they refer to message queue technologies that are designed to do what you want.
RMI/IIOP at aimed at smallish synchronous transfers. -
Remote Exception while returning large result from SessionBean[ Go to top ]
- Posted by: Lars Stitz
- Posted on: July 08 2004 10:18 EDT
- in response to Corneil Du Plessis
You will have to rethink the way you model and manage your result set because there is no magic that is going to solve your problem. You will have to consider an asynchronous model where the large set is prepared at the server's leisure and stored somewhere. The client should then be able to retrieve the results in parts using a method that is better suited to the transfer of large chunks of data.
Yeah, I thought so as well. Thanks nonetheless,
Lars