Java Mailing List Archive

http://www.gg3721.com/

Home » users.openjpa »

Re: Problems with configuring OpenJPA "Slices"

Pinaki Poddar

2008-08-22

Replies: Find Java Web Hosting

Author LoginPost Reply

Hi,
> 1) if i don't put this property "openjpa.ConnectionURL" it doesn't work, i
> think that is not necessary if i > configure slices, am i correct?
Yes. If each slice connection properties are specified independently then
you do not need openjpa.Connection* properties. They act as defaults for
slices that do not have their connection property set. For example, if you
have 5 slices running with same JDBC driver, you can just specify
openjpa.ConnectionDriverName instead of specifying it for each slices.
 What error do you see if you do not specify openjpa.ConnectionURL in this
case?

> 2) I put the property "<property name="openjpa.slice.Names"
> value="SQLSERVER,MYSQL"/>" but i catch > this error

The error seems to suggest that slice URLs are configured properly, but
OpenJPA failed to get a connection to the data source -- a possibility is
wrong user/password credential. Will you please double check those details?

--
Sent from the OpenJPA Users mailing list archive at Nabble.com.

©2008 gg3721.com - Jax Systems, LLC, U.S.A.