How to Enable Multi-Tenant Using EclipseLink

Asked 1 years ago, Updated 1 years ago, 90 views

Wildfly10 uses EclipseLink.
I'd like to separate the DBs for each tenant who uses the application.
(The purpose is load balancing.Data protection uses DB line-level security.)

When I looked it up, I found an article saying this correctly.

https://developers.redhat.com/blog/2020/06/15/jakarta-ee-multitenancy-with-jpa-on-wildfly-part-1#implementation_code

By implementing the MultiTenantConnectionProvider interface, I can control the Connection instance myself, which is the perfect solution for me.
However, this was an article using Hibernate.

Does EclipseLink have the same functionality?

java java-ee jboss

2022-09-30 19:41

1 Answers

Why don't you want Wildfly to separate the management categories?
Normally, separating tenants should also separate management of the number of sessions and DB connection pool, so it would be more natural to separate management divisions within the EJB server, not the layer of DB connections.

I would like you to tell me as a simple question why it is only separated by the DB connection layer.
I'm sorry, but I don't have a direct answer.

That's it


2022-09-30 19:41

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.