[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.rt.eclipselink] Re: Eclipselink without connection pool
|
- From: Thomas Haskes <t.haskes@xxxxxxx>
- Date: Wed, 29 Jul 2009 13:43:20 +0200
- Newsgroups: eclipse.rt.eclipselink
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.22 (Windows/20090605)
Thank you, but unfortunately this doesn't work for me either, when I do
this, I get a "No suitable Driver found" error. I'm using el in an OSGI
environment and have set the PERSISTENCEUNITPROPERTIES.CLASSLOADER
property. Without setting the user name in the emProperties (means using
the standard user which is defined on the factoryproperties) it works.
Any idea whay that happens?
As there is no property for setting the classloader at the
entitymanager, I really don't have a clue why this is happening.
James schrieb:
> You can do this using the
> "eclipselink.jdbc.exclusive-connection.mode"="Always" persistence unit
> property, and pass the user/password properties to the
> EntityManagerFactory.createEntityManager() call.
>
> You will probably also want to set your connection pool size to 1 or 0.
> If you have some shared data accessible with a common user, you can set
> the exclusive mode to "Isolated" and only mark the non-shared objects as
> isolated (shared=false).
>
> See,
> http://www.eclipse.org/eclipselink/api/1.1.1/org/eclipse/persistence/config/PersistenceUnitProperties.html#EXCLUSIVE_CONNECTION_MODE
>
>
> ---
> James
>