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 6910117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:46:24+00:00 2026-05-27T08:46:24+00:00

ENVIRONMENT We use apache tomcat to comunicate a visual layer (actionscript – flex) to

  • 0

ENVIRONMENT
We use apache tomcat to comunicate a visual layer (actionscript – flex) to the business layer (java). This comunication is used for lots of requests, the visual ask for data in the DB, and lots of operations.

THE PROBLEM
The problem is that we are interacting with a camera that only supports one session simultaneosly, and as far as i know apache tomcat create lots of threads, which are trying to comunicate with the camera at the same time.

Maybe you are thinking that its a bad implementation that we made, but the problem is that there is a functionality (the live view -showing images directly like recording video-) which makes imposible to release the camera after asking for the instant picture.

BEING MORE ESPECIFIC
In all the others method which interact to the cam, there is no problem beacause we make the follow steps:

1-oppen session with the cam
2-make whatever with the cam
3-release the cam

This steps works fine with almost all the methods (like taking pictures or downloading theme to the pc), but for the live view, we cant oppen a session and closing it every time (beacuase it makes an important delay, and the camera needs tobe ready), so we have to leave the session oppened while the live view, the procedure is something like this:

First live view pic
1-oppen session with cam
2-download live view pic

Second and next pics
1-download live view pic

Final live view pic
1-download live view pic
2-release the cam

In the first time when we are working with a simple thread all works fine, but if after other calls, new threads were created, and two treads try to do live view (one oppened session and the other wants to interact with the cam), the tomcat get freezed…

CONCLUSION
The problem we have is that Tomcat creates lots of thread when java comunicate with the visual layer, but if the thread want to access to the camera and the session was oppened for another, tomcat get freezed…

THE QUESTION
There is a way to make apache tomcat works with an especific thread for a call to a java method???

NOTE
We debug and try all the methods in easy eclipse working with one thread and everything works fine…

  • 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-05-27T08:46:25+00:00Added an answer on May 27, 2026 at 8:46 am

    The solution i found

    The solution i found is using the code in other question, now i have only one thread alive, maybe this solution can generate some delay problems…

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

Sidebar

Related Questions

I develop Flex-Java applications which is running under Apache Tomcat. I use Flex Builder
Does your work environment use Harvest SCM? I've used this now at two different
Many Java applications that use shell scripts to configure their environment use the JAVA_HOME
In my environment here I use Java to serialize the result set to XML.
Environment: Apache/2.2.11 (Win32) mod_apreq2-20051231/2.6.2-dev mod_perl/2.0.4-dev Perl/v5.10.0 Situation very similar to what's described in this
I have some Java projects that use Apache Commons Configuration and they get deployed
I have some Java projects that use Apache Commons Configuration and they get deployed
Let me start with what I use: - ubuntu 11.04 - apache-tomcat-6.0.33 some details
I've heard I should use Apache for serving static files in a production environment.
Is it ever OK to use Environment.TickCount to calculate time spans? int start =

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.