You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I started to work on a web application using PF4J and Spring Boot.
I use pf4j-spring library.
I encounter some problem in context of JPA (Hibernate). My issue is described in #65 (comment).
I tried to investigate a little bit the issue and I saw that it is not easy to find a solution (add JPA support in app + plugins). @hank-cp did a good job in https://github.com/hank-cp/sbp. He summarizes the possible solutions in https://github.com/hank-cp/sbp/blob/master/docs/persistence.md but his conclusion on this subject is somehow clear:
I spent so many time trying to manage hibernate entity graph, and gave it up finally. HIbernate is totally deaign for monolithic architecture, and never consider any runtime/dynamic support, as well as in future I guess.
For more context see hank-cp/sbp#11 (comment).
After I spending a few hours investigated the issue, I'm inclined to agree with him.
It's for the first time when I try to use pf4j in a Spring Boot web application.
Until now I have used another stack but I said to convert the application that I am going to publish as open source into a Spring Boot application so that I can somehow be aligned with the main stream.
Now my question to the community is: has anyone managed to create a scalable application using PF4J and Spring (MVC, Boot, ..)? What persistence layer does it use (ideally JPA, eventually with other implementations besides Hibernate - Eclipse Link for example)?
What means scalable is small core (entities, repositories, controllers, ..) and plugins (new entities, repositories, controllers, ..).
The text was updated successfully, but these errors were encountered:
In our commercial project, which is based on sbp, we use jooq + sfm as persistence midware. mybatis is also a fine option. Jpa/Hibernate is NOT on my table from the very beginning:)
Recently I started to work on a web application using PF4J and Spring Boot.
I use pf4j-spring library.
I encounter some problem in context of JPA (Hibernate). My issue is described in #65 (comment).
I tried to investigate a little bit the issue and I saw that it is not easy to find a solution (add JPA support in app + plugins).
@hank-cp did a good job in https://github.com/hank-cp/sbp. He summarizes the possible solutions in https://github.com/hank-cp/sbp/blob/master/docs/persistence.md but his conclusion on this subject is somehow clear:
For more context see hank-cp/sbp#11 (comment).
After I spending a few hours investigated the issue, I'm inclined to agree with him.
It's for the first time when I try to use pf4j in a Spring Boot web application.
Until now I have used another stack but I said to convert the application that I am going to publish as open source into a Spring Boot application so that I can somehow be aligned with the main stream.
Now my question to the community is: has anyone managed to create a scalable application using PF4J and Spring (MVC, Boot, ..)? What persistence layer does it use (ideally JPA, eventually with other implementations besides Hibernate - Eclipse Link for example)?
What means scalable is small core (entities, repositories, controllers, ..) and plugins (new entities, repositories, controllers, ..).
The text was updated successfully, but these errors were encountered: