Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8380369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:26:26+00:00 2026-06-09T16:26:26+00:00

I am using a commonj.work.WorkManager to process a few queries in parallel. I have

  • 0

I am using a commonj.work.WorkManager to process a few queries in parallel. I have a series of dao classes implementing an interface, and have an implementation of Work that executes the methods in the run method. With this set up, I am able to return data as I would expect with the work API.

I am now trying to handle error situations:
-Exception encountered in dao
-queries take longer than waitForAll allows

I noticed that WorkItem.getResult returns null for queries that are still processing. I still have instances to dao objects in an ArrayList, so I can get parameters and settings from there. It does seem like I should be able to get this from the WorkItem though, is there a better way?

Also, the only way I have been able to get at the Exception thrown would be to store it in the class that implements Work and provide an accessor method for it. Again, i feel there must be a better way.

This is running on websphere 6.1 without the EJB 3, WS feature pack (so no Java EE 5).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T16:26:27+00:00Added an answer on June 9, 2026 at 4:26 pm

    although the question is a year old, i wanted to provide an update in the event anyone comes across this question. my classes that implement Work have a member attribute that will store the Exception. I was thinking that this was going to be an issue, but it actually has worked out quite well. Any exception thrown in a threaded call shouldn’t affect any other threads that are running, when all work is completed i evaluate the exceptions and take action depending on the issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using rails 3. In my database I have several tables that work together
i have several controllers which will all be using common functionality. So i have
I have been using these common EntityObjectFilters as a pipes and filters way to
I would like to use a WorkManager to schedule some parallel jobs on a
I have been implementing AES onto my website for security and I have ran
A common task I have to do for a site I work on is
i am using zendframe work for my site, I am using the below mentioned
There are tons of great examples of creating work items using the TFS API,
Where I work, people mostly think that objects are best initialised using C++-style construction
i am using rpy2-2.0.7 (i need this to work with windows 7, and compiling

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.