Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Connection pooling and jpoxdatastore
Connection pooling and jpoxdatastore [message #99979] Mon, 22 October 2007 14:39 Go to next message
Julia is currently offline JuliaFriend
Messages: 85
Registered: July 2009
Member
Hi Martin,

I am trying to setup my app to use connection pooling on my websphere app
server. I followed the sample in JPox documentation and that seem to work.
However don't I still need to initialize jpoxdatastore?

The JPox sample seems to imply that I create my own PMF based on my
datasource

properties.setProperty("javax.jdo.PersistenceManagerFactoryClass ","org.jpox.PersistenceManagerFactoryImpl");
properties.setProperty("javax.jdo.option.ConnectionFactory",mydatasource);

PersistenceManagerFactory pmf =
JDOHelper.getPersistenceManagerFactory(properties);

Would I need to override the PMF create in jpoxdatastore with this one? Or
is there something simple I'm missing?

Julia
Re: Connection pooling and jpoxdatastore [message #99993 is a reply to message #99979] Mon, 22 October 2007 14:49 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Julia,
Instead of the JDOHelper you should use the JpoxDataStore as you have done before and before
initializing the JpoxDatastore pass the javax.jdo.option.ConnectionFactory option as a property in
JpoxDataStore.setProperties(..).

gr. Martin

Julia wrote:
> Hi Martin,
>
> I am trying to setup my app to use connection pooling on my websphere
> app server. I followed the sample in JPox documentation and that seem to
> work. However don't I still need to initialize jpoxdatastore?
> The JPox sample seems to imply that I create my own PMF based on my
> datasource
>
> properties.setProperty("javax.jdo.PersistenceManagerFactoryClass ","org.jpox.PersistenceManagerFactoryImpl");
>
> properties.setProperty("javax.jdo.option.ConnectionFactory",mydatasource);
>
> PersistenceManagerFactory pmf =
> JDOHelper.getPersistenceManagerFactory(properties);
>
> Would I need to override the PMF create in jpoxdatastore with this one?
> Or is there something simple I'm missing?
>
> Julia
>
Hi

--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Connection pooling and jpoxdatastore [message #610117 is a reply to message #99979] Mon, 22 October 2007 14:49 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Julia,
Instead of the JDOHelper you should use the JpoxDataStore as you have done before and before
initializing the JpoxDatastore pass the javax.jdo.option.ConnectionFactory option as a property in
JpoxDataStore.setProperties(..).

gr. Martin

Julia wrote:
> Hi Martin,
>
> I am trying to setup my app to use connection pooling on my websphere
> app server. I followed the sample in JPox documentation and that seem to
> work. However don't I still need to initialize jpoxdatastore?
> The JPox sample seems to imply that I create my own PMF based on my
> datasource
>
> properties.setProperty("javax.jdo.PersistenceManagerFactoryClass ","org.jpox.PersistenceManagerFactoryImpl");
>
> properties.setProperty("javax.jdo.option.ConnectionFactory",mydatasource);
>
> PersistenceManagerFactory pmf =
> JDOHelper.getPersistenceManagerFactory(properties);
>
> Would I need to override the PMF create in jpoxdatastore with this one?
> Or is there something simple I'm missing?
>
> Julia
>
Hi

--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Previous Topic:Connection pooling and jpoxdatastore
Next Topic:[Teneo] Working with multiple hbm files
Goto Forum:
  


Current Time: Tue Apr 23 02:04:51 GMT 2024

Powered by FUDForum. Page generated in 0.04123 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top