Avatar

Level 2

Hi everybody

We just built a component that uses JPA for data access. We use the javax.persistence library. The JPA configuration file (persistence.xml) and the generated entity classes are packed within the jar-file of the component. Unfortunately the LiveCyle environment does not seem to recognize the mentioned files within the jar file. To get it running we had to deploy a web project (war-file) that only includes the mentioned files. With this work-around LiveCycle knows the the files and we can establish a connection to the Oracle database successfully.

My question is, if there is a better way to get a component that uses JPA connected with the database? For me it would be much better if I only would have to deploy the component jar.

Any comments are welcome

Best wishes, Richard