thread « ejb « Java Enterprise Q&A





1. How to process data in multiple threads using EJB3?    stackoverflow.com

Sometimes it would be useful to distribute the processing of some data to several threads in an EJB3 session bean. Let's say that a stateless session bean fetches a lot of data ...

2. is it right to call ejb bean from thread by ThreadPoolExecutor?    stackoverflow.com

I trying to call some ejb bean method from tread. and getting error : (as is glassfish v3)

Log Level SEVERE Logger
javax.enterprise.system.std.com.sun.enterprise.v3.services.impl Name-Value Pairs
...

3. Is it safe to access EJB home object from multiple threads?    stackoverflow.com

I have read this thread: J2EE/EJB + service locator: is it safe to cache EJB Home lookup result ? I use the same approach, i.e. I obtain EJB home object for ...

4. What is the proper way to interrupt a client thread while it's calling an EJB method?    stackoverflow.com

I have a java client which is managing its server calls in new threads to prevent the GUI from freezing. Even if this is prevented in many places, it is possible that ...

5. Handling a timeout in EJB3 without using threads    stackoverflow.com

I have the following situation. I have a job that:

  • May time out after a given amount of time, and if so occurs needs to throw an exception
  • If it does not time ...

6. What tool may i to spawn multiple threads to EJB 2.1 codes to simulate connection pool load?    stackoverflow.com

i am trying to spawn multiple threads on an EJB 2.1 bean to test the load on the connection pool. Is there any way of doing so or open source tool ...

7. Unable to achieve load testing on EJB subject using threading    stackoverflow.com

I posted this question asking why 100000 run() calls is faster compred to 100000 start() as i found out that despite multi threading, 100000 start would actually take longer ...

8. Thread.sleep() in an EJB    stackoverflow.com

I know that messing with threads inside an EJB is a big no-no, but I would just like to ask for advice on how handle this case. My EJB is calling ...

9. When to be careful about multithreading in EJBs?    stackoverflow.com

I understand that App Server takes care of the threading so the developer should only concentrate on the business logic... but consider an example. A stateless EJB has a member ...





12. diff. between javabeans & ejb    coderanch.com

13. ReadLock/WriteLock from within EJB    coderanch.com

What is not advisable to do from within an EJB is creating new threads. However, if you wish to protect access to a shared resource, you have the complete right to do that IN fact if you think about it, Database also has locks which are called from an EJB, so i think it would not be wrong to do so ...

15. To many opened threads    java-forums.org

Jboss, Remote EJB, Swing and Mysql. I have a EJB 3.0 of session in JBoss. This Ejb connect with Mysql with Hibernate. I consume this EJB with a Swing app. When you run it, it make a session ejb, connect to Mysql, Extract data and disconnect. In each call to this, it keep a connection opened In Mysql (Sleep) and a ...

16. Mixing 2 audio stream threads for java mobile    java-forums.org

hey guys Posting for the first time here I need to develop a java mobile karaoke application. So basically I need to write 2 threads(or processes) One that streams an audio file behind which plays the tune The other that records the voice of the person singing Basically the person can sing along to a tune and record the song Any ...





17. Threads in EJB    forums.oracle.com

Hi! I think you question is a little bit too generic. ejb uses threads but they are managed by the container where the ejb are executing. Since the container manage the thread, the java specification forbids you to use any type of threads within the ejb. My recommendation is that you read more about the java specification about j2ee [http://java.sun.com/developer/technicalArticles/J2EE/intro_ee5/] And ...

18. Can we create our own threads in EJB's    forums.oracle.com