EJB Persistence problem [Data modified outside EJB]

Hello,
There is an EJB in the system which corresponds to a db table, say it "AppBean", and a corresponding session bean AppSession which provides insert/remove/query service. There is another program, a webapp which might runs on another server, also makes modifications to that table.
But the EJB seems to be totally unaware of data changes made by others ... Is there a simple mechanism that would allow notification to the EJB to ask it to reload data from DB? JMS or MDB seems to be too complicated ...
Thanks in advance.
layman

Hello,
Thanks for your reply first.
Do you mean that the webapp shall call the EJB's
ejbLoad method in remote interface? or is there anyway
to set a "validation" flag, as we do to Session State?Well, I actually mean that shall the webapp call the EJB's ejbLoad through it's local interface(ejb-local-ref in web.xml)? Isn't there some more elegant way to achieve this? A Java guru told me that JMS might be an "easy" way, but I know almost nothing about that.
tHANK YOU.
layman

Similar Messages

  • Date Modified problem not fixed . . . maybe never?

    Dunno if this has come up recently--I couldn't find it in a search. But the problem of a file, being modified and updated, not showing up as such in a folder unless clicked, is a massive one, and obviously has not been fixed with 4.5. I can modify a file, say an FCP movie, then save it, but it will still be down on the list date-wise that it was before I modified it. Only if I highlight it with a mouse click does it go to the top of the "Date Modified" column.
    This is inexcusable. OS 9 was instantaneous. What is it about OS X that Apple can't get right in this incredibly basic Finder function?

    Hello Ben
    If you want to use BT and make connection between the notebook and your mobile phone you must not be any expert. I have done it several times and it works perfectly.
    I can really not understand that your dealer was not able to help you. If you want to use the mobile phone as modem you can configure it on follow way:
    1. activate Bluetooth using FN+F8 key combination
    2. install all new hardware components if necessary (few of them)
    3. start Bluetooth stack (BT Manager) using small icon near the time information using right mouse button > Bluetooth Settings
    4. activate the Bluetooth on the mobile phone (discoverable)
    5. choose Express mode > Next
    6. Choose visible device listed in Bluetooth device list > Next
    7. Choose pass key for identification (1234)
    8. Enter the key into mobile phone. Paring will be success
    9. Go to Next and configure the internet connection (provider number) > Finish
    10. The new connection will be created in Bluetooth stack utility
    11. You can start the dialing up with double click or click with right mouse button and choose Connect
    In my case I use Motorola mobile phone and I am also able to send the pictures to the notebook.
    Please make it again. It must works!
    Good luck!

  • Copying files to my MBA Early 2011, 10.6.7 changes their 'date modified' to the current date. It happens only to some of the files copied. Any idea what my be causing it. Never had this problem before, on othe macs I have owned.

    Copying files to my new MBA (early 2011) running 10.6.7 results in their 'modification date' to change to the current date. Any idea what may be causing it. It happens only to some of the files (there is no pattern to it.). I have not seen it previously in many other macs I have owned.

    Hi all
    I am bumping this thread again because I can't believe that I am the only one experiencing this issue. At times it is costing me hours repeatedly copying files until eventually the date doesn't show as modified.
    I thought I had cracked it earlier by changing the Sharing & Permissions settings, and applying to enclosed items the ability for Everyone, Me and Staff fo have Read & Write permissions - but that doesn't seemed to have changed much.
    Copying in smaller batches helps sometimes, but then other times it makes no odds, and the Date Modified date shows as the original date for a few seconds, only to change to today's date. Driving me nuts because there is no pattern to it.
    Files which I have copied and show their original modified date, when moved to a subfolder, then have their date changed to today!!! Copying other files into the folder results in files that were previously OK having their Date Modified changed!
    Am I on the only one?

  • Date modified problem

    Since I have been using Lion, folders and documents get "modified date" updated by just opening or moving them. This is highly annoying. Is there a way to avoid that and have date modified when document or folder is really modified? Thanks!

    Hi all
    I am bumping this thread again because I can't believe that I am the only one experiencing this issue. At times it is costing me hours repeatedly copying files until eventually the date doesn't show as modified.
    I thought I had cracked it earlier by changing the Sharing & Permissions settings, and applying to enclosed items the ability for Everyone, Me and Staff fo have Read & Write permissions - but that doesn't seemed to have changed much.
    Copying in smaller batches helps sometimes, but then other times it makes no odds, and the Date Modified date shows as the original date for a few seconds, only to change to today's date. Driving me nuts because there is no pattern to it.
    Files which I have copied and show their original modified date, when moved to a subfolder, then have their date changed to today!!! Copying other files into the folder results in files that were previously OK having their Date Modified changed!
    Am I on the only one?

  • How do I change or remove default apps for a given file extension (in Terminal?) without munging date modified on all my old files?

    When a program is installed, it seems to be able to do it (sometimes inappropriately if it hijacks file associations without asking) so why can't I?  This is for 10.4.
    Specifically:
    1. Since installing an HP wireless printer, HP not only tries to install a bunch of sales-ware on your machine that you have to carefully opt out of (annoying, but not a problem if forewarned), it changes the default file association for a number of basic file types, listing all sort of existing files as HP printer files. Using Get Info to change the default file type association globally causes it to mark ALL the files of that type as newly updated, munging the file metdata (which HP did NOT do). Most of the stuff on our computer is sorted by last modified, so if there is a way to fix this in Terminal (to simply fix or remove the HP default tag) without changing the date the file was modified, it would help. Note that uninstalling the program that created the default would do this, but I obviously can't do that (and reinstalling HP would have the same effect). So there has to be another way, right?
    2. Since updating iTunes to v.9 a while back, every mp3 is marked as an iTunes file even though iTunes has NO multiple library capability without a wonky reboot using the option key, meaning that if I click on an mp3 downloaded since last update of iTunes, it opens automatically in iTunes and gets added to the SOLE itunes library without asking. (There is no way to toggle between multiple libraries or archive media in separate folders; iPhoto has a similar problem. (Has this been fixed in the latest version of iTunes?) In comparison, Quicktime starts up immediately and does not attempt to create a playlist just because you opened a file and listened to it.
    (The iTunes playlists are simply subfolders of the single main library -- and you can't create a new library without doing a wonky procedure by clicking option during startup and telling iTunes to forget where its library is located (includin everything in it) and look up an entirely separate one by hand. So any mp3 file downloaded recently is uploaded to iTunes if you click on it. This wouldn't be problem if it didn't automatically add it to the sole iTunes library just because you clicked on it.)
    Besides, all my old mp3s are Quicktime files and they are all archived by date modified. To its credit, ITunes, unlike HP, does NOT hijack older files already on disk and remark them as iTunes files. It only marks newly downloaded files as such.  But if I try and change file association for FUTURE mp3 files using Get Info > "use this program for all files of this type", it munges the file metadata (date modified) for all existing files!
    Note that in HP case, it apparently does it at the file exchange preference level (or whatever it's called) since the OS then recognizes every file of those types as an HP file. In the iTunes case, it only does it if you download a new media file or open an existing file in iTunes, but again without changing the date it was last edited.
    Since these programs are able to change the default file association without changing the date the file was last edited, it should be reversible in Terminal, correct?  Why does it change "date modified" when you try and correct metadata using Get Info (or sometimes just by clicking an enclosing folder?) Date modified should be a record of when a file itself was edited, not when it was renamed, or other metadata. Otherwise stuff can't be sorted correctly.

    The unix commands you need are:
    GetFileInfo
    SetFileInfo
    and maybe find
    for cryptic details use the man command
    Macintosh-HD -> Applications -> Utilities -> Terminal
    man SetFileInfo
    You may use the SetFileInfo command to set the file type & the program which will open the file.
    # This little gem will do a get info on all files in a directory.
    mac $ ls  | xargs -I {} GetFileInfo "{}"
    file: "/Users/mac/playdoc/oddadocodd"
    type: ""
    creator: ""
    attributes: avbstclinmedz
    created: 05/01/2011 14:53:22
    modified: 05/01/2011 14:53:22
    file: "/Users/mac/playdoc/one.docx"
    type: ""
    creator: ""
    attributes: avbstclinmedz
    created: 05/01/2011 13:57:48
    modified: 05/01/2011 13:57:48
    file: "/Users/mac/playdoc/oneLineFile"
    type: "TEXT"
    creator: "!Rch"
    attributes: avbstclinmedz
    created: 05/07/2011 14:27:17
    modified: 05/07/2011 14:27:17
    file: "/Users/mac/playdoc/oneLineFile.txt"
    type: "TEXT"
    creator: "!Rch"
    attributes: avbstclinmedz
    created: 05/07/2011 14:27:49
    modified: 05/07/2011 14:27:49
    file: "/Users/mac/playdoc/three.docx"
    type: ""
    creator: ""
    attributes: avbstclinmedz
    created: 05/01/2011 13:58:03
    modified: 05/01/2011 13:58:03
    file: "/Users/mac/playdoc/two.docx"
    type: ""
    creator: ""
    attributes: avbstclinmedz
    created: 05/01/2011 13:57:56
    modified: 05/01/2011 13:57:56
    file: "/Users/mac/playdoc/weirder.doc.docx"
    type: ""
    creator: ""
    attributes: avbstclinmedz
    created: 05/01/2011 14:50:03
    modified: 05/01/2011 14:50:03
    # well, ! is a funnie character so we escape it.
    mac $ SetFile -t TEXT -c \!Rch two.docx
    mac $ GetFileInfo two.docx
    file: "/Users/mac/playdoc/two.docx"
    type: "TEXT"
    creator: "!Rch"
    attributes: avbstclinmedz
    created: 05/01/2011 13:57:56
    modified: 05/01/2011 13:57:56
    mac $
    mac $ date
    Sat May  7 14:40:56 EDT 2011
    mac $

  • Why do I keep getting the "modified outside Illustrator" box?

    I work with Illustrator and Photoshop both open simultaneously, moving Illustrator parts into Photoshop scans and importing Photoshop scans into AI for use as templates. Both are Adobe apps, right? So why do I get this warning when I work on the Illustrator file: "This File has been modified outside Illustrator. Do you want to continue?" It is matched by an equally imbecilic query in Photoshop, where I get the warning: "The disc copy of this file has been modified. Do you still want to save it?" or words to that effect. Am I missing something here? I’ve thought about it, and I honestly can’t imagine a situation wherein someone  with enough intelligence to use either or both apps as advertised, meaning that they want to use Photoshop and Illustrator to modify images, could find these warnings helpful.
    Who came up with these, and why is my computer asking me such stupid questions? And why isn’t there a “Don’t ask me this stupid question again” check box in the dialogue box? Please tell me these moronic inquiries will not appear before me in CS6.

    auto-update open documents.. in the preferences, at least for Photoshop. Illustrator is always going to warn you when link data changes.

  • Why does placing links in Illustrator now change the "Date Modified" data for all of my files?

    This seems to be a new glitch that started after I installed the latest updates to Illustrator CC (2014) and reoccurs every time on both computers I work on:
    When I choose to place a new image in my Illustrator file and the window opens to let me choose a file to place, the "Date Modified" field of all the files in the folder I'm viewing (except other Illustrator files) quickly changes to the current date and time. This is definitely happening when I'm in Illustrator because when I needed files from a folder that had hundreds of images in it and I was able to select a file quickly, I was able to do so before it had changed the date on all of my files. However, when I needed a file from a folder that had hundreds of images in it but I took a long time to find the image I needed, Illustrator had time to change the date modified on all of my files. This might seem like an unimportant issue because it doesn't actually seem to modify or damage any of my files, but having all of the dates change on my files is a serious problem for my workflow and file management issues. So far, my only work around has been to use back-up image files, but that's not a long term solution and I don't understand why Illustrator should be modifying the dates of my files.
    Is there a setting I can choose somewhere to prevent this problem? If not, is there somewhere I can report this kind of glitch? I'm not sure if I'm using the exact language necessary to get the issue across so please let me know if you have any questions! Thanks!

    iCloud is not compatible with Snow Leopard, that is your problem.
    A quick way out is to purchase Soho Organizer which is compatible, even when running on Snow Leopard, it will correctly handle Contacts and Calendars from iCloud. $100, 2 user license.
    Soho Organizer
    There is a free trial if you want to try it.

  • The date modified date for documents does not change

    All my documents except for today and yesterday (whenever that happens to be) shows the date modified as being a random date of last year that is not when they were last modified. Does anybody know how to fix the problem so as the documents accurately show when they were last modified?

    Go to website.
    Change it back.
    You will have 2 minutes to delete iCloud from iPhone.
    Change it to new one on website and verify.
    Sign in new one on the phone.

  • Detection Method of Date Modified fails due to copied files date modified change

    I've been working through an issue for some time now and I think it's a bug with SCCM 2012 SP1. I've built literally 50 deployments in "Application Management" in SCCM 2012, but I've been chasing my tail on a few of them throwing the
    "succeeded but couldn't detect" error. The few that have given me problems are all copying text files and then detect the modified date to verify that the file is there. All worked when I initially built them in Windows 8 but are now failing
    randomly...even on a machine where they previously worked and I deleted the files to test the deployment again. 
    What I'm doing:
    My java deployment requires policies which we control with the Deployment.config, deployment.properties and java.policy files. A simple script creates the directories and copies the files. I then create a deployment type for this "ConfigFileCopy.cmd"
    and create a detection rule for each file that I am moving over. The detection rule looks for a "date modified" date between the beginning and end of the date for the day I modified the file. This allows me to modify the files to change our
    java policies and then redeploy them with the "new" modified date as the detection rule, which forces the update.
    The problem:
    When I first created my deployment, everything worked pretty well. The files copy out and the script runs successfully. There were some minor tweaks I need to make to my scripts, so I did and then updated the content for the deployment type. I believe this
    is where things go a little wonky. At this point, my deployment starts failing with the "0x87D00324" error.
    Looking through the logs, everything looks good. The reason configuration manager is failing on detecting the modified date for those files, as it turns out, is because the modified dates don't meet the criteria. So that part is properly failing the detection.
    The problem is that the modified dates are correct on the server but not the client. Looking in c:\windows\ccmcache, I can see multiple folders....presumably one for each version of the application that I updated. Looking at any of the newer content folders
    for this app, the modified dates are the date and time the file was copied out to the workstation, which is incorrect as the file hasn't been modified during that process.
    The odd part, is that this doesn't happen EVERY time on EVERY machine. My primary desktop is windows 8.1 and received the files correctly and installed without issue. My test win 8.1 laptop initially received them correctly, but then as I refined the scripts
    it began picking up the wrong modified dates and started failing.
    I found a similar issue to this existed in SCCM 2007 (http://support.microsoft.com/kb/2276865) so I suspect that this is truly just a bug that hasn't been addressed (or maybe is fixed in R2). Unfortunately
    we have business reasons we can't upgrade to R2 at this time so I'm hoping someone has experienced this and has some sort of work around that might get me by for now. If someone can confirm it is fixed in R2, that would help my case to upgrade as well.  
    I can work around the issue by changing my logic to detect any date greater than a specific date. But I shouldn't have to do that and I'm concerned there are scenarios I haven't thought of that will cause unexpected behavior or failures with that.
     

    This outlines the behavior. It's apparently by design. 
    "SCCM has a habit of changing the ‘Date Modified’ timestamp of all files it delivers when it detects an ‘upgrade’ of the source files for that application. It typically does not touch the timestamp
    of the source files if it delivers a brand new install to a client that has never received the software, however if a single file in the source folder is changed for that application, then SCCM tries to use a previous version of the application in the cache
    (C:\windows\ccmcache) and only downloads the new file that has change. This results in all files having their ‘Data Modified’ timestamp changing (except for the brand new file). Therefore determining if that application has delivered
    successfully using ‘Date Modified’ timestamps is not recommended. The key to seeing this process in action is looking at the file properties in the
    C:\windows\ccmcache\<sccm code> folder for that application, particularly before and after a file is updated in the original source SCCM application folder."
    http://blog.kloud.com.au/tag/sccm/

  • My iMac 27" Late 2012 has Image Persistence Problem

    I'm wondering what to do about an annoying image persistence problem on my 27" late 2012 iMac. I got the iMac just a few days ago. Monday actually, so 4 days ago.
    It's the 3.4GHz i7, 8GB, NVIDIA 680MX 1TB fusion drive model.
    Overall it has become the love of my life, but the image persistence thing is getting harder to ignore. This happens after only a few minutes of use. If I follow Apple's instruction on dealing with LCD image persistence, I can make it go away for a while, but it comes back very quickly.
    It is extremely noticeable on a plan dark background. It looks as thought he screen has been left on for a very long time with the same windows open, but it occurrs in less than 5 minutes of use with nothing more intense than a bit of web surfing.
    I've read that this is happening a great deal on these new iMacs, particularly teh 27" machines.
    While the problem seems to be known to those of us afflicted I don't know if Apple has acknowledged an issue or not.
    Here is a sample of the complaints: http://forums.macrumors.com/showthread.php?t=1509571
    I can make the ghost image vanish by bringing up an all white scree for a minute or so or using LCD Scrub.
    I'm wondering if anyone else has foun a solution other than asking for a replacement computer, which Apple seems to be granting on this issue?

    Avoiding image persistence on Apple (IPS) displays
    Avoiding image persistence on Apple LCD displays
    If you cannot resolve the issue yourself, then return the computer for a replacement. You may do this freely within 14 days from date of purchase, so don't delay.

  • In my opinion, the real solution is for Apple to offer us a choice of the photo sort order in ITunes. My preference would be filename, perhaps with options to choose the Date Taken attribute, file timestamp or date modified filestamp (EXIF date fields as

    I tryed to sort my pictures with buying Apps and following suggestion from apple, but without any success. In my opinion, the real solution is for Apple to offer us a choice of the photo sort order in ITunes. My preference would be filename, perhaps with options to choose the Date Taken attribute, file timestamp or date modified filestamp.

    Not a problem when using iPhoto on a Mac, which the transfer of photos is primarily based on - not manually managing photo storage as seems to be common with Windoze.
    The same should be available with a supported photo management app on a PC.
    http://support.apple.com/kb/HT4221

  • Is Bridge supposed to sort raw files by date modified?  Not on my systems.

    I have just installed photoshop/bridge cs5 on two windows 7 systems, home premium 64 bit, one an i3 chip and the other an i7 chip.  I was formerly using cs3.
    I see that Bridge is not sorting my raw files by date modified like it did before.  It sorts jpg files okay.  I noticed that the xmp files associated with the raw files, when I hover over them in Windows Explorer show the correct modified date but the thumbnail icon shows only creation date, which I assume is as it shou ld be.  Why doesn't Bridge CS5 sort raw files by date modified as it did in CS3?  CS3 must have referred to the xmp file modified date to use for sorting, I would think.
    I should also mention that the metadata file does not show the correct date modified, but gives the same date as the creation date.  Also the thumbnails for raw images that have been modified correctly show the icon that indicates it was modified.
    Also, I see that when you hover over a thumbnail in Bridge CS5 nothing is revealed about the file.  In CS3 Bridge hovering over a thumbnail showed several pieces of data about the file including anything in the file info.
    Is this just how Bridge CS5 works or have I missed a setting somewhere in Bridge or Windows?

    Curt, thanks for your response.  The tool tips
    was not checked and did result in "hovering"
    working.  I'm not sure why that's called tool tips, but okay.
    I have just installed the software in the last
    few days.  I almost immediately got an update
    notice and installed the update.  I thought I was
    up to date.  Then, just a while ago I got another
    update notice.  After installing it the sorting
    now works.  Thanks much.  Problems seem to be solved.

  • InDesign will not open files in Date Modified order

    I have never had this problem before, but suddenly InDesign will not import/open my files (photos) in Date Modified order. No matter how I select the files or order/arrange the files in the File\Place window, they open in name order. I have 200 separate folders with six photos each. These are to be placed in the InDesign document in date modified order. Someone suggested batch renaming the files using Adobe Bridge, however the files are in 200 individual folders for a reason and I don't want to open each folder and batch rename 6 at a time. I have reset my InDesign preferences with no luck. I am using Version CS5.5 of InDesign, Mac OS X 10.7.5. Any suggestions?

    @Emily,
    It usually only confuses a discussion to open a new thread on the same subject.
    I'm directing you back to the original discussion you opened earlier today instead of starting another one:
    http://forums.adobe.com/thread/1292390?tstart=0
    I'm also locking this discussion.

  • Why doesn't Lightroom organise videos/photos lacking "date taken" by "date modified" instead of "date created"?

    This still seems to be a problem with Lightroom 5. This post is one of the top results after trying to Google this problem, and it's for LR3. I can't understand why something so fundamental to video (and some photo) organisation has been overlooked for so long.
    I've been trying to import and organise all my old photos and videos by date with LR5. They've been backed up and copied many times over the years, most recently to an external drive last week. So every file has a "date created" of last week. But "date modified" remains the original recorded date.
    This doesn't matter for photos with a proper EXIF "date taken" - but LR5 looks at the "date created" for videos, making it completely useless for organising them into date-based folders. It puts videos I recorded in 2010 (as per "date modified") into a 2014-12 folder. Why.
    It's not just a video problem - some photos I took with devices that didn't record EXIF "date taken" are also filed into folders from this month, even though the "date modified" on them is correct as being from 5 years ago.
    How can I rely on LR5 for importing and date-based organisation when it relies on files (lacking "date taken") having never been copied or backed up?

    Hello,
    I use exiftool to modify the  Creation and Modification time of the files. After that I use LR "Ajust time" feature to set the time of the movies in LR to the file creation time (last point). This works fine for me.
    For MOV (Quicktime):
    exiftool "-FileModifyDate<TrackCreateDate"  "-FileCreateDate<TrackCreateDate"
    For AVI:
    exiftool "-FileModifyDate<DateTimeOriginal"  "-FileCreateDate<DateTimeOriginal" *.avi
    Depnding on your camera (and container format mov, avi) you may also ajust the time zone, e.g.
    exiftool -FileModifyDate+=1 -FileCreateDate+=1 -if "$CameraModelName =~ /EOS 600D/i" *.mov
    Which time in the container (MOV, AVI) you use as source, depends on your workflow. I edit my mov files before import. Therfore "CreateDate" is the time when I edited the file. Quicktime and (some) avi file contain a time when the containing stream was created. I use this vaule as source.
    exiftool <filename> gives you detailed information about all available times.

  • Why does Bridge always sort images by rating instead of by date modified?

    Why does Bridge always sort images by rating instead of by date modified?
    This drives me bonkers.  Everytime I look for an image I've been working on, I go to Bridge and I'm always presented with the images sorted by rating instead of by date.
    Then I click on the microscopic sized, extremely tiny arrow that allows one to choose 'sort by date modified' and I resort them to find the file I need.  So that's always 3 extra clicks to find the image.
    WHY can't Bridge sort images by date modified and STAY that way every time I come back?
    Thanks for any help.
    I know I could just keep the recent files rated the highest, but still, I'm wondering if there's a way to make it work the way I'd like it to work?
    jn
    p.s.  Note to Adobe: Please make the selection button for sorting images arrow larger than a fraction of the size of the period at the end of this sentence.  Thanks.

    WHY can't Bridge sort images by date modified and STAY that way every time I come back?
    By default it does stay at the latest selected sort order so this could mean it is due to your install.
    First of all try to reset the preferences for Bridge, hold down option key while restarting Bridge and choose reset preferences. This sets it all to default. First try if the problem is solved then set prefs again to your own custom wishes.
    Also check and repair permissions for the OSX itself (Apple has disk utility in the utility folder for this job, and there are other 3th party applications)
    And be sure to have the latest update for Bridge. (Bridge CS5 should be 4.0.5.11)
    In addition to the method Tai Lao pointed you already to there is a third option, use right click mouse button in content window and the pop up menu has also the sort option at the bottom of the row

Maybe you are looking for