---
title: "Are enterprise beans allowed to use Thread.sleep()?"  
description: "Are enterprise beans allowed to use Thread.sleep()?"  
author: "Anonymous User"  
published: 2011-05-21  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/992/are-enterprise-beans-allowed-to-use-thread-sleep  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# Are enterprise beans allowed to use Thread.sleep()?

Enterprise beans make use of the services provided by the EJB container, such as life-cycle management. To avoid conflicts with these services, enterprise beans are restricted from performing certain operations: Managing or synchronizing threads

## Answers

### Answer by Anonymous User

Enterprise beans make use of the services provided by the EJB container, such as life-cycle management. To avoid conflicts with these services, enterprise beans are restricted from performing certain operations: Managing or synchronizing threads


---

Original Source: https://www.mindstick.com/interview/992/are-enterprise-beans-allowed-to-use-thread-sleep

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
