Can't you use chunks/subset and do multiple calls? ~ kind of pagination
like logic


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2017-03-31 17:11 GMT+02:00 sscott <ssc...@mapit.net>:

> I am using TomEE-Plume (1.7.2).
>
> I have a Servlet that makes a Service Layer call to an EJB.
> The EJB has a Node (org.w3c.dom.Node) input parameter and a Node output
> Parameter.
> When the dataset is large and contains many elements in the returned Node,
> I
> get a StackOverflowError
> in the Servlet where the Node is returned.
>
> Node outputData = service.serviceRequest(parameters);
>
> What is the best practice to solve this situation?
> Could I use SAX to parse/read the Node (org.w3c.dom.Node) as it is
> received?
> Any pointers or advice are greatly appreciated.
> Thank you.
>
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/Node-Returned-from-EJB-causes-StackOverflowError-in-Servlet-
> tp4681420.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Reply via email to