Re: [DISCUSS] deltaspike-jpa module features

2012-05-19 Thread Gerhard Petracek
hi @ all, i've committed [1] a refactored version of @Transactional as well as @TransactionScoped (for @Transactional). i'll add some details to the documentation soon (we can't copy it, because the new behaviour is a bit different (easier)). furthermore, i've committed several tests (which

Re: [DISCUSS] deltaspike-jpa module features

2012-05-08 Thread Pete Muir
Following up on all emails sent so far on this thread: * I like Mark's priorities - @Transactional is definitely the item most requested * I like the design of plugging in different persistence strategies * Agreed that the standardised stuff for configuring datasources is a mess, we don't

Re: [DISCUSS] deltaspike-jpa module features

2012-05-08 Thread Cody Lerum
+1 for deferring the CRUD work until a later release. Let's get the basics right and out in the wild first. On Tue, May 8, 2012 at 5:58 AM, Pete Muir pm...@redhat.com wrote: Following up on all emails sent so far on this thread: * I like Mark's priorities - @Transactional is definitely the

AW: AW: AW: AW: AW: AW: AW: AW: [DISCUSS] deltaspike-jpa module features

2012-05-07 Thread Arne Limburg
...@yahoo.de] Gesendet: Montag, 7. Mai 2012 00:04 An: deltaspike-dev@incubator.apache.org Betreff: Re: AW: AW: AW: AW: AW: AW: AW: [DISCUSS] deltaspike-jpa module features Thought about such a thing as well. The problem here is: how do you tell the persistence.xml about our Qualifiers? In fact the whole JPA

Re: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Romain Manni-Bucau
: Sent: Saturday, May 5, 2012 11:29 PM Subject: Re: [DISCUSS] deltaspike-jpa module features With my note on datasourcedefinition i wanted to avoid to add sthg new. I'd prefer to fix existing API/specs. Adding sthg new simply creates another mess...no? - Romain Le 5 mai 2012 22:39

AW: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Arne Limburg
: [DISCUSS] deltaspike-jpa module features @Mark: today using your own datasource implementation with @datasourcedefinition you answer your need. The drawback compared to producers is you need to test the env where producers will have stereotypes but it does the job even for complicated envrt. - Romain

Re: AW: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Mark Struberg
...@openknowledge.de To: deltaspike-dev@incubator.apache.org deltaspike-dev@incubator.apache.org Cc: Sent: Sunday, May 6, 2012 11:17 AM Subject: AW: [DISCUSS] deltaspike-jpa module features Hi, I think we have different dimensions here: 1. Who manages the transaction: JTA vs. RESOURCE_LOCAL

Re: AW: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Romain Manni-Bucau
] Gesendet: Sonntag, 6. Mai 2012 08:09 An: deltaspike-dev@incubator.apache.org Betreff: Re: [DISCUSS] deltaspike-jpa module features @Mark: today using your own datasource implementation with @datasourcedefinition you answer your need. The drawback compared to producers is you need

Re: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread David Blevins
On May 6, 2012, at 2:37 AM, Mark Struberg wrote: In plain Tomcat or Jetty servers this needs to be configured in a container-specific way. The problem with the container specific stuff is that every container serves the xml configured datasource on a different location in JNDI! So you

Re: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Mark Struberg
Struberg strub...@yahoo.de Cc: Sent: Sunday, May 6, 2012 1:25 PM Subject: Re: [DISCUSS] deltaspike-jpa module features On May 6, 2012, at 2:37 AM, Mark Struberg wrote: In plain Tomcat or Jetty servers this needs to be configured in a container-specific way. The problem

Re: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Romain Manni-Bucau
Message - From: David Blevins david.blev...@gmail.com To: deltaspike-dev@incubator.apache.org; Mark Struberg strub...@yahoo.de Cc: Sent: Sunday, May 6, 2012 1:25 PM Subject: Re: [DISCUSS] deltaspike-jpa module features On May 6, 2012, at 2:37 AM, Mark Struberg wrote: In plain

Re: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Mark Struberg
yes, that crashes the container... From: Romain Manni-Bucau rmannibu...@gmail.com To: Mark Struberg strub...@yahoo.de; deltaspike-dev@incubator.apache.org Sent: Sunday, May 6, 2012 1:52 PM Subject: Re: [DISCUSS] deltaspike-jpa module features Mark, did

Re: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Mark Struberg
... From: Romain Manni-Bucau rmannibu...@gmail.com To: Mark Struberg strub...@yahoo.de; deltaspike-dev@incubator.apache.org Sent: Sunday, May 6, 2012 1:52 PM Subject: Re: [DISCUSS] deltaspike-jpa module features Mark, did you try providing a name starting with java:? - Romain Le 6 mai

Re: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Mark Struberg
Subject: Re: [DISCUSS] deltaspike-jpa module features No, the container is NOT buggy, because it's simply NOT defined! That's the whole mess about JNDI... LieGrue, strub From: Romain Manni-Bucau rmannibu...@gmail.com To: Mark Struberg strub...@yahoo.de Sent

Re: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Romain Manni-Bucau
From: Mark Struberg strub...@yahoo.de To: Romain Manni-Bucau rmannibu...@gmail.com; deltaspike deltaspike-dev@incubator.apache.org Sent: Sunday, May 6, 2012 2:14 PM Subject: Re: [DISCUSS] deltaspike-jpa module features No, the container is NOT buggy, because it's simply NOT defined

Re: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Mark Struberg
, May 6, 2012 2:37 PM Subject: Re: [DISCUSS] deltaspike-jpa module features I understand. On another side how many differeny locations are there? Isnt it manageable? - Romain Le 6 mai 2012 14:29, Mark Struberg strub...@yahoo.de a écrit : PS: I _fully_ agree that this mess should best get

Re: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Romain Manni-Bucau
...@yahoo.de; deltaspike-dev@incubator.apache.org Sent: Sunday, May 6, 2012 2:37 PM Subject: Re: [DISCUSS] deltaspike-jpa module features I understand. On another side how many differeny locations are there? Isnt it manageable? - Romain Le 6 mai 2012 14:29, Mark Struberg strub...@yahoo.de

AW: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Arne Limburg
Struberg strub...@yahoo.de; deltaspike-dev@incubator.apache.org Sent: Sunday, May 6, 2012 2:37 PM Subject: Re: [DISCUSS] deltaspike-jpa module features I understand. On another side how many differeny locations are there? Isnt it manageable? - Romain Le 6 mai 2012 14:29, Mark Struberg strub

Re: AW: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Romain Manni-Bucau
-Ursprüngliche Nachricht- Von: Romain Manni-Bucau [mailto:rmannibu...@gmail.com] Gesendet: Sonntag, 6. Mai 2012 14:49 An: Mark Struberg; deltaspike-dev@incubator.apache.org Betreff: Re: [DISCUSS] deltaspike-jpa module features ConfigurableDataSource doesnt solve it. If you build the emf from

AW: AW: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Arne Limburg
An: deltaspike-dev@incubator.apache.org Betreff: Re: AW: [DISCUSS] deltaspike-jpa module features How do you manage it from persistence.xml if you dont repackage your archive as Mark said? Personally i agree ;) - Romain Le 6 mai 2012 15:06, Arne Limburg arne.limb...@openknowledge.de a écrit : OK

Re: AW: AW: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Romain Manni-Bucau
[mailto:rmannibu...@gmail.com] Gesendet: Sonntag, 6. Mai 2012 15:14 An: deltaspike-dev@incubator.apache.org Betreff: Re: AW: [DISCUSS] deltaspike-jpa module features How do you manage it from persistence.xml if you dont repackage your archive as Mark said? Personally i agree ;) - Romain Le 6 mai 2012

AW: AW: AW: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Arne Limburg
Manni-Bucau [mailto:rmannibu...@gmail.com] Gesendet: Sonntag, 6. Mai 2012 15:14 An: deltaspike-dev@incubator.apache.org Betreff: Re: AW: [DISCUSS] deltaspike-jpa module features How do you manage it from persistence.xml if you dont repackage your archive as Mark said? Personally i agree

Re: AW: AW: AW: AW: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Romain Manni-Bucau
: AW: AW: AW: [DISCUSS] deltaspike-jpa module features Cdi is in jee so jee containers scans cdi beans and same for resources (@persistencontext). Le 6 mai 2012 15:36, Arne Limburg arne.limb...@openknowledge.de a écrit : If not, we can use other annotations, but I think jee containers just

AW: AW: AW: AW: AW: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Arne Limburg
@incubator.apache.org Betreff: Re: AW: AW: AW: [DISCUSS] deltaspike-jpa module features Cdi is in jee so jee containers scans cdi beans and same for resources (@persistencontext). Le 6 mai 2012 15:36, Arne Limburg arne.limb...@openknowledge.de a écrit : If not, we can use other annotations, but I think

Re: AW: AW: AW: AW: AW: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Romain Manni-Bucau
...@gmail.com] Gesendet: Sonntag, 6. Mai 2012 15:49 An: deltaspike-dev@incubator.apache.org Betreff: Re: AW: AW: AW: AW: [DISCUSS] deltaspike-jpa module features The container will scan persistencecontext annotation with no link with cdi. Le 6 mai 2012 15:46, Arne Limburg arne.limb

AW: AW: AW: AW: AW: AW: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Arne Limburg
An: deltaspike-dev@incubator.apache.org Betreff: Re: AW: AW: AW: AW: AW: [DISCUSS] deltaspike-jpa module features It tomee we create the entitymanagerfactory associated. Le 6 mai 2012 15:53, Arne Limburg arne.limb...@openknowledge.de a écrit : OK and the meaning of this annotation at class-level would

Re: AW: AW: AW: AW: AW: AW: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Romain Manni-Bucau
- Von: Romain Manni-Bucau [mailto:rmannibu...@gmail.com] Gesendet: Sonntag, 6. Mai 2012 16:00 An: deltaspike-dev@incubator.apache.org Betreff: Re: AW: AW: AW: AW: AW: [DISCUSS] deltaspike-jpa module features It tomee we create the entitymanagerfactory associated. Le 6 mai 2012 15:53, Arne

AW: AW: AW: AW: AW: AW: AW: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Arne Limburg
: AW: AW: AW: AW: AW: [DISCUSS] deltaspike-jpa module features Yep but an em needs an emf ;) Le 6 mai 2012 16:05, Arne Limburg arne.limb...@openknowledge.de a écrit : OK, I think, this is not correct since it expresses a dependency to an EntityManager and not to an EntityManagerFactory

Re: AW: AW: AW: AW: AW: AW: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Romain Manni-Bucau
:00 An: deltaspike-dev@incubator.apache.org Betreff: Re: AW: AW: AW: AW: AW: [DISCUSS] deltaspike-jpa module features It tomee we create the entitymanagerfactory associated. Le 6 mai 2012 15:53, Arne Limburg arne.limb...@openknowledge.de a écrit : OK and the meaning of this annotation

Re: AW: AW: AW: AW: AW: AW: AW: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Romain Manni-Bucau
with this properties... - Arne -Ursprüngliche Nachricht- Von: Romain Manni-Bucau [mailto:rmannibu...@gmail.com] Gesendet: Sonntag, 6. Mai 2012 16:10 An: deltaspike-dev@incubator.apache.org Betreff: Re: AW: AW: AW: AW: AW: AW: [DISCUSS] deltaspike-jpa module features Yep but an em

Re: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread David Blevins
On May 6, 2012, at 1:32 PM, David Blevins wrote: I recall your app and I'd guess the heart of your distaste is that you essentially configure two datasources and then pick one at runtime. In static code, this is possible (there is equivalent xml): @DataSourceDefinition(name =

Re: AW: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Mark Struberg
@incubator.apache.org; Mark Struberg strub...@yahoo.de Cc: Sent: Sunday, May 6, 2012 3:07 PM Subject: AW: [DISCUSS] deltaspike-jpa module features OK, but do we really need a container-independent way for JNDI-DataSources? What's the use case for it? The user always knows his container and thus his

Re: AW: AW: AW: AW: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Mark Struberg
assume. LieGrue, strub - Original Message - From: Arne Limburg arne.limb...@openknowledge.de To: deltaspike-dev@incubator.apache.org deltaspike-dev@incubator.apache.org Cc: Sent: Sunday, May 6, 2012 3:48 PM Subject: AW: AW: AW: AW: [DISCUSS] deltaspike-jpa module features

Re: AW: AW: AW: AW: AW: AW: AW: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Mark Struberg
@incubator.apache.org deltaspike-dev@incubator.apache.org Cc: Sent: Sunday, May 6, 2012 4:19 PM Subject: AW: AW: AW: AW: AW: AW: AW: [DISCUSS] deltaspike-jpa module features Never mind ;-) Maybe it is better to provide qualifiers for all the JPA properties? Like this: public class

Re: AW: AW: AW: AW: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Romain Manni-Bucau
@incubator.apache.org deltaspike-dev@incubator.apache.org Cc: Sent: Sunday, May 6, 2012 3:48 PM Subject: AW: AW: AW: AW: [DISCUSS] deltaspike-jpa module features If so, what would be the semantic of such definition? Btw. that classes would only become CDI beans when the deployment is in the correct

Re: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread David Blevins
...@openknowledge.de To: deltaspike-dev@incubator.apache.org deltaspike-dev@incubator.apache.org; Mark Struberg strub...@yahoo.de Cc: Sent: Sunday, May 6, 2012 3:07 PM Subject: AW: [DISCUSS] deltaspike-jpa module features OK, but do we really need a container-independent way for JNDI

Re: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Romain Manni-Bucau
@incubator.apache.org deltaspike-dev@incubator.apache.org; Mark Struberg strub...@yahoo.de Cc: Sent: Sunday, May 6, 2012 3:07 PM Subject: AW: [DISCUSS] deltaspike-jpa module features OK, but do we really need a container-independent way for JNDI-DataSources? What's the use case

Re: [DISCUSS] deltaspike-jpa module features

2012-05-06 Thread Romain Manni-Bucau
To: deltaspike-dev@incubator.apache.org Cc: Sent: Monday, May 7, 2012 12:10 AM Subject: Re: [DISCUSS] deltaspike-jpa module features t he issue is at spec level, IMO DS shouldnt be a container too much otherwise it will replace the specs so if you have such an issue update the spec to make

Re: [DISCUSS] deltaspike-jpa module features

2012-05-05 Thread Romain Manni-Bucau
! How would such a scenario work using the @DataSourceConfig? LieGrue, strub - Original Message - From: Romain Manni-Bucau rmannibu...@gmail.com To: deltaspike-dev@incubator.apache.org Cc: Sent: Saturday, May 5, 2012 12:55 AM Subject: Re: [DISCUSS] deltaspike-jpa module

Re: [DISCUSS] deltaspike-jpa module features

2012-05-05 Thread Paul Dijou
Hi, Big +1 for all suggestions from Mark. Also +1 for some util classes for common operations like CRUD and pagination. Maybe inspiration from Seam Application Framework (Home, Query, Controller) in Seam 2 [1] or from DataValve [2]. Regards, Paul. [1]

Re: [DISCUSS] deltaspike-jpa module features

2012-05-05 Thread Romain Manni-Bucau
With my note on datasourcedefinition i wanted to avoid to add sthg new. I'd prefer to fix existing API/specs. Adding sthg new simply creates another mess...no? - Romain Le 5 mai 2012 22:39, Paul Dijou paul.dijou@gmail.com a écrit : Hi, Big +1 for all suggestions from Mark. Also +1 for

Re: [DISCUSS] deltaspike-jpa module features

2012-05-05 Thread Jason Porter
Subject: Re: [DISCUSS] deltaspike-jpa module features With my note on datasourcedefinition i wanted to avoid to add sthg new. I'd prefer to fix existing API/specs. Adding sthg new simply creates another mess...no? - Romain Le 5 mai 2012 22:39, Paul Dijou paul.dijou@gmail.com a écrit

[DISCUSS] deltaspike-jpa module features

2012-05-04 Thread Mark Struberg
Hi! It's time to start the discussion about our deltaspike-jpa module I think ;) a.) where  I suggest that we create a ee-modules project with submodules jsf, jpa, etc   b.) what  *) @Transactional  *) TransactionalInterceptor with SimplePersistenceStrategy, JtaPersistenceStrategy  *)

Re: [DISCUSS] deltaspike-jpa module features

2012-05-04 Thread Gerhard Petracek
hi @ all, @ a) +1 @ b) +1 for the basic concepts, however, @Transactional and @TransactionScoped need to be refactored (i'm currently working on it). furthermore, we should discuss a thin query layer which supports e.g. pagination,... easily (we also need it for a security-jpa module).

Re: [DISCUSS] deltaspike-jpa module features

2012-05-04 Thread Romain Manni-Bucau
Hi, isn't the ConfigurableDataSource in JEE6? (datasourceconfiguration by annotation or in the web.xml)? a really really big +1 for a pagination solution (typically a hades light is a must have!) - Romain 2012/5/4 Gerhard Petracek gerhard.petra...@gmail.com hi @ all, @ a) +1 @ b) +1