Hi Rudi, Depending on your environment configuration, either use a <non-jta-data-source> or the openjpa.Connection2* set of properties to define your unmanaged datasource. This is documented in this area of the documentation [1]. The reference is for 2.0.1, but you can find similar documentation for 1.0.4.
Kevin [1] http://openjpa.apache.org/builds/2.0.1/apache-openjpa-2.0.1/docs/manual/manual.html#ref_guide_dbsetup_thirdparty_enlist On Thu, Sep 30, 2010 at 6:36 AM, RudiWelter <[email protected]> wrote: > > I already discovered that I should use an unmanaged datasource for things > like database sequence handling. Because we use Spring, where the > datasource > is set in spring configuration files, how can I use an unmanaged datasource > in persistence.xml refering to the Spring one ? > > if possible, please give an example. > > Rudi Welter > -- > View this message in context: > http://openjpa.208410.n2.nabble.com/openjpa-1-0-4-primary-key-not-created-tp5587124p5587420.html > Sent from the OpenJPA Users mailing list archive at Nabble.com. >
