Can't find the bean which was just created??

Hi all.
I am completely stuck at this problem. I'll try to explain it as briefly as possible. (Btw I use Weblogic 8.1 and Oracle 10g DB).
I create an entity bean (it has a String as a primary key). It has some relationships, everything is set up nicely. Upon creation I put the Id in a JMS message, the message in a JMS queue and finish the method.
From the MDB that gets this message I do findByPrimaryKey(id) and it complains it cannot find my bean. Why? I can see it in the database. Also if I send to the MDB an ID from a bean that was created earlier, it works. It just can't find the bean that was just created, as if it wasn't "commited".
What could be the cause of this? Is there an easy way to explain/solve it?
I appreciate any kind of help. Thanks in advance. Cheers!

Does the database insertion and the JMS publish occur in the same XA
transaction? It sounds like the JMS commit happens (sometimes) quick
enough that the other resource (the database) has not finished commit
processing yet. So you don't find your key.
-- Rob
Baba Baba wrote:
Hi all.
I am completely stuck at this problem. I'll try to explain it as briefly as possible. (Btw I use Weblogic 8.1 and Oracle 10g DB).
I create an entity bean (it has a String as a primary key). It has some relationships, everything is set up nicely. Upon creation I put the Id in a JMS message, the message in a JMS queue and finish the method.
From the MDB that gets this message I do findByPrimaryKey(id) and it complains it cannot find my bean. Why? I can see it in the database. Also if I send to the MDB an ID from a bean that was created earlier, it works. It just can't find the bean that was just created, as if it wasn't "commited".
What could be the cause of this? Is there an easy way to explain/solve it?
I appreciate any kind of help. Thanks in advance. Cheers!

Similar Messages

  • Hi! I want to restore my last 2 months email and I can't find the email. I just realize that I accidentally deleted that email today  -_- Anyone knows how I can fix this problem?

    Hi! I want to restore my last 2 months email and I can't find the email. I just realize that I accidentally deleted that email today  -_- Anyone knows how I can fix this problem?

    Security questions:
    https://discussions.apple.com/docs/DOC-4551
    http://support.apple.com/kb/HT5312
    This is also useful:
    http://www.macworld.co.uk/ipad-iphone/news/?newsid=3463233&olo=email

  • Is it possible to disable the trackpad when a wireless or usb mouse is present? With Lion 10.7.2, I can not find the checkbox that was there before I installed Lion. Is the option gone on Lion?

    Is it possible to disable the trackpad when a wireless or usb mouse is present? With Lion 10.7.2, I can not find the checkbox that was there before I installed Lion. Is the option gone on Lion?

    There is no BIOS in OS X. There is only the EFI stored in ROM that is not user modifiable. OS X is probably checking Bay 0 for the boot drive since that is where it should be. It won't check the Tempo drive since it is treated like an external drive. I suggest you open Startup Disk preferences to see if the Tempo device is selected as the boot device. If it isn't, then select it. That will probably shave off a few seconds in the startup time.

  • Please help, I can't find the pictures which I took with my camera. Its like I never took them

    I can't find the pictures which I took on my camera, I still have lots of memory left, they are hidden or something . Oh and the other thing is that when I'm trying to save a picture as something that I like its say the the directory is full even when I put a single letter. I have a huge space on my memory card, I don't know what's wrong . Please help. Thanks

    See if you can boot into safe mode by holding down the shift key immediately after pressing the start button. Keep holding the shift key till a loading progress bar appears on the lower part of the screen. It will take a lot longer than normal to start this way. If you have Lion 10.7 installed you can try holding command-R  keys to get intto recovery mode and run disk utility.
    If you want some great tips on trouble shooting go to this link to frequent poster ds store's page.
    ds store's User Tips    https://discussions.apple.com/people/ds%20store?view=documents
    This one covers your problem    https://discussions.apple.com/docs/DOC-3392

  • Hi. My 2013 MacBook Air has suddenly reverted to a previous Excel spreadsheet (from May). I use the same spreadsheet several times a day and hit cmd 's' every 5-10 minutes. How can I find the version I was using yesterday?? Please help. Thanks

    Hi. My 2013 MacBook Air has suddenly reverted to a previous Excel spreadsheet (from May). I use the same spreadsheet several times a day and hit cmd 's' every 5-10 minutes. How can I find the version I was using yesterday?? Please help. Thanks

    Might be something for you here > Automatically save and recover files - mac excel

  • How can I find the program which is calling my SAPscript??

    How can I find the program(std/Custom) which is calling my SAPscript form??
    Regards,
    Shashank.

    Hi
    check in NACE transaction or TNAPR table
    reward points to all helpful answers
    kiran.M

  • How can i find the tables which dont contain any data under my database ?

    Can you please suggest me a way to find the tables which dont contain any data under my database ?
    Regards,
    Renu

    Can you please suggest me a way to find the tables which dont contain any data under my database ?
    For the schema that you've logged in to, you could do something like this:
    test@XE>
    test@XE> @test
    test@XE> --
    test@XE> set serveroutput on size 1000000
    test@XE>
    test@XE> declare
      2    n_count  number;
      3  begin
      4    for rec in (select object_name from user_objects
      5                where object_type = 'TABLE')
      6    loop
      7      execute immediate 'select count(*) from '||rec.object_name
      8      into n_count;
      9      if (n_count = 0) then
    10        dbms_output.put_line(rec.object_name);
    11      end if;
    12    end loop;
    13  end;
    14  /
    BONUS
    RUN_STATS
    PL/SQL procedure successfully completed.
    test@XE>
    test@XE>For the other schemas, you could query from dba_objects and probably display the owner as well.
    HTH
    isotope

  • How can I find the profiles which are not in a role

    Hi all,
    how can I find all profiles which are not used in a role. Its important for a security check.

    Hi Stefan,
    you do one thing use the transaction SUIM
    SUIM>>Profile>>By Roles
    give all the role name and execute you will get roles with profiles
    and extract to excel sheet
    to get only profiles
    suim>>profile>>by profile name or text give * and execute
    and extract in excel sheet no compate profile coloumns get the profiles which does not there in any roles
    hope ds helps
    thanks
    kishore

  • When create heirarchy, can not find the entry which is in master data

    Hi, SDNs
        When create a heirarchy for a char , click this char button to add a fields to a node, i can't search the value which is actually in the master data.
       Thansk for your time

    If you go to create hierararchy or change mode of hierarchy
    3 types of nodes you can create
    1)Text node
    2)Charecteristic node
    3)Infoobject values node
    text node - is simple any text node you can create
    infoobject values node - if the master data is loaded you can create it
    if master data is loaded make sure its activated and no master data is under "M" version.
    charecteristic node - only if particular infoobject node is included in the tab "external chars in hierarchies" in RSD1 of that particular infoobject
    Hope it Helps
    Chetan
    @CP..

  • In vl71, i can't find the DN which i picked

    Hi,guys. I'm a fresher in Logistics.
    I picked a DN, and confirmed the status is fully picked. And i check the document flow, it told me like this :
    Document                                                   Date                                  Overall processing status
    . Liquid sales order 40110530                   10.06.02                            Completed
    Outbound delivery 200345696                   10.06.02                            Being processed
    . Handling unit 1000636137                        10.06.02
    . Picking request 20100602                        10.06.02                            Completed
    . GD goods issue:delvy 4900734190         10.06.02                            complete
    So i  want to print the DN: 200345696, but get the message: No messages for initial (& repeat ) processing exist. That means i can't find this DN in VL71. What can i do to fix it?

    Hello Cui
    First you need to establish if an output was determined for the delivery. To do that, go into the Delivery in change mode and using menu path Extras/Delivery Output/Header, go into the output screen. There see if you have any output/s in Red/Yellow status. If you see any such, check the processing log using the square icon.  This means an output was determined but was not successfully processed. If you see no outputs listed, using menu path Go To/Determination Analysis, get into a screen from which you can determine why no output could be found. But you should know which output type you are dealing with to check all these pieces. If you  are stuck anywhere down the path, let me know. Good luck.

  • How can I find the words which spans across end of line to next line in pdf ?

    I am using Acrobat Adobe X Pro version for our form development and maintanence. I am writting a Acrobat JAVA batch script which reads through all the words and execute spell check and reports the mispelled words in a excel sheet. Since I am running this script in batch mode for more than 1000 pdfs - I am getting many words joined together. When I looked in to those pdfs all such words are looking okay because it is appearing in end of right margin and the next word is in the next line. Since there was no space between them it was extracted as a single word. Hence the failure.
    I used wordf = this.getPageNthWordQuads(i,j)  to get the word begin and end coordinates. when I closely observe the values are creating a rectangle and that doesnt span across lines. I got the coordinates for the regular word and the word which span acoross two lines. both of the coordinates are same.
    I think I am screwed - I have 8000 such words and no clue of how to get rid of them from the actual misspelled words.
    please help. let me know if any class /method if I call will give me the end of line or do I need to go to next layer to find this split.
    the addnot is somehow marking the words using this coordinates - please hellp me understand how this works. Thanks.
    // for all pages
    for (var i = 0; i < this.numPages; i++ )
    // For all the words
    pg += 1;
    numWords = this.getPageNumWords(i);
    for ( j = 0; j < numWords; j++)
    //get the spell check 
    ckWord = spell.checkWord(this.getPageNthWord(i,j))
    if ( ckWord != null )
    jn=0
    ml=0
    // if mispelled word found.
    wordf = this.getPageNthWordQuads(i,j)
    swordf = wordf.toString()
    var st = swordf.split(",")
    var diffx0 = parseInt(st[0])-8
    var diffx1 = parseInt(st[1])-8
    var diffx2 = parseInt(st[2])-8
    var diffx3 = parseInt(st[3])-8
    var diffx4 = parseInt(st[4])-8
    var diffx5 = parseInt(st[5])-8
    var diffx6 = parseInt(st[6])-8
    var diffx7 = parseInt(st[7])-8
    if (cWord == csword)
    jn = 1
    if ( st[1] != st[3] )
    ml = 1
    //dataLine += "\r\n write "
    else
    ml=2
    dataLine += "\r\n"+this.documentFileName
    + "\t" + this.getPageNthWord(i,j)
    + "\t" + pg
    + "\t" + j
    + "\t" + ml
    + "\t" + jn
    + "\t st[0] " + diffx0 + "\t st[1] " + diffx1 + "\t st[2] " + diffx2 + "\t st[3] " + diffx3 
    + "\t st[4] " + diffx4 + "\t st[5] " + diffx5 + "\t st[6] " + diffx6 + "\t st[7] " + diffx7 
    ck=1

    If Acrobat is reading each word part as separate words, you have a problem.
    The way I approached it in some of my tools was to check if a word ends
    with a hyphen, and if so, to check if it's the last on the line. If both
    conditions are true, combine with the next word on the next line. This is
    not fool proof, of course, as there are documents with columns are other
    structural elements that prevent this from working. Better than nothing,
    though...
    However, it is also possible that Acrobat does see both parts as parts of
    the same word. In that case, getPageNthWordQuads() will return multiple
    quads arrays. As you know, that method returns an array of quad arrays.
    There's usually only one, but in principle there could be more... Something
    to check before giving up.

  • Updated to iOS 5.1 and can't find the back up file it created

    recently updated my ipod touch to iOS 5.1 and during the process it asked if I wanted to create a back up file. so i did and once the process was done my ipod was restored. no biggie figured I would restore the back up file right. Wrong when I go to restore a backup file it said the last back up was a year ago! is there any way to file the back up file that was supposedly created today?

    You can also look here:
    iTunes places the backup files in the following places:
    Mac:~/Library/Application Support/MobileSync/Backup/
    Windows XP:\Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    Note: To quickly access the Application Data folder, click Start, and choose Run. Type %appdata% and clickOK.
    Windows Vista and Windows 7:\Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    Note: To quickly access the AppData folder, click Start. In the search bar, type %appdata% and press theReturn key.
    Sometimes computer glitches do accur.

  • In iPhoto, how can I find the videos which are used in iMovie?

    My overall goal is to split my iPhoto library, because it's taking up half my HD. (Proud dad, taking too many burst photos and videos of the little guys). I'll put the videos and older-year photos onto an external drive.
    Problem is - I can't figure out which iPhoto video clips are in my Huge Home Movie, which has about 5 minutes from every month from 2008-2011.
    Is there a way that I can find them? Perhaps I can flag or rate them in iMovie? Perhaps a smart album in iPhoto?
    Details:
    iMovie '11 (9.0.9)
    iPhoto '11 (9.4.3)
    Willing to upgrade to newer versions if they solve the problem.

    Restore solved it!

  • Itunes for Windows 7, cannot find the album which was imported to my library

    Tried to import an album from a CD to my iTunes library.  The iTunes dislogue box said the music was imported but it is nowhere to be found in My iTunes Library.  I attempted to download the CD again and the dialogue box said it had already been imported.  Where is it ??? The operation system is Windows 7.  And, I have had no such porblems in the past.

    The first thing I would try is Missing Artist or Album not with others by same artist. I've also seen reports of people compaining that the Music section of iTunes doesn't list all their content. For some reason adding a new track such as the current iTunes Single of the Week is proposed, and even confirmed, as a solution, though to be honest I can't see why it would make any difference.
    If you make a smart playlist that should match your recent addition does it show up in that?
    tt2

  • HT1848 I can't find the "Authorize Computer" button on the Itunes Store menu

    I am trying to give my computer the ability to access the music I buy with my Iphone. Yet, I can not find the button which was said to be in the Store menu.

    Authorization
    Macs:  iTunes Store- About authorization and deauthorization.
    Windows: How to Authorize or Deauthorize iTunes | PCWorld.
    In iTunes you use the Authorize This Computer or De-authorize This Computer option under the Store menu in iTunes' menubar. For Windows use the ALT-S keys to access it. Or turn on Windows 7 and 8 iTunes menus: iTunes- Turning on iTunes menus in Windows 8 and 7.
    Also see, iTunes Store- Authorize or deauthorize your Mac or PC

Maybe you are looking for

  • How do I set the default text in a bound textbox?

    How do I set the default value of a bound textbox when the AddNewItem button on the MenuStrip is clicked?  I have the following code (see below), but for some reason it does work when I put the code in the AddNewItem_Click event; however, it does wor

  • IPHONE 4 – UPDATE ISSUE – IOS 7 UPDATE DELETED ALL THE CONTACTS : PLEASE HELP!

    Hello Everyone, Following are the seemingly essential details in regards to this discussion : iPhone Model = 4 Purchase Date = 06.Jan.2011 Initial Activation Remark = I used my gmail email account to add contacts initially. But phone always failed to

  • How to display RTE item in a HTML region

    I have a process that is populating a hidden item with a RTE item from another page. I need to display this in its formatted state. I am using an HTML region to display this item but the page shows HTML tags instead of rendering them. I have tried bo

  • Web Service in EnterpriseOne: Credentials could not be validated

    I am trying to run one of the lab exercises to test the address book web service. While testing this web service; I am getting the following error in the SOAP response XML when nothing is passed in the WS-Security : <faultstring>Internal Server Error

  • Multiple inner join ..how they work ?

    Here is an example of INNER JOIN. SELECT whatever   FROM tablea AS a INNER   JOIN tableb AS b     ON b.b = a.a INNER   JOIN tablec AS c     ON c.c = b.b1 INNER   JOIN tabled AS d     ON d.d = c.c1As you see there are 3 inner join in a single query ..