• Post Reply Bookmark Topic Watch Topic
  • New Topic

J2EE and concurrency  RSS feed

 
Steve Chambers
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure if this is the right forum or not.

But, is there a way to use the java.util.concurrent in the J2EE environment? I want to use concurrent to run some code.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
J2EE covers a lot of ground. The EJB spec instructs us not to mess about with our own Threads, but most containers have some non-standard way to spin off other threads. Asynchronous messaging is one standard way that doesn't give you a lot of control like waiting or joining the other thread.

I'm really not sure about the servlet container ... I've done a very limited bit of thread management in code called by servlets. Review the spec before going that route.

What kind of problem are you trying to solve?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!