Why can't I change the transaction isolation level?

I was trying to change the transaction isolation level from an EJB. My source codes are shown as the follows:
======================================================
/*********************** Database Routines *************************/
private void makeConnection() {
try {
InitialContext ic = new InitialContext();
DataSource ds = ( DataSource )ic.lookup( dbName );
con = ds.getConnection();
DatabaseMetaData dmd = con.getMetaData();
show_supported_trans_levels( dmd );
int status = con.getTransactionIsolation();
System.out.print( "1. " );
disp_tx_status( status );
System.out.println( "con.isReadOnly() = " + con.isReadOnly() );
con.setTransactionIsolation( Connection.TRANSACTION_SERIALIZABLE );
System.out.print( "2. " );
disp_tx_status( status );
} catch( SQLException ex ) {
System.err.println( "SQLException: " + ex.toString() );
throw new EJBException("Unable to connect to database. " +
ex.getMessage());
} catch( NamingException ex ) {
System.err.println( "NamingException: " + ex.toString() );
throw new EJBException("Unable to connect to database. " +
ex.getMessage());
private void disp_tx_status( int status )
System.out.print( "Transaction Status: " );
switch( status )
case( Connection.TRANSACTION_READ_UNCOMMITTED ):
System.out.println( "TRANSACTION_READ_UNCOMMITTED" );
break;
case( Connection.TRANSACTION_READ_COMMITTED ):
System.out.println( "TRANSACTION_READ_COMMITTED" );
break;
case( Connection.TRANSACTION_REPEATABLE_READ ):
System.out.println( "TRANSACTION_REPEATABLE_READ" );
break;
case( Connection.TRANSACTION_SERIALIZABLE ):
System.out.println( "TRANSACTION_SERIALIZABLE" );
break;
case( Connection.TRANSACTION_NONE ):
System.out.println( "TRANSACTION_NONE" );
break;
default:
System.out.println( "UNKNOWN" );
break;
private void show_supported_trans_levels( DatabaseMetaData dmd ) throws SQLException
System.out.println( "List of Supported Transaction Isolation Levels: " );
if( dmd.supportsTransactionIsolationLevel( Connection.TRANSACTION_READ_UNCOMMITTED ) )
System.out.println( "TRANSACTION_READ_UNCOMMITTED is supported!" );
else
System.out.println( "TRANSACTION_READ_UNCOMMITTED is unsupported!" );
if( dmd.supportsTransactionIsolationLevel( Connection.TRANSACTION_READ_COMMITTED ) )
System.out.println( "TRANSACTION_READ_COMMITTED is supported!" );
else
System.out.println( "TRANSACTION_READ_COMMITTED is unsupported!" );
if( dmd.supportsTransactionIsolationLevel( Connection.TRANSACTION_REPEATABLE_READ ) )
System.out.println( "TRANSACTION_REPEATABLE_READ is supported!" );
else
System.out.println( "TRANSACTION_REPEATABLE_READ is unsupported!" );
if( dmd.supportsTransactionIsolationLevel( Connection.TRANSACTION_SERIALIZABLE ) )
System.out.println( "TRANSACTION_SERIALIZABLE is supported!" );
else
System.out.println( "TRANSACTION_SERIALIZABLE is unsupported!" );
=========================================================
However, I encountered the following exception when running at the highlighted statement:
======================================================
SQLException: java.sql.SQLException: Transaction manager errors. statement not allowed in XA Session.
======================================================
To my surprise, the isolation level TRANSACTION_SERIALIZABLE is supported from the database vendor. So why can't I change the transaction isolation level?

You can change the setting, you may need to click the lock at the bottom of the preference pane. Be careful what you download and install, Gatekeeper is there to help you. OS X: About Gatekeeper - Apple Support

Similar Messages

  • How to change the transaction isolation level of a CMP?

    How to change the transaction isolation level of a CMP from SUN's Deployment Tool? So far I can't find any entry for this setting.

    Anuradha W wrote:
    That means, currently the only way tospecify the transaction level is through
    weblogic-ejb-jar.xml deployment descriptor?
    for WLS-generated code, yes.Somewhat related to this question, we have written a standalone testcase to reproduce this issue we have been having. Basically, the issue is that even though we configure the isolation level to a non-default one in the deployment descriptor, the connections returned by the datasource seem to be having the default (which is Read Committed). The DBMS is DB2.
    weblogic-ejb-jar.xml has the following set:
    <isolation-level>TransactionRepeatableRead</isolation-level>
    And we printed the isolation level of the connection returned from a method in the EJB, but the isolation level is still the default. I can share the code to reproduce the problem if you want to take a look at it. Please let me know how I can get that across to you.
    Thanks,
    AnuradhaIf you are using our JDBC driver for DB2, or can switch to it,
    just for a test, there is some debug I'd like from you.
    Joe

  • How to Set the Transaction Isolation Level in WebLogic?

    Is there a way to set the transaction isolation level in WebLogic 9.2 or WebLogic 10?
    For an example say, we have an application which is supported for several database platforms. Without setting the transaction isolation level in DBMS level, is there a way to specify this in WebLogic to make it common for all the DBMS type?
    And I found a way to change the transaction isolation level in WebSphere application server using a property called webSphereDefaultIsolationLevel.
    [url http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg21224492]http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg21224492
    Is there a way to do the same thing in WebLogic application server 9.2 or 10?

    Anuradha W wrote:
    That means, currently the only way tospecify the transaction level is through
    weblogic-ejb-jar.xml deployment descriptor?
    for WLS-generated code, yes.Somewhat related to this question, we have written a standalone testcase to reproduce this issue we have been having. Basically, the issue is that even though we configure the isolation level to a non-default one in the deployment descriptor, the connections returned by the datasource seem to be having the default (which is Read Committed). The DBMS is DB2.
    weblogic-ejb-jar.xml has the following set:
    <isolation-level>TransactionRepeatableRead</isolation-level>
    And we printed the isolation level of the connection returned from a method in the EJB, but the isolation level is still the default. I can share the code to reproduce the problem if you want to take a look at it. Please let me know how I can get that across to you.
    Thanks,
    AnuradhaIf you are using our JDBC driver for DB2, or can switch to it,
    just for a test, there is some debug I'd like from you.
    Joe

  • HT201210 Why can't I change the location of my device backups?

    Why can't I change the location of my device backups?
    iTunes seems to force me to use my c:\ drive as the destination for all backups. 
    Background: I have set up my c:\ drive only for programs - all data is stored on separate drives - including my iTunes library and all media. So, I can't skinny down the c:\ drive any more without uninstalling programs.
    The issue is that my 10,000 rpm, 280 GB - C:\ drive is fast but small and is now FULL after I got about 1/2 way through a 128 GB backup of my ipad.  (Yes, all movies have been deleted off of the iPad to minimize the size of the backup.)
    I deleted the partial iPad backup, moved all the Mobile Applications to another drive, emptied the recycle bin and tried again with my much smaller iPhone.  You guessed it: the io7 update hung and both of my devices are now paper weights.
    Which leaves me f*cked, anyone know how I can un-f myself? 

    SPURCHASE wrote:
    The issue is that my 10,000 rpm, 280 GB - C:\ drive is fast but small and is now FULL after I got about 1/2 way through a 128 GB backup of my ipad.  (Yes, all movies have been deleted off of the iPad to minimize the size of the backup.)
    iTunes movies are not part of an iDevice backup.
    Videos & photos you take with the camera (in the Camera roll) are part of the backup but those should be sync'd to the computer and removed from the camera roll.

  • Why can't I change the transparent color and font color in IOS 7?

    Who thought all this WHITE AND TRANSPARENT color looks appealing?
    Why can't I change the color of the folders and text?
    I already tried inverting the colors and then it washes out the photos I use as my wallpaper.
    I love everything, so far, except this transparent issue.

    That's very sad those colors can't be changed. They really look ugly.
    Thanks for responding.

  • Why can't i change the setting at the security

    Why can't i change the setting at the security & privacy? After I switch to OS X Yosemite, i cant install some application. It says that I can install due unidentified developers. Can anyone help?

    You can change the setting, you may need to click the lock at the bottom of the preference pane. Be careful what you download and install, Gatekeeper is there to help you. OS X: About Gatekeeper - Apple Support

  • Why can't I change the content for some songs when I click the Get Info button?

    Why can't I change the content for some songs when I click the Get Info button?  The information on the song, artist, genre is grayed out and will not allow me to alter the information.

    Hi htechadmin,
    Revcevied your PM and noted all details, Many Thanks.
    Getting this addressed by the team, either they will reply to you, here, or they shall email Or Call you.
    Regards,
    LP

  • Why can't I change the transparent color in IOS 7?

    Who thought all this WHITE AND TRANSPARENT color looks appealing?
    Why can't I change the color of the folders and text?
    I already tried inverting the colors and then it washes out the photos I use as my wallpaper

    That's very sad those colors can't be changed. They really look ugly.
    Thanks for responding.

  • WHY can't i change the civility in itunes store always said that there is an error, WHY can't i change the civility in itunes store always said that there is an error

    HELP
    WHY can't i change the civility in itunes store always said that there is an error, WHY can't i change the civility in itunes store always said that there is an error

    try this
    http://support.apple.com/kb/HT1452
    but also, do you already have your itunes account runnig on other computers?  if so how many ?

  • Why can I not change the apple id associated with iphoto and imovies

    Why can I not change the appleid associated with iphoto and imovies

    Is it not your Apple ID? Is this a used Mac? If so, the Mac, OS X and the iLife apps are all registered to the original owner of the Mac.
    When someone sells a Mac they should erase the Mac and reinstall the most recent version of OS X that came with the Mac. And they should call Apple Care and have the Mac, the OS and the iLife apps disassociated from their Apple ID. Can you call the original owner and request that?

  • Why can't I change the names of my states in my symbol?

    For some reason, Fireworks won't let me change the names of my states in my symbol.
    I double click on the state name in the states panel, and nothing happens.
    It works fine for normal "non-symbol" pages.
    Can you normally change the names of states in symbols?
    Any ideas why I am having difficulty doing so?

    Thank you SO much! Funny thing, I didn't even notice the tiny folder icon at the top of the info window until I saw it in the screen shot at the beginning of that article. 
    See, I have begun changing the icons of the folders of digital scrapbooking alphabets I have (screenshot below). Now it will be so much easier to scroll through my hundreds of alphas and choose one, because I can SEE them without going in and out of each folder.
    A million thank yous!!!!! 

  • Why can't I change the genre on the new iTunes

    I wish to change the genre of a song on the new iTunes.  I right click on the song go to details, write in the genre and then click on OK and yet nothing changes.  So how can I effectively change the genre of a song?

    I found out that in order to have iTunes accept changes, I must first go into Windows Explorer to the music file under properties, in the General tab, then uncheck in Attributes the read only box. Then iTunes accepts the changes.
    Thank you and have a great day!

  • Why can't we change the 9am alarm for all-day events?

    I need these all-day events alarms to be at another time, why can't I do this? Why the arbitrary 9am? Please, don't suggest to not use all-day events, this is not an acceptable solution to a very basic setting change that should be accessible.
    Using iCal 6.0 on 10.8.3 with iCloud and iOS 6.

    Hi,
    See from the business perspective, but not from the system point of view.
    Intial triggering point for any business operation(inquiry , quotation , order - others are dependant transactions) is sold to party ( the one who place the order), which means at the time  of placing the order, respective business partner should completely aware of & disclose the required details to complete the business deal. 
    eg: where these order supposed to dispatch,
    to whom business has to send the copy of invoice &
    who is gonna settle this invoice amount.
       So Sold to party will have all the required details. Hence one sold to party act as the other business partners.
    Once agreed, then only business partner is created as Sold to party in system. If is there any changes from the Sold to party such as in future sold to party is not going to receive the goods, but they nominated some other business partner for this function, then the respective details will be recorded as Ship to party & assigned this number to Sold to Party.
    So you cant change the sold to party as some other business partners such as SH, BP  & PY.
    Regards,
    Reazuddin MD

  • IMovie-Why can't I change the font of my title?

    My simple question is that when I open the Font window from the menu to try to change the type, size and color of my font it doesn't change anything.
    Below is the step by step of what I'm doing if you need this information: 
    I choose "T" button below view screen.
    Select "Organic Main" and drag and drop it infront of my video (Green line indicates where to put it, and a green plus confirms the move is good).
    Screen pops up asking me to choose background, I choose "Organic".
    View screen shows new background with Text "Title Text Here" highlighted.
    Project screen shows the new block in the front of my video clips, on top of this box is the blue rectangle box that is highlighted yellow and repeats the "Title Text Here" text.
    So far so good.
    I go to the top menu and choose "Text > Show Fonts".  The Font window pops up.
    Now when I click on fonts, font sizes, or try to change the color of the font, nothing happens.
    I close the font window and hit done on my preview window and still nothing happens.
    What am I doing wrong?
    Thank you so much in advance, you people are always so helpful
    Michele Ireys

    Hi Appleman,
    So what causes the Title Sequence from not being able to be edited?
    As per michelepost comments earlier, neither the "Show Fonts" function allows title values to be changed, nor if the iMove Font Panel displayed?
    From the Menu options, neither does the Cmd- or Cmd+ functions work to manage the size of the title text...
    Can new titles be created with images from my photo library be used as backgrounds for Titles?
    Whilst on the theme, why when changing photo image durations, the value in time entered does not relate to the image(s) selected? I enter 1.8seconds, and 0.9 is displayed against the selected image.......
    Looking forward to your response in advance.
    Maggie

  • Why can't you change the .html/.htm filetype icons for Firefox?

    **Before you read this question: NOTICE I am talking about Firefox Icons on Windows, NOT ON FIREFOX BOOKMARKS/PROGRAM!!!!! Read the question then please, please visit the link so you have a better understanding of what I'm asking with this question!!!!**
    I've been trying to change the FileType Icons for the Firefox Documents for weeks now and there's no solution that I can see. I tried using Filetypes Manager to change the .html/.htm filetypes icons with no luck. Why does Firefox force this change on users when most users that use Firefox do so because of it's ability to be customizable? Even Microsoft Word .doc file icons allow you to change them! Microsoft!!! Why is Firefox forcing everyone to use their ugly filetype icons? &____& I've yet to see this issue not only addressed but solved. Why does Firefox ignore this issue? I'd like my computer's icons to all be top-notch, and Firefox is preventing me from making my weeks of hard work go to naught. Please, please address this issue... if anything, tell your users why your program is forcing the icons on them in the first place when monopolies like Microsoft allow their users to customize program filetype icons.
    If this cannot have a fix, why can't it be a new feature/addition to the newest versions of Firefox?
    Edit: And because people are starting to get 'confused' I've included a screen shot of what I'm talking about because, for the love of god, people, I'm *not* talking about using favicons and bookmarks!
    http://i28.photobucket.com/albums/c231/arcanetheorem/example.png

    The only thing I changed about the question was to add an image and to try and make it more understandable since everyone assumed I was talking about Favicons/Bookmark Icons....
    As for it being a Windows 7 issue and not a Firefox one... if it were just a Windows 7 issue I wouldn't be able to change other application icons or filetype icons on the Windows platform using FileTypes Manager. Firefox, from what I've been able to gather, is not one that can be changed. If I change the filetype icons for Word Documents any other extension (like .mp3/.mp4/.avi/.mkv), I get the changed icon I wanted. However, when you try to change the Firefox .html/.htm filetype extension icons, it doesn't work. Have you tried going through changing your icon filetypes using FileTypes Manager to see this issue? If it were a Windows or FileType Manager issue, then I'd have trouble changing other icons on that platform, no? So what I'm asking with my question is why this is. Why, if you use FileTypes Manager to change Windows7 icons, is Firefox's icons the only ones that won't be changed? Doesn't this fall under Firefox's problem if their icons are under the 'can't be changed' category under Windows? And using shortcut icons is no good for me. When I browse a folder of .html files, I want to see the icons I changed it to, not make a shortcut to every .html file I have just to have a better-looking Visual Style. Defeats the purpose, doesn't it? As for clicking on Properties to change it... Windows 7 doesn't allow this feature anymore, which is why I've been using FileType Manager to change all filetype extension icons.
    Hope that helps clear things up a bit, though I have a feeling I'm just confusing everyone more with what is a simple question/problem....

Maybe you are looking for

  • Parsing HTML in JSF webuijsf:textArea

    html>      <body>           some information and links and more HTML command      </body> </html> This is the contents I read from DB. Then it is desplayed in webuijsf:textArea. I want it to be executed HTML but it shows text. What command should be

  • What software is missing in itunes for showing my ipad?

    My ipad2 will not show up in itunes so I can update it to 5OS.  I have the latest itunes and have tried deleting and reinstalling to no avail.  I get an error message saying it can't be shown because it is missing software. 

  • Internal GUI error

    Hi Experts, I get an internal SAP GUI error when I assign interfaces for the actions in ESR (PI7.1). SAP GUI is 7.1 and JRE installed on my machine is Ver 1.5. Please help me in resolving this issue. ==================================================

  • Apple devices no longer link to BT webmail

    I use seveal Apple devices to send and receive e-mail. Two weeks ago I was migrated to BTMail. (See earlier posting) Result - chaos! Long telephone calls to Apple and BT checked all setings as OK but eventually nothing worked properly. Three days lat

  • Modifying the report total

    Hi, I want to the total row on a report not to be automatically summarized, but processed by my own algorithm. In one row I divide two numbers e.g: 10/5 = 2 in the second row I divide e.g.: 20/5 = 4 but in the total row I want to bee seen not 6 but 3