Hi there,
Unrelated smallish questions I have using Jersey:
1, How do people usually pass configuration options to their code in
jeresy? if I run it as a servlet, can I pass config options in the
web.xml?
2, @GET methods may return InputStream, as we have established here
earlyer. How about Reader?
3, I have an external executeble I must run with
Runtime.getRuntime().exec to generate one of my resources.
The XML is generated on STDOUT.
Is there a pattern for doing this? Preferably without buffering the
output, I'd like to have the XML streamed out directly.
But if my @GET method just returns the InputStream without waiting for
the process to finish, then the closure where process resides in is
left too early. So I guess I'd have to start a thread for it, but
that's usually forbidden in EE...
Any advice apprechiated!
Gabor Szokoli