I'm experiencing a problem that's totally new to me, because I'm a JPA newcomer. Here's what's going on:
If I change a database record using MySQL's administrative Tool, And then Invoke a Session Bean that Retrieves that -Just updated-(using the admin tool) DB Record as an Entity(using JPA).... The Entity Retrieved does not reflect the changes that were made directly to the database.
A little more detail about my scenario:
I'm Invoking an Stateless Session Bean From a JSE app. This Session Bean Injects the container's Entity Manager to Retrieve the DB Record as an Entity.
A Business method on the Session Bean delivers the Entity to the Client.
If I restart my App-Server (GlassFish), And Invoke my Session Bean Again, Then the changes ARE reflected to the Entity.
I don't understand How can I avoid this Issue. Could You guys please help me? I need that the changes made directly to the DB to be reflected to the Entities (Without having to re-start the Server).
That'd be it, that's my latest issue.
I hope somebody can give me a little guidance ,
posted 8 years ago
I figured this one out myself already,
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads