Re: ConcurrentModificationException

2009-04-22 Thread David Leangen
Thank you. The classes are enhanced at build time. Regards, =David On Wed, 2009-04-22 at 16:53 -0700, Pinaki Poddar wrote: > Hi, > Is this use case enhanced the entity classes at build-time or using > runtime enhancement? If it is not using build-time enhanement, is there a > any change o

Nabble JIRA Integration

2009-04-22 Thread Pinaki Poddar
Hi, I am looking for a magical button "Create a JIRA Issue" -- that appears on a Nabble post and when clicked creates a JIRA issue in OpenJPA with relevant context information. Anyone knows where I can find such a button -- or something similar? Pinaki - Pinaki Poddar

Re: ConcurrentModificationException

2009-04-22 Thread Pinaki Poddar
Hi, Is this use case enhanced the entity classes at build-time or using runtime enhancement? If it is not using build-time enhanement, is there a any change of behavior if the entity classes are enhanced at build-time? Anyway, logged the error [1]. Thanks. [1] https://issues.apache.org/jira

Re: UniqueConstraint in a MappedSuperclass not working

2009-04-22 Thread Pinaki Poddar
Hi, > If there are two separate subclasses of the Attribute class I get > Constraint 'UNQ_ATTR_NAMEOWNER' > already exists in Schema 'SERVICETEST' Is this possible for you to try this use case with trunk version of OpenJPA? Anyway, the use case is logged as bug [1]. Thanks. [1] https://iss

Re: OpenJpa, and DB2 shared lock

2009-04-22 Thread Chandra Sarath
Thanks Pinaki! We are planning to turn on trace on development server tomorrow and see the results. we will check out the JDBCListeners if we don't get much info.. Chandra Pinaki Poddar wrote: > > Hi, > Slightly off the main line: > >> Turning trace on is our next step if we do not have

Re: UniqueConstraint in a MappedSuperclass not working

2009-04-22 Thread depstei2
This works, but only if I have one subclass. If there are two separate subclasses of the Attribute class I get Constraint 'UNQ_ATTR_NAMEOWNER' already exists in Schema 'SERVICETEST' It seems like openJpa is not naming these constraints uniquely, is there any way to do this? Hi , May be you a

Re: OpenJpa, and DB2 shared lock

2009-04-22 Thread Kevin Sutter
Hi Chandra, On Wed, Apr 22, 2009 at 1:31 PM, Chandra Sarath wrote: > > Hi Kevin, > > Thank you! I'm answering the questions here.. > > 1. So Maven gets the 1.2.0 version and bundle all referenced jars in War > file and when we deploy we select to load classes in Application first than > Websph

Re: High Availability

2009-04-22 Thread Pinaki Poddar
Hi, Currently Slice does not support failover. But it is on our road map. You can add new slices dynamically [1] or specify 'lenient' [2] to ignore slices that are configured but not currently reachable. > good high availability framework that works best with OpenJPA? For MySQL, OpenJPA nativ

Re: OpenJpa, and DB2 shared lock

2009-04-22 Thread Chandra Sarath
Hi Kevin, Thank you! I'm answering the questions here.. 1. So Maven gets the 1.2.0 version and bundle all referenced jars in War file and when we deploy we select to load classes in Application first than Websphere6.1 classes that way it will use JPA1.2.0. only. I heard from my lead that we i

Re: OpenJpa, and DB2 shared lock

2009-04-22 Thread Pinaki Poddar
Hi, Slightly off the main line: > Turning trace on is our next step if we do not have much info.We don't > have a local Websphere > installed. Our development servers are used by multiple systems. An application can sniff/record the SQL statements OpenJPA is issuing (see JDBCListeners) --

Re: OpenJpa, and DB2 shared lock

2009-04-22 Thread Kevin Sutter
Hi Chandra, The Trace will probably help with the diagnosis. I also have a few comments inline below... Thanks, Kevin On Wed, Apr 22, 2009 at 11:14 AM, Chandra Sarath wrote: > > Hi Kevin, > > Thank you very much Kevin for your reply. Here are the answers (in Italic > bold) to your questions..

Re: Problems in setting up the work enviroment.

2009-04-22 Thread Paul Copeland
Hi Ashish - "java hellojpa.Main" will not work. To run the test you need all the jars in the OpenJPA.1.2.1 lib directory and the openjpa-1.2.1.jar. Ant build.xml puts all of them in the classpath for you. - Paul On 4/22/2009 8:09 AM, Michael Dick wrote: Hi Ashish, Javax.persistence.Pers

Re: OpenJpa, and DB2 shared lock

2009-04-22 Thread Chandra Sarath
Hi Kevin, Thank you very much Kevin for your reply. Here are the answers (in Italic bold) to your questions.. Chandra Kevin Sutter wrote: > > Hi Chandra, > I don't have an answer for you yet, just more questions at this point... > :-) > > o What version of OpenJPA are you running with? >

Re: Problems in setting up the work enviroment.

2009-04-22 Thread Michael Dick
Hi Ashish, Javax.persistence.Persistence isn't part of the OpenJPA source tree, instead we get the class from Geronimo. An implementation of Persistence.java is included in the binary distribution of OpenJPA in the lib directory. For trunk it's contained in apache-openjpa-2.0.0-SNAPSHOT/lib/geron

Re: OpenJpa, and DB2 shared lock

2009-04-22 Thread Kevin Sutter
Hi Chandra, I don't have an answer for you yet, just more questions at this point... :-) o What version of OpenJPA are you running with? o When you mention WAS v6.1, is this with or without the EJB3 Feature Pack? o The update scenario... I'm assuming you are doing a find() operation on an ex

OpenJpa, and DB2 shared lock

2009-04-22 Thread Chandra Sarath
Hi, We use OpenJpa, DB2 and Websphere 6.1. We have created a Datasource in Websphere console that connects DB2 using a non-xa driver. We were testing our application about how it rolls back the data when there is a shared lock in a table. we have following scenarios. We have also set a Timeout o

High Availability

2009-04-22 Thread Teody
Hi, I have a question regarding Slice. If I configure an application to replicate the persistence on multiple DBs using Slice, can a DB recover or update itself if there was a transaction during some time that it was down? If yes, is there a document that explains how to configure this? If no, ca

Re: Problems in setting up the work enviroment.

2009-04-22 Thread ashish paliwal
Hi, Oks I got it. Ant is already running my program. It was specified in build.xml. But still from where it is finding Persistence.java. It is not in my Java distribution. So, is it included in the jars of Openjpa ? thanks On Wed, Apr 22, 2009 at 12:40 PM, rpalache wrote: > > Hi Ashish, > > The

Re: Problems in setting up the work enviroment.

2009-04-22 Thread rpalache
Hi Ashish, The first thing I will check is your classpath. Looks like you are trying to run "java hellojpa.Main " but this is already part of "ant" that you run and the output from ant command "run: [java] 4782 hellojpa TRACE [main] openjpa.jdbc.SQL - executing prepstmnt 26426059 INSER