Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7507417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:28:57+00:00 2026-05-29T22:28:57+00:00

I have a web service that is running and generates a WSDL file based

  • 0

I have a web service that is running and generates a WSDL file based on data that is stored on the database.

When I update some columns in the database with new data and then reloads the WSDL, the old value is still returned from the web service.

Do I have to enable somthing on the EntityManager (in the java code) or something?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T22:28:59+00:00Added an answer on May 29, 2026 at 10:28 pm

    First of all, do you really mean WSDL? I can hardly imagine a system that changes the WSDL (web service contract, in other words interface description) upon change in the database (although of course it is possible).

    That being said I assume it is the web service response that changes. Looks like you are using JPA. Most JPA providers add some caching layer. E.g. in Hibernate there is L1 cache, L2 and query cache. If you are modifying the database manually, JPA has no knowledge about these changes and still serves old data.

    Please specify which JPA provider you use, typically there is a way to manually flush caches (either in the provider or in the caching library).

    UPDATE: It turned out you are using EclipseLink. Please try clearing the cache with the following code:

    org.eclipse.persistence.jpa.JpaHelper.
      getEntityManager(entityManager).
      getEntityManagerFactory().
      getCache().
      evictAll();
    

    Now the tricky part – when to call it? The best solution is to execute this functionality every time you modify the database directly. You mentioned it is the PHP scripts that modifies the database directly. Calling Java from PHP can be achieved e.g. with JMX and Jolokia or you can expose yet another SOAP web service.

    Another solution is to clear cache periodically if you can live with stale data for a while. On the other hand clearing the cache on every update might be a performance killer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web service that queries data from this json file, but I
I have a web service that is running on IIS (6 or 7, doesn't
I have an ASP.NET web service running that accepts both HTTP POST and SOAP
I have a .NET Web Service running in VS2005 and a client that consumes
I have a web service that seems to work fine when I am running
I have some WSDL from which I need to generate a web service implementation.
I have a web service that's been running fine without modification for a couple
I have a WSDL file for a web service. I'm using JAX-WS/wsimport to generate
I am running windows vista business 64 bit. I have a web service that
I have a web service (JAX-RS/Spring) that generates SQL queries which run against a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.