Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » Multitenancy and Entity Manager(Multitenancy)
Multitenancy and Entity Manager [message #1076273] Wed, 31 July 2013 04:34
Deepthi Umakanth is currently offline Deepthi UmakanthFriend
Messages: 2
Registered: July 2013
Junior Member
We are using JPA with eclipse link. We have extensive JPA queries. Our
code is in production for a while. Now we have a business use case, to
support multitenancy.

We will be using the Oracle Pluggable Database mechanism where each
client will have their database.

In our code, in order to create an EntityManager, we have defined a
Singleton Class.

In places where we do any JPA queries, we fetch the EntityManager object
from this Singleton Class and store the instance of EntityManager as a
static variable and reuse in our code.

In multitenant use case, will the EntityManager instance be specific to
the database of each of the client?

My doubt is do we need to change our model of preparing the
EntityManager and instantiate the EntityManager at class level or the
current model works without any issues?
Previous Topic:Setting up a DTP Connection Profile with Private SSH key
Next Topic:DELIMITER not being recognised for MySQL Query
Goto Forum:
  


Current Time: Fri Apr 19 04:15:52 GMT 2024

Powered by FUDForum. Page generated in 0.01775 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top