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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:39:34+00:00 2026-05-20T01:39:34+00:00

My team is using the cmt-timeout-in-seconds setting, in the sun-ejb-jar.xml file on a GlassFish

  • 0

My team is using the “cmt-timeout-in-seconds” setting, in the “sun-ejb-jar.xml” file on a GlassFish 2.x server, to control the transaction timeout threshold for an EJB module.

I realize that this is a pretty broad question… but we’re having issues (I’m not sure of all the details myself), and I’ve been asked to verify that the “cmt-timeout-in-seconds” actually is being used.

Does anyone know of a way to interrogate or determine this from the application server, short of writing new custom code to test it? I’m not even certain what kind of custom code I would write if I had to go down that path.

  • 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-20T01:39:35+00:00Added an answer on May 20, 2026 at 1:39 am

    It seems that the most straightforward answer is simply to write a small test case. I just created a simple EJB, with a custom CMT timeout setting in “sun-ejb-jar.xml“.

    I then wrote a method on this EJB class, annotated to require its own new transaction. This method did three things: (1) write a log message, (2) use Thread.sleep() to pause execution for awhile, and (3) write a second log message.

    By using sleep values that were greater than or less than the CMT timeout setting, I was able to confirm that the settings were being applied.

    However, one interesting note that I learned from this… when a container-managed transaction times-out for an EJB3 method, it does not interrupt or halt the execution of that method! The method continues to execute (or stays hung), and the consequences of the timeout are not handled and logged until after the method returns. Interesting behavior, which can lead to some serious bugs if you’re not aware of it. See this article for more detail.

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

Sidebar

Related Questions

I'm currently using Team Foundation Server 2008 as a source control and build engine.
We're using team foundation server for our source control. I frequently put files into
I am on a two-man team using Team Foundation Server for our source control.
I am using Team City as the build server, and I have a msbuild
My team's using a python-based wiki server that calls stored procedures on a SQL
We've been using Team City as our build deployment server. We'd like to now
I'm trying to install Team Foundation Server using 2 machines: Machine1 : OS: Windows
We're using team system to control our developement (product backlog items, sprint backlog items
We are a small team using Visual Studio 2008 for development and SQL Server
Using Team Foundation server and BIDS 2008, I receive a screen to check out

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.