File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Running java-threads in JBoss

 
R Bieringa
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm working on an application that requires users starting batchlike-processes. The processes can taken up to hours to complete. Now this is implemented by classes, extending the thread-class.
The application is not in production, but will have to be within the near future. My question now is this: is this approach (running "standard" threads) a healthy one ? In the past, this wasn't even allowed on most application-servers.
If not, I know about one other solution: using JMS, which also makes running "asynchronous". But is there maybe an alternative, as messaging seems a bit of a "heavy" solution for this (like shooting a mosquito using a 120mm canon). But maybe I'm exaggerating.

I'm using JBoss 5.1.0 EAP and Java 6.

I would appreciate your input.

Ronald
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Starting a separate thread within a Java EE app is a bad idea, it can lead to all kinds of problems. The JMS mechanism is really the way to go.
 
Dimitrios Bouras
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you givee an example of how to implement this using JMS
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic