WebLogic installation support - API calling with Time-outs

This is Interesting: Free IT Magazines  
Home > Archive > WebLogic installation support > February 2004 > API calling with Time-outs





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author API calling with Time-outs
Evelyn

2004-02-04, 12:41 am


I am trying to implement a feature on a Stateless EJB so that when I try to access a resource and that resource doesn't respond at a given time, I want to interrupt the operation and get back to another processing (timeout).

Today I have this approach in J2SE using Threads but I know you cannot start Threads from within an EJB. Do you have any ideas on how to implement a timeout in this scenario? Could be something like:

J2EE Stateles EJB -- method call --> "Untrusted" Java API Call

What I'd like to do is to timeout this method call.

Any ideas?
---
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com