Use JPA to store business data


Hi all,

I plan to use (read/write) some business data stored in an external database from a Bonita process. I'd like to use an ORM (such as Hibernate) and annotate my entities with JPA annotations.

I wonder if anybody had already tried to embed some entites in a process ? Should I expect some dependencies conflicts (Hibernate is already embedded in Bonita) ?

A better practice might be to handle my data access in a separate web application and accessing it with a hand-made REST API ?

Any idea ?

Best regards


1 answer


Hello nicolas.dupont_1

Yes, Bonita embeds Hibernate (see the lib folder of bonita.war). A good idea can be develop a module to do all the operations and use a connector to call this module. Just take care to not use different lib's versions in order to avoid conflicts.