Thank you for your response.
May be I wasn't clear in my question. I'll try to clarify below.
For example, my
JSP looks like
and
MyLib class has method
helloWorld() which returns
String.
This method executes method in some EJBs, which is doing many-many things, and that takes time. At the end,
helloWorld() gets some return from EJB's method, mix it with something else, and creates String and returns it.
So, JSP successfully output it.
My goal is to do the following.
From class
MyLib, from it's method
helloWorld() I need to execute EJB's method. But If it will not finish it's work in 3 seconds (just for example!) - I still wish that method
helloWorld() will return String
"Sorry, EJB method failure!".
This way, in any case, JSP in max 3 seconds will do some output.
This is exactly what I need.
Thank you for your help.
[ February 13, 2005: Message edited by: Olexiy Prokhorenko ]