Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5966117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:44:54+00:00 2026-05-22T19:44:54+00:00

This question is somewhat related to Handling a timeout in EJB3 without using threads

  • 0

This question is somewhat related to Handling a timeout in EJB3 without using threads.

Background:
I have an example of an operation that may lock up while it’s running, and I have to be able to handle that eventuality and kill the operation if so happens. The solution has to be application server agnostic, so container managed transactions with timout values are not an option.

Actual Question:
One idea for a solution that I had running the operation in a stateful session bean, and using an external @Timeout method to monitor it, but for this to work I need to be able to interrupt or cancel that session bean. Is there any way of doing this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T19:44:55+00:00Added an answer on May 22, 2026 at 7:44 pm

    The spec says (§4.3.14):

    The container serializes calls to each
    stateful and stateless session bean
    instance. Most containers will support
    many instances of a session bean
    executing concurrently; however, each
    instance sees only a serialized
    sequence of method calls. Therefore, a
    stateful or stateless session bean
    does not have to be coded as
    reentrant.

    There is thus no way of calling a session bean instance’s method while another method of the same instance is still running.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Although somewhat related to this question , I have what I think is a
This question is somewhat related to this. I want to have document storage along
This is somewhat related to my previous question but I've realised that I needed
[This question is somewhat related to this question , but the answers are not...]
This is somewhat of a follow-up question to this question . Suppose I have
This question is somewhat related to What’s the simplest way to make a HTTP
This question is somewhat related to Hibernate Annotation Placement Question . But I want
This question is somewhat related to my previous question (not necessary to go through
This is somewhat related to another question I asked: Translate GPS coordinates to location
So this question is (somewhat distantly) related to this previous question: Best way to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.