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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:51:24+00:00 2026-05-16T16:51:24+00:00

Is it possible to set the database isolation level (ie Serializable, repeatable-read etc) for

  • 0

Is it possible to set the database isolation level (ie Serializable, repeatable-read etc) for a given EJB 3 method call?

I understand that this is not covered by the EJB Spec, so details of how to do it on either a JBoss or Glassfish specific manner would be great.

I’m starting to get the impression it’s not possible and that you can only set it per Connection Pool which is clearly by no means an ideal solution.

  • 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-16T16:51:25+00:00Added an answer on May 16, 2026 at 4:51 pm

    This is indeed not covered by the spec and but can be configured through application server specific deployment descriptors when supported. WebLogic does for example and you can specify transaction isolation at the method level in the weblogic-ejb-jar.xml:

    Example

    <transaction-isolation>
      <isolation-level>...</isolation-level>
      <method>
          <description>...</description>
          <ejb-name>...</ejb-name>
          <method-intf>...</method-intf>
          <method-name>...</method-name>
          <method-params>...</method-params>
      </method>
    </transaction-isolation>
    

    I don’t know if JBoss or GlassFish have an equivalent (I couldn’t access the SupportWLDDInContainers page to find an answer for GlassFish).

    As an alternative, did you try to use Connection#setTransactionIsolation(int) inside a given EJB method using i.e. configuring isolation programmatically?

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

Sidebar

Ask A Question

Stats

  • Questions 529k
  • Answers 529k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I would re-define the schema, and add another table: Person(id,… May 16, 2026 at 11:22 pm
  • Editorial Team
    Editorial Team added an answer If I am just getting a list of users, and… May 16, 2026 at 11:22 pm
  • Editorial Team
    Editorial Team added an answer If your strings are Unicode (and they really should be,… May 16, 2026 at 11:22 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Is it possible to set a database role before running a report? I have
In SQL Server (2000 or 2005) is it possible to set the database or
Is it possible to set up SQL Server to give developers read-only access to
Do you know the default isolation level of the transactions used in Django? Is
I'm seeing behavior which looks like the READPAST hint is set on the database
I would like to know if it's possible to set the size of VARCHAR
I'm trying to set a default database engine for each of my MySQL schemas,
I'm grabbing some data from a database that has a stored date value, and
Is it possible to save a WinForms user control(ex: button) to the database? Or
I am trying to use sqlalchemy to connect with mysql database. I have set

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.