Skip navigation
Richard Wegier
Currently Being Moderated

Component with JPA

Aug 19, 2010 1:53 AM

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

 
Replies
  • Currently Being Moderated
    Jan 19, 2011 6:16 AM   in reply to Richard Wegier

    Hi Richard,

    Unfortunately I have no answer to your question, I rather have a few questions for you actually:

    - Did you eventually manage to use JPA satisfactorily, ie. without having to create a separate war file? If so, how?

    - Do you connect to the LiveCycle database, or to another one? I you connect to the LiveCycle database, would it be possible for you to post your persistence.xml file?

     

    Kind regards,

    Guillaume Pothier

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points