Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Running multi-threads in EJB Stateless Session  RSS feed

 
Arman Galustyan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I�ve as situation where I required executing about 100 different operations in stateless session and getting back with an answer. Here�s the problem that executing 100 operation one by one takes a lot of time so the solution should be to execute them in some kind of multi-threaded way but inside session we aren�t allowed to play with threads. What would you suggest?
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37222
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arman,
What kinds of operations? Are they database operations? If so, you can probably batch them.

Describing the operations in more detail will help you get a better answer.
 
Arman Galustyan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne,
Thanks for your reply.
Yes mostly the processes involve DB access + calculations in Java.
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can follow the following link on this particular case:
Multithreading from session beans - Server side
 
Arman Galustyan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Nitesh,
in my case probably JMS will be the right solution.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!