Search code examples
soawso2wso2-data-services-server

wso2 custom carbon components persistence - jpa or wso2 data services


I'm looking to create a custom carbon component and there are a few choices for persistence. The main options appear to be JPA, or WSO2 data services.

  1. What is the strengths and weaknesses of both options?
  2. Are there other recommended approaches?

Solution

  • The preferred way to access data in an SOA would be to use services. Basically, if you use JPA, your data access logic will be limited to the use of that specific component. If you use a solution like data services, then those services will be accessible globally, and thus enforce re-usability and a more consistent architecture.