Record does not get locked on update in a transaction

Hi ...
Lets say I have a session bean method with "Required" Transaction as follows:
public void method1()
entityBean1.setFieldA("something"); //record1
entityBean1.setFieldB("something"); //record1
entityBean2.setFieldZ("something");
Now, suppose one client thread "A" is executing this method and updating "record1"
and the Tx is still happening...
Lets suppose another client thread "B" simultaneously calls the same method to update
the same record "record1"...
what will happen now...since A is already in a Tx updating record1, what happens
to B...
shouldn't there be a lock on the record which A is updating till the Tx gets commited
, and only then B should be able to update that record...?
Is my understanding correct ??
I did a test with weblogic and this does not seem to be happening..
whatz missing guys ...or am i barking up the wrong tree ?
Thanx,
Krish

READ_COMMITED.
Emmanuel Proulx wrote:
The default is 'database' concurrency strategy, with isolation level set by
the database. I don't know the default for Oracle 8i.
My point was you can set it.
Good luck,
Emmanuel
"Krish Venkat" <[email protected]> wrote in message
news:[email protected]..
I have not set either of that property in my entity bean...so I guess itshud pick
up the default ...I use Oracle 8i...
Krish
"Emmanuel Proulx" <[email protected]> wrote:
This all depends on how things are configured:
- database transaction isolation level (tag <transaction-isolation> of
weblogic-ejb-jar.xml)
-concurrency strategy (tag <concurrency-strategy> of
weblogic-ejb-jar.xml)
See DTD for more details. (weblogic?00-ejb-jar.dtd files in weblogic.jar)
Emmanuel
"Krish Venkat" <[email protected]> wrote in message
news:3cf6e7f4$[email protected]..
Hi ...
Lets say I have a session bean method with "Required" Transaction asfollows:
public void method1()
entityBean1.setFieldA("something"); //record1
entityBean1.setFieldB("something"); //record1
entityBean2.setFieldZ("something");
Now, suppose one client thread "A" is executing this method and
updating
"record1"
and the Tx is still happening...
Lets suppose another client thread "B" simultaneously calls the samemethod to update
the same record "record1"...
what will happen now...since A is already in a Tx updating record1,
what
happens
to B...
shouldn't there be a lock on the record which A is updating till the Txgets commited
, and only then B should be able to update that record...?
Is my understanding correct ??
I did a test with weblogic and this does not seem to be happening..
whatz missing guys ...or am i barking up the wrong tree ?
Thanx,
Krish
Rajesh Mirchandani
Developer Relations Engineer
BEA Support

Similar Messages

  • Account does not get locked in all Repositories

    Hello all,
    i have have a strange behavior in an IDM 7.2 SP9 system. When i check the 'Account is disabled' box in standard UI task 'Change Identity' the user is only locked in one ABAP system, in all other ABAP systems it keeps unlocked. Other tasks such as role provisioning are working for all repositories. There are no pending tasks in the provisioning queue.
    I already reimported the provisioning framework, without success.
    Can anyone help me to find a solution for this?
    Regards
    Christian

    Hello Tero,
    There is no error in the Job Log, the jobs are executed without error, but only for two of five repositories. I thought it could maybe depend on the user, but also with a newly created one i have the same behavior.
    It seems as if the IDM does not recognize all repositories the user is existing in. The user has the ACCOUNT<REPOSITORY> Attribute set for all five repositories.
    I have checked all tasks on all repositories, they seem to be correct.
    Also with changes for telephone, room, ... are not provisioned all repositories. Privileges are provisioned correct.
    So the question is what is the trigger for the execution of the provisioning on a repository?
    Regards
    Christian

  • Update Record Does Not Show in Server Behaviors Pane

    I am using Dreamweaver CS4 on a Windows 7 machine. I am coding in ASP VBScript. When I apply an Update Record behavior to a form and upload the file to the server, it works fine. However, the Update Record does not show in the Server Behaviors pane. Therefore, I cannot click on it to make further edits to it. When I open this same file in Dreamweaver CS3 on a Windows XP machine, I do see the Update Record behavior in the Server Behaviors pane and I can click on it to make it edits. What do I need to do to get the Update Record behavior to show?

    Probably not the answer you are looking for, but support for traditional ASP has not been a focus of DW development, nor has it been for Windows 7 for
    that matter. ASP is a "depreciated" language and support for it is dwindling. The I don't know exact reason for what is happening to you here, but I'd imagine it's an issue with CS4s translators and the combination of the feature sets in both Win 7 and CS4 not "worrying" about ASP as much as they used to.
    Lawrence Cramer  *Adobe Community Professional*
    www.Cartweaver.com
    Complete Shopping   Cart Application for
    Dreamweaver, available in PHP and CF
    Stay updated - http://blog.cartweaver.com

  • Sent items of my exchange account in iphone does not get updated

    Hi..
    sent items of my exchange account in iphone does not get updated. Mails sent from iphone are getting recieved by everyone and same is getting updated in outlook. sent items for the same account in ipad is getting updated. I am not facing this problem with any other folders in my exchange account. someone please provide a solution for this. I have tried resetting, restoring but nothing works...
    Regards,
    Yash

    Hi,
    The problem could be the currency of the valuation area. It has to be the local currency. Maybe the company code has the local currency but the valuation currency is another.
    Without having access to your system it is difficult to say. Maybe double check your customizing for assignment of update types for derived business transactions in spro:
    Transaction Manager
    -> General Settings
         -> Accounting
             -> Settings for Position Management
                  -> Derived Business Transactions
                      -> Update Types
                          -> Assign Update Types for Derived Business Transactions
    I hope this is helpful.
    M Trein
    Edited by: Marcelo Trein on Jun 21, 2011 12:19 AM (spelling)

  • HT2693 My UPAD lite does not start after recent update. I have lots of info in it. Can anybody help me to get it back. Can I get the update out somehow? Thanks

    My UPAD lite does not start after recent update. I have lots of info in it. Can anybody help me to get it back? Can I somehow undo the update? Thanks

    "UPAD lite?"
    I expect that you mean some version of iPad.
    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod.  As before, say "yes."  Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time.  If that happens, only the apps that are part of the IOS will appear on your device.  Corrective action is simple -  choose manual "Sync" from the bottom right of iTunes.
    If you're unable to do the Restore, go into Recovery Mode per the instructions here.

  • Dispute case does not get updated with subsequent partial payment

    Hi Experts
    I am now still testing the Dispute management .. but it's my first time to see that some times created dispute case does not get updated with the payment posted against the invoice which the dispute case has been raised .. when i trying to add open item to the current dispute case i face this Error..
    Process step 004: Change not possible, process step 003 missing
    Message no. UDM_MSG037
    Diagnosis
    The dispute case is to be changed by process step 004 from accounting. However, there is at least one process (for example, clearing transaction from payment or credit memo) that was performed before the current step and that has not yet updated the dispute case. The changes to the dispute case must be carried out in the correct order.
    System Response
    The dispute case could not be changed.
    Procedure
    In an asynchronous change to dispute cases using IDoc, make sure that all IDocs of the previous process have been posted. Then you can carry out the required action (for example, post the current IDoc from process step 004 or include further items). The immediate previous process step is 003.
    Your kind feed back is highly appreciated..
    Regards
    Mahmoud EL Nady

    Hi
    Thanks for straight forward solutions its now working properly after run the program.. thanks too much..
    also do i need to run this program periodically or once i notice that one dispute case it not getting updated?
    Regards
    Mahmoud El Nady

  • I am trying to update my iphone 3GS software but itunes just says that this is the current version of itunes, it does not see the phone update - anyone know how to get the phone updated?

    I am trying to update my iphone 3GS software but itunes just says that this is the current version of itunes, it does not see the phone update - anyone know how to get the phone updated?

    Mike
    I have done that and it is through pressing that update, which tells me that there is anew version of iphone software, that the prompt comes telling me that this is the current itunes?

  • HT4623 My iPad 2 was does not have a software update option under settings?  I bought it on ebay, is there a way to get it on there?

    My iPad 2 does not have a Softwarw Update options under the settings menu...any way I can get it on there?

    Update to IOS 5 or higher
    http://support.apple.com/kb/HT4972

  • Moving Average Price does not get updated for Project Stock

    Hello Experts
    We have an Engineer-to-Order implementation for our client. Accordingly procurement is done per project. Each Project issues its PRs which are then converted to POs and recieved into Project Stock.
    While assigning the material to the Network activity in Project (using material component) the system uses the price found in the material master (MAP or STD) as a planned cost appended to the project.
    Problem:
    while procuring the material, when we receive it into Project Stock (Mvt 101 Q + ) the Moving Average Price in the material master does not get updated. this way all newly created material master will never have a moving average price, thus whenever we try to assign them to the project we receive an error message (Cost for Material Component ###Mat.Num### cannot be determined.
    Question:
    How can I get the system to update moving average price (for all types of stock) based on procurement for project stock.???
    Your help is kindly appreciated.

    I'm sorry for the confusion
    Case:
    The T-code is CJ20N Project Builder in PS module
    we are assigning material components to network activities under a certain WBS element in the project.
    there is a function in the Project Builder to calculate the cost of a network. it uses the costing variant assigned to the network which is PS02 (We get the error here)
    The costing variant has a valuation variant which lists a series of strategies  to get the material price. Planned 1 if not then STD if not then MAP. (you can choose between many options via a drop down menu) you can choose 5 consequent options.
    The MAP that the valuation variant is coded to get is the Plant Stock MAP -- Or the Project Stock MAP but only Per WBS element.
    The MAP that the Actual postings update is the Project Stock MAP only Per WBS element.
    This means that if you use a material component to purchase material 123 Acc.As. Q for WBS X for 10 $ then you try to assign a new material component with the same material 123 to WBS Y, the system will not get a MAP. because it's stored in QBEW per WBS element.
    This way the system will never get the MAP right.
    However, we don't always use project stock to procure for projects, for some requirements we can assign and use plant stock as well for Projects. that way we need the MAP from plant stock.
    In the Valuation Variant you can use a User Exit Strategy. The user exit's name is COPCP005
    My Suggestion is:
    Use the User Exit COPCP005 to calculate the { Total value / the total quantity (MAP) from QBEW + Total value / total quantity (MAP) from MBEW } / 2
    which is the MAP for both plant and project stock together, since that we are going to use both.
    Q: Is this correct !?

  • How to update zero to a column value when record does not exist in table but should display the column value when it exists in table?

    Hello Everyone,
    How to update zero to a column value when record does not exist in table  but should display the column value when it exists in table
    Regards
    Regards Gautam S

    As per my understanding...
    You Would like to see this 
    Code:
    SELECT COALESCE(Salary,0) from Employee;
    Regards
    Shivaprasad S
    Please mark as answer if helpful
    Shiv

  • Why does itunes get locked with last update after clicking on search button ?

    Why does itunes get locked with last update after clicking on search button ?

    Why does itunes get locked with last update after clicking on search button ?

  • I use OverDrive to get audiobooks from my library to listen on my ipod. Does not work since latest update of ipod. Converts the WMA and acts like it is putting it on the ipod but then it isn't there.

    I use OverDrive to get audiobooks from my library to listen on my ipod. Does not work since latest update of ipod. Converts the WMA and acts like it is putting it on the ipod but then it isn't there.

    Downgrading the iOS is not supported by Apple.Have yo tried:
    - Backing up and restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                       
    - Go to the OverDrive support site

  • Ordered Quantity does not get copied to Invoice by  DIAPI

    Hi All,
    I am stuck with an issue in Invoice creation using  DI API by code.The field Ordered Qty (DB Filed INV1.OrderedQty) does not gets copied to Invoice line from delivery lines. But while we add invoice from delivery >Copy To> AR Invoice , it gets copied to Invoice lines. This OrderedQty field is not exposed through DI API, so we cant set that field throgh code. What I do in Invoice creation code is as follows.
    SAPbobsCOM.Documents oINV;
                        oINV = (SAPbobsCOM.Documents)
                            modups.oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices);
                        oINV.CardCode = oDLN.CardCode;
                        for (int i = 0; i < oDLN.Lines.Count; i++)
                            oDLN.Lines.SetCurrentLine(i);
                            string str = oDLN.Lines.ItemCode;
                            if (i != 0)
                                oINV.Lines.Add();
                            //oINV.Lines.ItemCode = oDLN.Lines.ItemCode;
                            //oINV.Lines.Quantity = oDLN.Lines.Quantity;
                            oINV.Lines.BaseType = Convert.ToInt32(SAPbobsCOM.BoObjectTypes.oDeliveryNotes);
                            oINV.Lines.BaseEntry = oDLN.DocEntry;
                            oINV.Lines.BaseLine = oDLN.Lines.LineNum;
                            taxcode = oDLN.Lines.TaxCode;
    if (DeliveryExpenseCount > 0)
                                for (int i = 0; i < DeliveryExpenseCount; i++)
                                    oDLN.Expenses.SetCurrentLine(i);
                                    if (i != 0)
                                        oINV.Expenses.Add();
                                    //oINV.Expenses.ExpenseCode=i;
                                    oINV.Expenses.ExpenseCode = oDLN.Expenses.ExpenseCode;
                                    oINV.Expenses.LineTotal = oDLN.Expenses.LineTotal;
                                    oINV.Expenses.TaxCode = oDLN.Expenses.TaxCode;
                                    oINV.Expenses.BaseDocEntry = oDLN.DocEntry;
                                    oINV.Expenses.BaseDocLine = oDLN.Expenses.LineNum;
                                    oINV.Expenses.BaseDocType = 15;
    int retVal = oINV.Add();
                        if (retVal != 0)
                            int lErrCode; string sErrCode;
                            modups.oCompany.GetLastError(out lErrCode, out sErrCode);
    Any help will be appreciated..
    Deepesh

    Hi Gordon,
    Thank you for your reply.But it didnt fix the problem.The only change of previous code with this one was oINV.Lines.Add() method is called in the last of the loop.But it wont fix issue. 
    Updated on 20/10/2011
    I have found the issue.The issue is causing if we update the resulting invoice's expense lines.
    If we copy the expense lines from delivery and update any line with an amount it works fine and resulting invoice has "Ordered Qty" in its lines. Code is
    for (int i = 0; i < DeliveryExpenseCount; i++)
                        oDoc.Expenses.SetCurrentLine(i);
                        if (i != 0)
                            oINV.Expenses.Add();
                        string s = oDoc.Expenses.TaxCode;
                        oINV.Expenses.TaxCode = oDoc.Expenses.TaxCode;
                        oINV.Expenses.BaseDocEntry = oDoc.DocEntry;
                        oINV.Expenses.BaseDocLine = oDoc.Expenses.LineNum;
                        oINV.Expenses.BaseDocType = 15;
                        oINV.Expenses.LineTotal = oDoc.Expenses.LineTotal;
                        if (radioButton2.Checked == true && i == 0)
                            oINV.Expenses.LineTotal = oDoc.Expenses.LineTotal + Convert.ToDouble(txtExp.Text);
    But if the delivery has no expense lines or we are adding a new expense line to the invoice while invoice creation from delivery , the resulting invoice does not have "Ordered Qty " in its lines..
    Code is
    if (DeliveryExpenseCount > 0)
                            oINV.Expenses.Add();
                        oINV.Expenses.ExpenseCode = 1;
                        oINV.Expenses.TaxCode = taxcode;
                        oINV.Expenses.LineTotal = Convert.ToDouble(txtExp.Text);
    If I try to add lines
    oINV.Expenses.BaseDocEntry = oDoc.DocEntry;
      oINV.Expenses.BaseDocType = 15;
    to the above code it may show either "Internal error" or " No matching records found".
    Is this a bug in DI API?

  • Purchase info record does not exists in purchase organization 1000

    Hi experts,
              I have created a new enterprise structure in SAP. when i am creating a PO its picking the correct info record, but when i am doing GR, its giving the error as 'purchase info record does not exists in purchase organization 1000". I have maintained everything perfect. the only thing i have changed is I have moved the open and close period from 11-2002 to 12-2008 in MMPV.
             Please give me some suggestions, where it can go wrong.
    Thanks & Regards,
    Poorna.

    Hi Guys,
              Thanks for all yours responses, Actually what deepak said was right, but in my IDES system i am not able to create new entries in assign plant to std purchase org. I found the database view for that, V_001W_E its for table T001W. So i looked into that table i found that std purchase org was given as 1000. i made direct entries in that table, i thought the reason for this may be due to , that i copied plant from 1000. After making entries , i did not got the error message that was i am previously getting.
    Thanks & Regards,
    Ravi.

  • G/L Account mentioned on line level does not get hit in Journal entry on GRPO and AP Invoice in SAP B1 9.0 PL - 11

    Hi,
    G/L Account mentioned on line level does not get hit in Journal entry on GRPO and AP Invoice in SAP B1 9.0 PL - 11
    I am creating an independent AP Invoice, there are two issues:
    1. On line level G/L Account field is not open for selection
    2. I have then selected and updated the account on Form Settings. Same account gets updated on line level.
         In Journal Entry selected G/L account on line level shall be hitted. But it does not put any effect on JE. Accounting is set by Warehouse. It picks up accounts from warehouse only.
    Need help its urgent.
    Thanks in advance.

    Invoice is Item Type.
    G/L Accounts are set by Warehouse. But if explicitly we are want to change the account on line level in that case, it is not getting reflected in Journal entry. On AR Invoice same scenario works perfectly. On line level I can change the accounts explicitly and have the effect on Journal entries.
    Issue seems to be on AP side only.
    As required please find attached the screen shots.
    JEwith mapped GL Account on Warehouse
    JEwith different GL Account on line Level via Form Settings
    Thanks & Regards
    Sonil

Maybe you are looking for

  • Opening file in a new tab/window

    Hi, I have a form (HTML added through a widget) and a number of images on one page. I want each image to be a link to a file, where the images will be seen full quality. however, doing this takes visitors away from the page instead of opening a new t

  • Sales wise production report

    Dear Experts We have one sales order with 100 line iitems .How to identify what are the production orders are confirmed from shop floor and reday for delivery ? Regards Akash

  • Oracle ADF - Context Sesitive popup menu.

    Hi, I have a table in my application. The way I created it, I drag and dropped it on .jspx from Data Control->ProductVO->Named Criteria->All queriable Attributes Then pop opened->Quick Query->ADF Quick Query with table. On right click of any record f

  • Can I record in LE8 just through a Boss DD3?

    I am usually set up with a PodXT Live processor unit, an M Audio Fast Track USB Interface, Logic Express and my Ernie Ball guitar, but unfortunately I was unable to bring my POD with me on my overseas trip. I have everything else plus a Boss DD-3 ped

  • IPhone 5 loss of sound

    My iPhone has lost sound.  Turning the phone off and then back on has not helped.  Any suggestions? Thanks