Working with Tomcat 4 and JDO doesnt query database every time

I have a strange behavier with an Struts-Application deployed on Tomcat
4.1.18.
Whe I run a a piece of the app from commandline (whiche make changes in
the database, it is called by a cronjob) tomcat (or the PersistenceManager
in Tomcat) doesnt query the database, so that these changes are never seen
on the GUI... The Web-App shows the old values (the new values are seen if
I restart tomcat!).
Where is the problem? Or where can I configure to disable this kind of
caching?
I'm using KODO 2.4.3 for evalutiong...
Thanks
BERND

Bernd,
With Kodo 2.4, your only options are to disable caching for the class in
question (see the can-cache metadata extension for details), or to make
your cron job communicate the changed OIDs (or just the fact that changes
have been made) to a JVM.
In Kodo 2.5 (currently in RC1), you can set up a cache timeout on a
class-by-class basis.
At some point in the future, we may also include the capability to
specify a timeout time (rather than rate) for a class, which would let
you configure your class to time out just after the cron process runs.
-Patrick
On Fri, 09 May 2003 12:12:06 -0400, Bernd Fischer wrote:
Hello,
I have an problem with an Struts-Application with KODO-JDO 2.4.3 as
Persistence Framework. It is deployed under Tomcat 4.1.18.
With Linux Cronjob I run some functions of this application over
commandline. This functions changes some data in the database (mySQL
3.23.xx). All that works fine.
But the cronjob changes data, the Struts-Webapplication does not notice,
it takes values of some cache, so that the data-changes were never
displayed in the GUI!!!
How can I get rid of that caching!! Or what can I do?
Thanks a lot for every idea
BERND--
Patrick Linskey
SolarMetric Inc.

Similar Messages

  • I'm on OX X and am trying to work with iMovie 09.  It keeps crashing every time i open iMovie.  Any suggestions?

    I'm on OX X - version 10.9 and trying to work with iMovie 09 and it keeps crashing...any suggestions?

    As a first step, you may want to try deleting iMovie preferences.
    AppleMan1958 outlines the steps in his excellent User Tip here:
    https://discussions.apple.com/docs/DOC-4061
    Matt

  • I have a script that works with no issues in XP but fails every time in Windows 7

    All the script is supposed to do is get the ip address of the client and add .5 to the last octet passing this ip address through to remote desktop. It performs fine in XP but fails on a join error in 7 or 8. Any help? 
    ' SCRIPT to determine IP address of Terminal Server in Field installation
    ' ASSUMPTIONS: terminal device has been booted after DHCP server
    ' is operational. Calculation of server IP address is based
    ' on terminal device's IP address.
    ' PROCESSING:
    ' Obtain IP Address from Registry (NB: WMI doesn't work...)
    ' Compute server's IP Address by replacing own IP address's
    ' last octet with the number 5
    ' Invoke the TS client in fullscreen mode using the newly
    ' computed address
    ' When done with session, present MSGBOX --  otherwise, the TS
    ' session times out and restarts, leaving a bunch of sessions active
    ' VERSION:1.1
    ' DATE:   September 6, 2007
    ' AUTHOR: Dom
    ' CHANGE LOG
    ' 1.0 Original, using registry hack
    ' 1.1 Modified to use WMI
    ' 1.2 May 2008 - Added msgbox 
    ' 1.3 August 2008 - Translate msgbox
    option explicit ' force all variables to be declared
    ' ***           Start of script                            ***
       Const wbemFlagReturnImmediately = &h10
       Const wbemFlagForwardOnly = &h20
       Dim WshShell, ObjNet
       Dim StrComputer, Server
       Dim objWMIService
       Dim colItems, objItem
       Dim strDefaultIPGateway, strIPAddress, strIPSubnet, cIPAddress
       Set WshShell = WScript.CreateObject("WScript.Shell")
       Set objNet=CreateObject("wscript.Network")
       'Get the Computer's network name
       strComputer=objNet.ComputerName
       ' Connect to root of management interface for this computer
       Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
       Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration", "WQL", _
                                              wbemFlagReturnImmediately + wbemFlagForwardOnly)
       For Each objItem In colItems
          strDefaultIPGateway = Join(objItem.DefaultIPGateway, ",")
          strIPAddress = Join(objItem.IPAddress, ",")
          strIPSubnet = Join(objItem.IPSubnet, ",")
          exit for
       Next
       cIPAddress=split (strIPAddress,".",4)
       Server = cIPAddress(0) & "." & cIPAddress(1) & "." & cIPAddress(2)  & ".5" 
       WshShell.Run "%SystemRoot%\System32\mstsc.exe /v:" & server & " /f",,true
       dim answer
       answer = msgbox ("Click OK to log in to server, Cancel to terminate session" & vbcrlf & "Cliquez OK pour ouvrir une session sur le serveur, ou CANCEL pour fermer la session.",1 + 64 + 4096)
       if answer = 1 then 'that would be "OK"
           wshshell.run "wscript c:\windows\connect.vbs"
       else
          wshShell.run "shutdown -L"
       end if
    '                             END

    After removing all of the lines that do nothing or introduce subtle errors her eis swhat the script actually needs to do.
    ' get local address
    Set objWMIService = GetObject("winmgmts:\\.\root\CIMV2")
    Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled=True")
    For Each objItem In colItems
    IPAddress = objItem.IPAddress(0)
    Next
    ' fix address
    ip=Split(IPAddress,".")
    ip(3) = 5
    TSServerIP = Join(ip,".")
    ' Run the ssession
    Set WshShell = WScript.CreateObject("WScript.Shell")
    WshShell.Run "%SystemRoot%\System32\mstsc.exe /v:" & TSServerIP & " /f",,True
    answer = msgbox ("Click OK to log in to server, Cancel to terminate session" & vbcrlf & "Cliquez OK pour ouvrir une session sur le serveur, ou CANCEL pour fermer la session.",1 + 64 + 4096)
    if answer = 1 then 'that would be "OK"
    wshshell.run "wscript c:\windows\connect.vbs"
    Else
    wshShell.run "shutdown -L"
    end if
    Much shorter and much easier to understand.  Fewer logic errors.
    ¯\_(ツ)_/¯

  • Internet won't work with wireless and ethernet connected at the same time.  Airport extreme

    Why can I not connect ot the internet when both the ethernet cable is connected.  The connection is fine when only on wireless and fine when only the ethernet cable is connected but won't work when the cable is plugged in.
    any ideas?

    opps  forgot to set router as bridge  turned off NAT and problems solved

  • AppleTV doesnt query iTunes every time so misses new content

    Hi,
    I have this on again off again problem with my AppleTV (possibly between iTunes versions).When I open TV Shows, for example, it should give me a message saying "loading XXX library" which is good as it is checking iTunes for a list of available content.
    At present (since iTunes 9) it doesnt do this so it only shows the content that was on my iMac since I set it up. As new content is added it doesnt appear as its not rescanning the library.
    Anyone else have this problem?? or know the solution.
    I have to repair the AppleTV with iTunes to have it check the library which is obsurd!
    Dave

    I am having the same problem. I have about 213 videos on my MAC... used to be able to just stream them to either one of two iTV's. Now after recent updates, I find that the iTV's do not see recently added content to the iTunes movie file. THis is whether or not it is set to sync any movies at all, or no movies (in which case it is supposed to just look at the content of the ITunes file.) It appears that iTV must build its list of files in iTUNES when it is set up, and then never updates this list regardless of whether new content is added to iTUNES. Very irritating, and not the way it is supposed to work.
    Only work-around I have found is to just manually add the new file you want to watch to the iTV by selecting it and pushing sync.... then wait for the GBs to be transferred (if you have any room left on the iTV)..... AGAIN.. NOT THE WAY IT IS SUPPOSED TO WORK (APPLE?).. needs a fix.

  • RequestDispatcher is not working with Tomcat 4.1

    This is JSP's path
    http://localhost:8080/myApp/Date.jsp
    from this jsp i am calling below Servlet
    this is my servlets path
    http://localhost:8080/examples/servlet/SampleServlet
    from the servlet i am trying to forward request to other JSP
    but it sees like RequestDispatcher is not working with Tomcat
    but i can able to call JSP using
    response.sendRedirect("http://localhost:8080/myApp/Date.jsp");
    OR
    response.sendRedirect("/myApp/Date.jsp");
    both works fine , but no combination is working with RiquestDispatcher.forword();
    Any Guess ???.

    yes i have tried with ("/Date.jsp") also .
    it gives me 404 error
    Error description is
    " The requested resource (/Date.jps) is not available"
    i am getting same error for all possible combinations of URL iam giving
    some of other URL's i have tried..
    /examples/Date.jsp
    /myApp/Date.jsp (myApp is my war file name deployed in webapps directory)
    and many more
    thanks for help.

  • Tomcat 5.5 issues, has anyone got JSF working with tomcat 5.5 yet?

    Hi,
    Firstly I'm wondering if anyone has got JSF 1.1 working with tomcat 5.5 yet.
    I'm trying to move from tomcat 5.0.25 to 5.5.4 and my JSF webapps have not liked the move at all.
    The classpath doesn't seem to be a problem as I have all the .jars that are required in the classpath of tomcat just like before.
    I see the error log in stdout.log (catalina.out on linux) have been reduced to only show the precise error. Or at least is seems at lot easier to read.
    My error is simply
    SEVERE: Error listenerStart
    SEVERE: Context startup failed due to previous errors
    I reverted back to using the examples provided like jsf-guessNumber and the car-demo but neither of these will start-up.
    This issue seems to have occurred to lots of other people previously but I couldn't find a particular fix or direct compatability issue with tomcat.
    Has anyone encountered this before?

    Back again,
    Allright well after a little thought I concluded that this issue had to be some to do with the classpath and the changes between the two tomcat versions.
    I had a look at
    http://jakarta.apache.org/tomcat/tomcat-5.5-doc/RELEASE-NOTES.txt
    and noticed that tomcat 5.5 leaves out some important .jar as they are only needed for java 1.4.
    -------------------- EXTRACT ------------------------
    Installing the compatibility package will add the following to the list, which are
    needed when running on J2SE 1.4:
    * jmx.jar (Java Management Extensions API 1.2 or later)
    * xercesImpl.jar (Xerces XML Parser, version 2.6.2 or later)
    --------------------END EXTRACT ------------------------
    Therefore I tried putting xercexImpl.jar back onto the tomcat classpath and JSF works once again.
    Ah what a relief.

  • FaceTime no longer working with Yosemite and IOS 8.1

    I have used FaceTime flawlessly for some time with no issue.
    After I upgraded to Yosemite on my MacBookAir and IOS8.1 on 5S and iPad air, I've had a problem connecting.
    When I get a call, all the devices ring (as they should) but it will not connect on the first device I pick up on.  It says connecting
    but all the other devices keep ringing and finally it says I have a missed call.  The connection does not happen.  If I turn off
    all devices except one, it will work...... do we have a bug here??

    Thank you for responding to my issue.  I spent the better part of two hours trying to get this to work.  Bluetooth is enabled on all devices. Each computer is set in Preferences/General to allow Handoff.  All computers and iPhones are on the same WiFi network.  I toggled all of the major settings off and on.  Rebooted each of my computers several times. I finally conceded defeat.  Then my daughter asked to have a try at it.  She worked on the first MBP for about thirty minutes and informed me that she had gotten continuity to work.  And indeed, on her MBP late 2012 she is able to use the continuity features in both directions between her computer and her iPhone 6.  But it only works with Mail and Safari.  I asked how she accomplished this feat.  She said she turned off "everything" on her computer and iPhone (WiFi, Bluetooth, "Allow handoff" under Preferences/General) and then rebooted both the iPhone and the computer.  She then turned everything back on.  This worked for her.  So we tried the same thing on my MBP and iPhone 6.  Now continuity works partially. Email activity is mirrored on both the MBP and the iPhone regardless of which device initiates the continuity activity.  But Safari activity on the computer is mirrored on the iPhone but not in the opposite direction.  There is no continuity function for Pages in either direction.  The telephone connectivity works fine on all of my devices– 3 MBPs, Mac Pro, iPad Air, 2nd gen iPad and 3rd gen iPad.

  • Help on export sybase iq tables with data and import in another database ?

    Help on export Sybase iq 16 tables with data and import into another database ?

    Hi Nilesh,
    If you have table/index create commands (DDLs), you can create them in Developper and import data using one of methods below
    Extract/ Load table
    Insert location method : require IQ servers to be entered in interfaces file
    Backup/Restore : copy entire database content
    If you have not the DDLs, you can generate them using IQ cockpit or SCC.
    http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01773.1604/doc/html/san1288042631955.html
    http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01840.1604/doc/html/san1281564927196.html
    Regards,
    Tayeb.

  • Looking for an app that works with Mac and iPhone that will set calendar reminders of birthdays in contacts.

    Looking for an app that works with Mac and iPhone that will set calendar reminders of birthdays in contacts.

    Hi ron1098,
    Try my application Dates to iCal. it runs on the Mac, but you can sync the calendar to your iOS device.
    See more about Dates to iCal here. It is £4 shareware with a 2 week demo.
    Best wishes
    John M
    As I sell software on my site and ask for donations, the Apple Support Communities Use Agreement requires that I state that I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Handoff not working with Yosemite and iOS 8

    I have three Macbook Pros in my household.  Two are mid 2012 models and the other a late 2012 model.  Each is supposed to support the handoff feature of Yosemite and ios8.  Everything seems to work properly between my daughter's late 2012 MBP and her iPhone 6.  But on the other two MBPs in our family the continuity feature does not work on either of them.  Receiving and sending calls works fine.  But the continuity does not work even though all three MBPs and all three iPhone 6 are on the same wifi network.
    I've tried all the suggestions that I could find.  Toggling off and on the various settings on the MBPs and the iPhones.
    John

    Thank you for responding to my issue.  I spent the better part of two hours trying to get this to work.  Bluetooth is enabled on all devices. Each computer is set in Preferences/General to allow Handoff.  All computers and iPhones are on the same WiFi network.  I toggled all of the major settings off and on.  Rebooted each of my computers several times. I finally conceded defeat.  Then my daughter asked to have a try at it.  She worked on the first MBP for about thirty minutes and informed me that she had gotten continuity to work.  And indeed, on her MBP late 2012 she is able to use the continuity features in both directions between her computer and her iPhone 6.  But it only works with Mail and Safari.  I asked how she accomplished this feat.  She said she turned off "everything" on her computer and iPhone (WiFi, Bluetooth, "Allow handoff" under Preferences/General) and then rebooted both the iPhone and the computer.  She then turned everything back on.  This worked for her.  So we tried the same thing on my MBP and iPhone 6.  Now continuity works partially. Email activity is mirrored on both the MBP and the iPhone regardless of which device initiates the continuity activity.  But Safari activity on the computer is mirrored on the iPhone but not in the opposite direction.  There is no continuity function for Pages in either direction.  The telephone connectivity works fine on all of my devices– 3 MBPs, Mac Pro, iPad Air, 2nd gen iPad and 3rd gen iPad.

  • I like the idea of auto back-up for my new iMac, Ipad and PC Netbook, particularly if I can access all files and data stored on any device.  But I have a Conceptronic router.  Will Time Capsule work with this and how?

    I like the idea of auto back-up for my new iMac, Ipad and PC Netbook, particularly if I can access all files and data stored on any device.  But I have a Conceptronic router.
    1. Will Time Capsule work with this and how?
    2. Can my printer USB be plugged in and then shared between the devices?
    3. Can I create a network and how?
    4.  What happend when a visitor logs onto my existing wireless router?
    I'm new to Macs (well a returning user having started with Mac Plus!!) and not very technical.  Any help / advice will be much appreciated.
    Ray

    The key to what you seem to want to do is to be able to get Apple's Time Capsule router to "join" the network that your Conceptronic router.  I believe that works with some third-party routers, but I've never seen a list of those that work in such a configuration and I have no experience with Conceptronic equipment.
    You might be better off with a Network-Attached Storage (NAS) device instead of a Time Capsule.

  • I am considering buying an iPad 3. I have an iMac with OSX 10.6.8. On the iMac I have many photos and work with iPhoto and Photoshop Elements on the computer. Can I interchange or transfer photos and other work from the iMac to the iPad? How?

    I am considering buying an iPad 3. I have an iMac with OSX 10.6.8. On the iMac I have many photos and work with iPhoto and Photoshop Elements on the computer. Can I interchange or transfer photos and other work from the iMac to the iPad? How?

    velma Monreal wrote:
    I am considering buying an iPad 3. I have an iMac with OSX 10.6.8. On the iMac I have many photos and work with iPhoto and Photoshop Elements on the computer. Can I interchange or transfer photos and other work from the iMac to the iPad? How?
    Yes you can. In iPhoto create a Album with the photos you want in it. You can drag them from your Events folder. In iTunes with your iPad connected go to Photos by cliking on your iPad. You can then select the album or events you want.

  • Hello, I have a Mac computer with NVIDIA 750M dedicated graphics card and monitor EIZO but the problem was there when I was working with Windows and Acer monitor. When I open a file from Camera Raw in PS this is smaller than the screen so I double-click w

    Hello, I have a Mac computer with NVIDIA 750M dedicated graphics card and monitor EIZO but the problem was there when I was working with Windows and Acer monitor. When I open a file from Camera Raw in PS this is smaller than the screen so I double-click with the tool "hand" to fit on the screen, but the picture loses sharpness and becomes blurry. If you magnify the image even only slightly with the tool "zoom" the picture comes back clear. In Camera Raw instead is always sharp. I solve the problem by turning off the graphics card in PS but often use plugin that need the graphics card otherwise the processing time is much longer. I ask for help.
    Thanks.

    Hello, I have a Mac computer with NVIDIA 750M dedicated graphics card and monitor EIZO but the problem was there when I was working with Windows and Acer monitor. When I open a file from Camera Raw in PS this is smaller than the screen so I double-click with the tool "hand" to fit on the screen, but the picture loses sharpness and becomes blurry. If you magnify the image even only slightly with the tool "zoom" the picture comes back clear. In Camera Raw instead is always sharp. I solve the problem by turning off the graphics card in PS but often use plugin that need the graphics card otherwise the processing time is much longer. I ask for help.
    Thanks.

  • Internal Microphone not working with Quicktime and some other apps, yet it does for Skype.

    Internal Microphone not working with Quicktime and some other apps, yet it does for Skype. 
    Microphone works fine with Quictime on another mac, so I do know how to use it. The one where it is not working (A) had an external microphone and camera attached earlier, and indeed it does work with that external microphone, but not with the internal microphone selected; and (B) had RealPlayer installed previously.
    Any suggestions, please?

    Hi,
    Download Audio driver from here.
    Intructions how to install it in Vista/Win7.
    Extract this driver with Winrar.
    Open Device manager and expand the Sound, video and game controllers section.
    Right click on Either the High Definition Audio Device if you have the generic Microsoft drivers, or the Conexant High Definition SmartAudio 221 if you have older Conexant drivers and choose "Update Driver Software..."
    Click Browse my computer for driver software, then click "Let me pick from a list of device drivers on my computer"
    Click "Have Disk..." then Browse to the folder where the drivers were extracted  .......\V64 for 64-bit Vista/Win7. Click OK.
    Select one of the "Conexant High Definition SmartAudio 221" models in the list, there will be multiple identical entries.
    Click Next, and you're done.
    I'm not sure which one from the list will work for You.
    This drivers weren't test. So if You will try them and it will work for You let us now about.
    ** Say thanks by clicking the "Thumb up" icon which is on the left. **
    ** Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue. **

Maybe you are looking for

  • What's this sandboxd mdworker deny mach-lookup thing about?

    My newer iMac keeps locking up over many months. It seems to be getting more frequent. All updated are made and I'm running OS10.8.2. Each time I've looked at the console log one of the last entries has been related to mdworker and sandboxd. This is

  • Burning downloaded itunes videos to DVD - How do I do this?

    I have downloaded over $50 worth of video film clips so I could make my own dvd. I assume that paying $3.69 for them entitles you to burn them to dvd as we do songs to cd @ $1.30/song. I have tried burning to a dvd with no luck. How do I do this?

  • Connecting to https with jdk1.5 throwing InvalidAlgorithmParameterException

    Hi, My current system has jdk1.3, weblogic7.1 and axis1.1. I have a simple class in java which I use to connect to https://*.jsp. Here is the sample code. System.setProperty("javax.net.ssl.trustStore","/usr/local/client.keystore"); System.setProperty

  • Kernel Panic on MacBook Pro, brand new.

    HI! I have done a lot of research on the kernel panic. It happens on Safari, and I have done all I think I can do based on what I have read on these forums. (PRAM, reinstall OS, repair permissions, ditch safari prefs, etc) Another odd thing is that i

  • Have Mac version of Photoshop CS3 need Windows version

    Thought I would post here and see if anyone had a Windows version of Photoshop CS3 that they would like to trade for my Mac version. Mine is the full version with the box and everything that came with it. It was installed and activated one time for l