Re: [VOTE] Release Apache DeltaSpike-0.4

2013-05-28 Thread John D. Ament
+1 binding
Tests seem to be passing.

Though it's a little odd that you're pointing to a tag in your github
rather than on the apache git repo.


On Tue, May 28, 2013 at 9:40 AM, Mark Struberg strub...@yahoo.de wrote:

 Hi!

 I'd like to call a VOTE for the release of DeltasSpike-0.4.

 The staging repo is:
 https://repository.apache.org/content/repositories/orgapachedeltaspike-011/

 The tag is available here:

 https://github.com/struberg/incubator-deltaspike/tree/deltaspike-project-0.4
 This will get pushed to the ASF repo once the VOTE succeeded.

 The source release is available here:

 https://repository.apache.org/content/repositories/orgapachedeltaspike-011/org/apache/deltaspike/deltaspike-project/0.4/deltaspike-project-0.4-source-release.zip
 sha1: 261897829b42f003ad43a157c607ed931686c482


 Guide to testing:
 Add the following to your ~/.m2/settings.xml:

 profile
   idstaging/id
   repositories
 repository
   idapache_staging/id
   url
 https://repository.apache.org/content/repositories/orgapachedeltaspike-011/
 /url
   releasesenabledtrue/enabled/releases
   snapshotsenabledfalse/enabled/snapshots
 /repository
   /repositories
 /profile

 Then upgrade your project to 0.4 and build with mvn -Pstaging.

 LieGrue,
 your Apache DeltaSpike Team




Re: DS + mfRid/windowdId + Shiro UserFilter/redirectToLogin = infinite redirect loop in browser

2013-05-28 Thread John D. Ament
Mark,

Perhaps we should provide an alternative OOTB that allows you to disable
this?

John


On Tue, May 28, 2013 at 10:12 AM, Mark Struberg strub...@yahoo.de wrote:

 Hi

 Just provide a ClientWindowConfig impl which sets the
 ClientWindowRenderMode to NONE.

 I've recently posted code samples how to do so.

 LieGrue,
 strub




 - Original Message -
  From: titou10 titou10 titou10.tito...@gmail.com
  To: deltaspike-dev@incubator.apache.org
  Cc:
  Sent: Tuesday, 28 May 2013, 16:02
  Subject: DS + mfRid/windowdId + Shiro UserFilter/redirectToLogin =
 infinite
  redirect loop in browser
 
  Hi,
  With the current snapshot of DS, we have a problem with Shiro and the
  introduction of the mfRid/windowdId parameters
  Shiro is configured to redirect to the login page (defines in
  shiro.ini) if required
 
  We use an AJAX compatible Shiro UserFilter as explained here :
 
 http://balusc.blogspot.ca/2013/01/apache-shiro-is-it-ready-for-java-ee-6.html
 
  When this happens, the browser enter an infinite redirect loop,
  because, I *guess* it's because Shiro does not include the
  mfRid/windowdId parameters on the login page
  Q:
  - Am I right?
  - Is it possible to exclude some pages (like the login or error pages)
  from being in need of having those parameters
  - Maybe it's possible to add those parameters in our login
  pages?
 
  It would be a real pain to override a *lot* of Shiro classes to handle
  the mfRid/windowdId parameters everywhere
 
  At this time we can not test/use the current code of DS with our apps.
 
  WDYT?
 



[jira] [Created] (DELTASPIKE-373) Provide an out of the box alternative for ClientWindowConfig

2013-05-28 Thread John D. Ament (JIRA)
John D. Ament created DELTASPIKE-373:


 Summary: Provide an out of the box alternative for 
ClientWindowConfig
 Key: DELTASPIKE-373
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-373
 Project: DeltaSpike
  Issue Type: Improvement
  Components: JSF-Module
Affects Versions: 0.4
Reporter: John D. Ament
Assignee: John D. Ament
 Fix For: 0.5


It seems to be causing a lot of headache currently that the windowId is always 
passed around.  While I'm not a JSF user, I think it's feasible based on Mark's 
description to provide an alternative that turns it off automatically.  So I'd 
like to create a DisabledClientWindowConfig that can be turned on via an 
alternative to avoid issues for people using DS.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Reopened] (DELTASPIKE-339) JndiUtils is broken

2013-05-26 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament reopened DELTASPIKE-339:
--


Agreed with gerhard.  I have some local change s for this too.

 JndiUtils is broken
 ---

 Key: DELTASPIKE-339
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-339
 Project: DeltaSpike
  Issue Type: Bug
  Components: Core
Affects Versions: 0.4
Reporter: Mark Struberg
Assignee: John D. Ament
Priority: Blocker
 Fix For: 0.4


 A recent change in JndiUtils caused a bug in a few Containers
 java.lang.IllegalStateException: Could not get java:comp/ORB from JNDI
   at 
 org.apache.deltaspike.core.impl.util.JndiUtils.lookup(JndiUtils.java:79)
   at 
 org.apache.deltaspike.core.impl.util.JndiUtils.list(JndiUtils.java:186)
   at 
 org.apache.deltaspike.test.core.impl.util.JndiUtilsTest.testList(JndiUtilsTest.java:72)
 The code currently enlists all registered objects in JNDI java:comp and tries 
 to lookup() them as a specific type. But as per the spec of 
 javax.naming.Context this will always throw a javax.naming.NamingException if 
 the type of the registered object in JNDI does not match the type for the 
 bind() operation.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (DELTASPIKE-339) JndiUtils is broken

2013-05-26 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament resolved DELTASPIKE-339.
--

Resolution: Fixed

Added better exception handling - loop won't terminate on first failed look up. 
 Use finest level for messaging and added separate exception handling if there 
are general errors.  Also made the config source not scannable by default.

 JndiUtils is broken
 ---

 Key: DELTASPIKE-339
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-339
 Project: DeltaSpike
  Issue Type: Bug
  Components: Core
Affects Versions: 0.4
Reporter: Mark Struberg
Assignee: John D. Ament
Priority: Blocker
 Fix For: 0.4


 A recent change in JndiUtils caused a bug in a few Containers
 java.lang.IllegalStateException: Could not get java:comp/ORB from JNDI
   at 
 org.apache.deltaspike.core.impl.util.JndiUtils.lookup(JndiUtils.java:79)
   at 
 org.apache.deltaspike.core.impl.util.JndiUtils.list(JndiUtils.java:186)
   at 
 org.apache.deltaspike.test.core.impl.util.JndiUtilsTest.testList(JndiUtilsTest.java:72)
 The code currently enlists all registered objects in JNDI java:comp and tries 
 to lookup() them as a specific type. But as per the spec of 
 javax.naming.Context this will always throw a javax.naming.NamingException if 
 the type of the registered object in JNDI does not match the type for the 
 bind() operation.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (DELTASPIKE-368) Move KEYS and deltaspike files to root directory

2013-05-22 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/DELTASPIKE-368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13664138#comment-13664138
 ] 

John D. Ament commented on DELTASPIKE-368:
--

I think we need to discuss this further - once our graduation is complete, 
should we still have a single repo?

 Move KEYS and deltaspike files to root directory
 

 Key: DELTASPIKE-368
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-368
 Project: DeltaSpike
  Issue Type: Task
  Components: Build
Reporter: Bruno Leonardo Gonçalves
Priority: Minor

 We could move the files of deltaspike directory and KEYS file to the root of 
 the repository tree, avoiding redundancy in names. For example, the 
 openwebbeans repository keeps the files KEYS, LICENSE and NOTICE in the root 
 directory together with all assets and modules, maintaining the directory 
 structure of the project clearer.
 This change proceeds or there are other points to keep the project structure 
 in its own directory?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DELTASPIKE-369) Disable WindowScope by default

2013-05-22 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament updated DELTASPIKE-369:
-

Issue Type: Improvement  (was: Bug)

 Disable WindowScope by default
 --

 Key: DELTASPIKE-369
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-369
 Project: DeltaSpike
  Issue Type: Improvement
  Components: JSF-Module
Affects Versions: 0.4-incubating
Reporter: Florian Hell

 The WindowScope related stuff like the url params for windowId and dsRid (Is 
 it also related to WindowScope?) shouldn't be enabled by default. Also the 
 loading... page should be optional and of course configurable especially by 
 a resource key to define language specific loading screens.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


TomEE 1.5.2

2013-05-21 Thread John D. Ament
Hi all

Has anyone tried running the TomEE tests against 1.5.2? When I try it
locally it's not working, but downgrading to 1.5.1 works fine.

Anyone else seeing something like this?

John


So... what's left in 0.4?

2013-05-13 Thread John D. Ament
We have about 22 issues left open still in 0.4.  Are all these still needed
in 0.4?

https://issues.apache.org/jira/issues/?filter=12324018

John


[jira] [Created] (DELTASPIKE-364) Revisit the use of Project Stage globally

2013-05-13 Thread John D. Ament (JIRA)
John D. Ament created DELTASPIKE-364:


 Summary: Revisit the use of Project Stage globally
 Key: DELTASPIKE-364
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-364
 Project: DeltaSpike
  Issue Type: Bug
Reporter: John D. Ament
Assignee: John D. Ament
 Fix For: 0.5


We need to revisit the use of project stage.  Right now it's being used to log 
what is essentially debug level messages as higher levels; throwing end users 
off and causing lots of complaints as log files fill up.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DELTASPIKE-348) WindowScope stuff breaks ICEfaces

2013-04-24 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament updated DELTASPIKE-348:
-

Fix Version/s: 0.4-incubating
 Assignee: Mark Struberg
  Description: 
Calling any JSF action gives a 
{code}
13:54:29,443 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] 
(http-localhost/127.0.0.1:80-1) Error Rendering View[/OSTi.xhtml]: 
java.lang.RuntimeException: failed to append element[tag: html; attributes: ] 
into #document
at 
org.icefaces.impl.context.DOMResponseWriter.appendToCursor(DOMResponseWriter.java:411)
 [icefaces-3.1.0.jar:]
at 
org.icefaces.impl.context.DOMResponseWriter.startElement(DOMResponseWriter.java:262)
 [icefaces-3.1.0.jar:]
at 
com.sun.faces.facelets.compiler.StartElementInstruction.write(StartElementInstruction.java:75)
 [jsf-impl-2.1.19.jar:2.1.19]
at 
com.sun.faces.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:82)
 [jsf-impl-2.1.19.jar:2.1.19]
at com.sun.faces.facelets.compiler.UILeaf.encodeAll(UILeaf.java:183) 
[jsf-impl-2.1.19.jar:2.1.19]
at 
org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:142)
 [icefaces-3.1.0.jar:]
at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:973) 
[jsf-api-2.1.19.jar:2.1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779) 
[jsf-api-2.1.19.jar:2.1]
at 
com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:413)
 [jsf-impl-2.1.19.jar:2.1.19]
at 
com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:124)
 [jsf-impl-2.1.19.jar:2.1.19]
at 
javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286)
 [jsf-api-2.1.19.jar:2.1]
at 
javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286)
 [jsf-api-2.1.19.jar:2.1]
at 
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
 [jsf-impl-2.1.19.jar:2.1.19]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) 
[jsf-impl-2.1.19.jar:2.1.19]
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) 
[jsf-impl-2.1.19.jar:2.1.19]
at 
org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.render(DeltaSpikeLifecycleWrapper.java:94)
 
[deltaspike-jsf-module-impl-0.4-incubating-SNAPSHOT.jar:0.4-incubating-SNAPSHOT]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) 
[jsf-api-2.1.19.jar:2.1]
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at 
fi.affecto.marela.framework.logging.MDCFilter.doFilter(MDCFilter.java:33) 
[framework-1.0.0-SNAPSHOT.jar:]
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at 
fi.affecto.marela.framework.audit.ForcedLogoutFilter.doFilter(ForcedLogoutFilter.java:40)
 [framework-1.0.0-SNAPSHOT.jar:]
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at 
fi.affecto.marela.framework.audit.OfflineFilter.doFilter(OfflineFilter.java:47) 
[framework-1.0.0-SNAPSHOT.jar:]
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at 
fi.affecto.marela.framework.exception.DSExceptionIntegration.doFilter(DSExceptionIntegration.java:29)
 [framework-1.0.0-SNAPSHOT.jar:]
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final

[jira] [Updated] (DELTASPIKE-348) WindowScope stuff breaks ICEfaces

2013-04-24 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament updated DELTASPIKE-348:
-

Description: 
Calling any JSF action gives a 

13:54:29,443 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] 
(http-localhost/127.0.0.1:80-1) Error Rendering View[/OSTi.xhtml]: 
java.lang.RuntimeException: failed to append element[tag: html; attributes: ] 
into #document
at 
org.icefaces.impl.context.DOMResponseWriter.appendToCursor(DOMResponseWriter.java:411)
 [icefaces-3.1.0.jar:]
at 
org.icefaces.impl.context.DOMResponseWriter.startElement(DOMResponseWriter.java:262)
 [icefaces-3.1.0.jar:]
at 
com.sun.faces.facelets.compiler.StartElementInstruction.write(StartElementInstruction.java:75)
 [jsf-impl-2.1.19.jar:2.1.19]
at 
com.sun.faces.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:82)
 [jsf-impl-2.1.19.jar:2.1.19]
at com.sun.faces.facelets.compiler.UILeaf.encodeAll(UILeaf.java:183) 
[jsf-impl-2.1.19.jar:2.1.19]
at 
org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:142)
 [icefaces-3.1.0.jar:]
at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:973) 
[jsf-api-2.1.19.jar:2.1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779) 
[jsf-api-2.1.19.jar:2.1]
at 
com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:413)
 [jsf-impl-2.1.19.jar:2.1.19]
at 
com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:124)
 [jsf-impl-2.1.19.jar:2.1.19]
at 
javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286)
 [jsf-api-2.1.19.jar:2.1]
at 
javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286)
 [jsf-api-2.1.19.jar:2.1]
at 
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
 [jsf-impl-2.1.19.jar:2.1.19]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) 
[jsf-impl-2.1.19.jar:2.1.19]
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) 
[jsf-impl-2.1.19.jar:2.1.19]
at 
org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.render(DeltaSpikeLifecycleWrapper.java:94)
 
[deltaspike-jsf-module-impl-0.4-incubating-SNAPSHOT.jar:0.4-incubating-SNAPSHOT]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) 
[jsf-api-2.1.19.jar:2.1]
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at 
fi.affecto.marela.framework.logging.MDCFilter.doFilter(MDCFilter.java:33) 
[framework-1.0.0-SNAPSHOT.jar:]
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at 
fi.affecto.marela.framework.audit.ForcedLogoutFilter.doFilter(ForcedLogoutFilter.java:40)
 [framework-1.0.0-SNAPSHOT.jar:]
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at 
fi.affecto.marela.framework.audit.OfflineFilter.doFilter(OfflineFilter.java:47) 
[framework-1.0.0-SNAPSHOT.jar:]
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at 
fi.affecto.marela.framework.exception.DSExceptionIntegration.doFilter(DSExceptionIntegration.java:29)
 [framework-1.0.0-SNAPSHOT.jar:]
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)
 [jbossweb-7.2.0.Final.jar:7.2.0.Final]
at 
org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
 [jboss-as-jpa-7.2.0

Re: windowId postback detection

2013-04-21 Thread John D. Ament
-0/don't care/not a JSF user.


On Sun, Apr 21, 2013 at 4:02 PM, Mark Struberg strub...@yahoo.de wrote:

 Gerhard brought up another alternative: simply provide a component which
 doesn't render any html but adds the windowhandler.js and stores the
 component in the ViewRoot.

 LieGrue,
 strub




 - Original Message -
  From: Romain Manni-Bucau rmannibu...@gmail.com
  To: Mark Struberg strub...@yahoo.de;
 deltaspike-dev@incubator.apache.org
  Cc:
  Sent: Sunday, 21 April 2013, 20:56
  Subject: Re: windowId postback detection
 
  1 sounds easier to track too
  Le 21 avr. 2013 18:09, Mark Struberg strub...@yahoo.de a
  écrit :
 
   Hi!
 
   There are technically 2 options for extracting the windowId on POSTs:
 
   1.) setting a hidden UIOutput component in the ViewRoot
 
 
   2.) provide a custom renderkit/ResponseStateManager
 
   I think 1.) is much easier. Any input?
 
   LIeGrue,
   strub
 
 
 



[jira] [Commented] (DELTASPIKE-339) JndiUtils is broken

2013-04-19 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/DELTASPIKE-339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13637074#comment-13637074
 ] 

John D. Ament commented on DELTASPIKE-339:
--

Looks like Gerhard already committed a change for this.  There's a possibility 
that a RTE will get thrown that disrupts the whole chain, but somewhat 
expected.  Is this still an issue?

 JndiUtils is broken
 ---

 Key: DELTASPIKE-339
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-339
 Project: DeltaSpike
  Issue Type: Bug
  Components: Core
Affects Versions: 0.4-incubating
Reporter: Mark Struberg
Assignee: John D. Ament
Priority: Blocker
 Fix For: 0.4-incubating


 A recent change in JndiUtils caused a bug in a few Containers
 java.lang.IllegalStateException: Could not get java:comp/ORB from JNDI
   at 
 org.apache.deltaspike.core.impl.util.JndiUtils.lookup(JndiUtils.java:79)
   at 
 org.apache.deltaspike.core.impl.util.JndiUtils.list(JndiUtils.java:186)
   at 
 org.apache.deltaspike.test.core.impl.util.JndiUtilsTest.testList(JndiUtilsTest.java:72)
 The code currently enlists all registered objects in JNDI java:comp and tries 
 to lookup() them as a specific type. But as per the spec of 
 javax.naming.Context this will always throw a javax.naming.NamingException if 
 the type of the registered object in JNDI does not match the type for the 
 bind() operation.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Assigned] (DELTASPIKE-339) JndiUtils is broken

2013-04-19 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament reassigned DELTASPIKE-339:


Assignee: Gerhard Petracek  (was: John D. Ament)

 JndiUtils is broken
 ---

 Key: DELTASPIKE-339
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-339
 Project: DeltaSpike
  Issue Type: Bug
  Components: Core
Affects Versions: 0.4-incubating
Reporter: Mark Struberg
Assignee: Gerhard Petracek
Priority: Blocker
 Fix For: 0.4-incubating


 A recent change in JndiUtils caused a bug in a few Containers
 java.lang.IllegalStateException: Could not get java:comp/ORB from JNDI
   at 
 org.apache.deltaspike.core.impl.util.JndiUtils.lookup(JndiUtils.java:79)
   at 
 org.apache.deltaspike.core.impl.util.JndiUtils.list(JndiUtils.java:186)
   at 
 org.apache.deltaspike.test.core.impl.util.JndiUtilsTest.testList(JndiUtilsTest.java:72)
 The code currently enlists all registered objects in JNDI java:comp and tries 
 to lookup() them as a specific type. But as per the spec of 
 javax.naming.Context this will always throw a javax.naming.NamingException if 
 the type of the registered object in JNDI does not match the type for the 
 bind() operation.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (DELTASPIKE-339) JndiUtils is broken

2013-04-07 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/DELTASPIKE-339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13624901#comment-13624901
 ] 

John D. Ament commented on DELTASPIKE-339:
--

we can definitely make jndi not a scannable config source.  However this ticket 
doesn't indicate what environments this is failing in.  That would help try to 
resolve this.

 JndiUtils is broken
 ---

 Key: DELTASPIKE-339
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-339
 Project: DeltaSpike
  Issue Type: Bug
  Components: Core
Affects Versions: 0.4-incubating
Reporter: Mark Struberg
Assignee: John D. Ament
Priority: Blocker
 Fix For: 0.4-incubating


 A recent change in JndiUtils caused a bug in a few Containers
 java.lang.IllegalStateException: Could not get java:comp/ORB from JNDI
   at 
 org.apache.deltaspike.core.impl.util.JndiUtils.lookup(JndiUtils.java:79)
   at 
 org.apache.deltaspike.core.impl.util.JndiUtils.list(JndiUtils.java:186)
   at 
 org.apache.deltaspike.test.core.impl.util.JndiUtilsTest.testList(JndiUtilsTest.java:72)
 The code currently enlists all registered objects in JNDI java:comp and tries 
 to lookup() them as a specific type. But as per the spec of 
 javax.naming.Context this will always throw a javax.naming.NamingException if 
 the type of the registered object in JNDI does not match the type for the 
 bind() operation.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: [DISCUSS] re-visit annotation package/s

2013-03-31 Thread John D. Ament
Unfortunately even the EE specs are not in agreement whether or not to have
an annotation package.

I think we should drop the packages.


On Sun, Mar 31, 2013 at 11:37 AM, Jason Porter lightguard...@gmail.comwrote:

 I'm happy either way. Though in the rest of Java EE, there are no
 annotation packages. Perhaps we should align with the way things are laid
 out in the Java EE packages.


 On Sun, Mar 31, 2013 at 9:30 AM, Gerhard Petracek 
 gerhard.petra...@gmail.com wrote:

  hi @ all,
 
  we had an agreement to use a (sub-)package named annotation for all our
  annotations within a package.
  however, it feels a bit clumsy if a package (currently) just contains
  annotations.
  e.g. org.apache.deltaspike.core.api.exclude only contains the package
  annotation.
 
  currently we have a mixture (some parts are using the annotation
 package
  and some don't)
  - we have to align it the one way or the other.
  i'm currently in favour of dropping the annotation-package/s.
 
  regards,
  gerhard
 



 --
 Jason Porter
 http://en.gravatar.com/lightguardjp



Re: [VOTE] Recommending DeltaSpike for Graduation to an Apache Top Level Project

2013-03-30 Thread John D. Ament
I think this vote ended?


On Sat, Mar 30, 2013 at 7:31 AM, Mark Struberg strub...@yahoo.de wrote:

 +1


 LieGrue,
 strub



 - Original Message -
  From: Mark Struberg strub...@yahoo.de
  To: deltaspike-us...@incubator.apache.org 
 deltaspike-us...@incubator.apache.org; deltaspike 
 deltaspike-dev@incubator.apache.org
  Cc:
  Sent: Monday, March 25, 2013 10:35 PM
  Subject: [VOTE] Recommending DeltaSpike for Graduation to an Apache Top
 Level Project
 
  Lords and Ladies.
 
  Please find attached the PROPOSAL for graduating DeltaSpike out of the
 Incubator
  and establishing it as TLP.
 
  [+1] yea, all fine and I like it
  [+0] no blocker, but I don't care
  [-1] nah there's a blocker in there. Abort and re-roll because of
 ${reason}
 
  The internal VOTE is open for 72h. After that we gonna tally and forward
 the
  VOTE to the IPMC to VOTE about the recommendation. Once this is done,
 the board
  might consider our wish in the upcoming board meeting.
 
  LieGrue,
  strub
 
 
  ---
 
  Proposed Board Resolution Report
  X. Establish the Apache DeltaSpike Project
 
  WHEREAS, the Board of Directors deems it to be in the best
  interests of the Foundation and consistent with the
  Foundation's purpose to establish a Project Management
  Committee charged with the creation and maintenance of
  open-source software related to creating a set
  of portable CDI (JSR-299) Extensions
  for distribution at no charge to the public.
 
  NOW, THEREFORE, BE IT RESOLVED, that a Project Management
  Committee (PMC), to be known as the Apache DeltaSpike Project,
  be and hereby is established pursuant to Bylaws of the
  Foundation; and be it further
 
  RESOLVED, that the Apache DeltaSpike Project be and hereby is
  responsible for the creation and maintenance of open-source
  software related to creating a set of portable CDI Extensions;
  and be it further
 
  RESOLVED, that the office of Vice President, Apache DeltaSpike be
  and hereby is created, the person holding such office to
  serve at the direction of the Board of Directors as the chair
  of the Apache DeltaSpike Project, and to have primary responsibility
  for management of the projects within the scope of
  responsibility of the Apache DeltaSpike Project; and be it further
 
  RESOLVED, that the persons listed immediately below be and
  hereby are appointed to serve as the initial members of the
  Apache DeltaSpike Project:
 
  Gerhard Petracek gpetracek at apache.org
  Mark Struberg struberg at apache.org
  Pete Muir pmuir at redhat.com
  Jason Porter lightguard.jp at gmail.com
  Shane Bryzak sbryzak at gmail.com
  Rudy de Busscher rdebusscher at apache.org
  Christian Kaltepoth christian at kaltepoth.de
  Arne Limburg arne.limburg at openknowledge.de
  Charles Moulliard cmoulliard at gmail.com
  Cody Lerum cody.lerum at gmail.com
  Romain Mannu-Buccau rmannibucau at gmail.com
  Matthew Jason Benson mbenson at apache.org
  Jim Jagielski jim at apache.org
  David Blevins dblevins at apache.org
  Ken Finnigan ken at kenfinnigan.me
  John D. Ament johndament at apache.org
 
  NOW, THEREFORE, BE IT FURTHER RESOLVED, that Mark Struberg
  be appointed to the office of Vice President, Apache DeltaSpike, to
  serve in accordance with and subject to the direction of the
  Board of Directors and the Bylaws of the Foundation until
  death, resignation, retirement, removal or disqualification,
  or until a successor is appointed; and be it further
 
  RESOLVED, that the initial Apache DeltaSpike PMC be and hereby is
  tasked with the creation of a set of bylaws intended to
  encourage open development and increased participation in the
  Apache DeltaSpike Project; and be it further
 
  RESOLVED, that the Apache DeltaSpike Project be and hereby
  is tasked with the migration and rationalization of the Apache
  Incubator DeltaSpike podling; and be it further
 
  RESOLVED, that all responsibilities pertaining to the Apache
  Incubator DeltaSpike podling encumbered upon the Apache Incubator
  Project are hereafter discharged.
 
 
 
 
 https://cwiki.apache.org/confluence/display/DeltaSpike/Graduation+Proposal
 



[jira] [Updated] (DELTASPIKE-134) Discuss advanced features of exception handling

2013-03-29 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament updated DELTASPIKE-134:
-

Fix Version/s: (was: 0.4-incubating)
   0.5-incubating

 Discuss advanced features of exception handling
 ---

 Key: DELTASPIKE-134
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-134
 Project: DeltaSpike
  Issue Type: Sub-task
  Components: ExceptionControl-Module
Reporter: Jason Porter
Assignee: Jason Porter
 Fix For: 0.5-incubating


 Seam Catch has two advanced features: modifying the exception stack / chain 
 and modifying the stack trace for output.
 The modification of the exception stack is to allow users to map exceptions 
 to other exceptions that may be easier to digest or more appropriate for 
 their application.
 Modification of the stack trace is meant for printing the stack trace. There 
 are times where internal JDK methods other elements in the stack are simply 
 extra noise such as calls to reflection methods.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DELTASPIKE-132) Discuss the concept of the exception chain / stack

2013-03-29 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament updated DELTASPIKE-132:
-

Fix Version/s: (was: 0.4-incubating)
   0.5-incubating

 Discuss the concept of the exception chain / stack
 --

 Key: DELTASPIKE-132
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-132
 Project: DeltaSpike
  Issue Type: Sub-task
  Components: ExceptionControl-Module
Reporter: Jason Porter
Assignee: Jason Porter
 Fix For: 0.5-incubating


 Exceptions in Java are often a chain of exceptions, or a stack of exceptions.
 A problem of many Java developers, especially newer developers is finding the 
 actual root cause of an exception. The Exception Handling module should take 
 this guess work out when it finds exception handlers and first look for a 
 handler for the root cause. The exception stack should be completely 
 unwrapped before looking for a handler.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: Heading towards a 0.4 release

2013-03-27 Thread John D. Ament
Let's try to avoid procedural issues in this thread.

I'll update some more of the issues this morning.


On Wed, Mar 27, 2013 at 5:05 AM, Gerhard Petracek 
gerhard.petra...@gmail.com wrote:

 @ ...everyone is free to just add a feature branch...:
 imo we should keep [1] for single features. otherwise we end up with 100+
 branches and we can't drop a single one later on (if it would be needed)...
 however, we also have to think about an approach for v1+
 - i would suggest to add new modules via (feature-)branches once we
 agreed to add them to deltaspike (in a [discuss]-thread on the dev-list).
 once a module is stable enough to get part of the next release, we can
 merge its branch into the master.

 regards,
 gerhard

 [1]

 http://incubator.apache.org/deltaspike/suggested-git-workflows.html#contribution-workflow



 2013/3/27 Mark Struberg strub...@yahoo.de

  yup please later than 0.4.
  I'd say we call a feature freeze until we ship 0.4 (hopefully next week)
  and focus on
 
  * JSF
  * JPA
  * Security
 
  After that we can add new features to the master branch.
 
  Of course, everyone is free to just add a feature branch for a new
 feature
  which is outside those areas.
 
 
  LieGrue,
  strub
 
 
 
 
  - Original Message -
   From: Jason Porter lightguard...@gmail.com
   To: deltaspike-dev@incubator.apache.org
   Cc:
   Sent: Tuesday, March 26, 2013 2:28 PM
   Subject: Re: Heading towards a 0.4 release
  
  T he last time I asked about it the responses seemed lukewarm, so I
  figured it
   wasn't something people really cared about. We could certainly add it
 in
   post 0.4 if there really is a desire for it.
   —
   Sent from Mailbox for iPhone
  
   On Tue, Mar 26, 2013 at 7:23 AM, John D. Ament john.d.am...@gmail.com
 
   wrote:
  
Jason,
Does that mean we are no longer bringing XML config to DeltaSpike,
 even
though it was already voted in?
On Tue, Mar 26, 2013 at 9:10 AM, Jason Porter
   lightguard...@gmail.comwrote:
Wrt xml-config, I'll be working on configuring cdi via osgi
   blueprint,
over in the Aries project. If we want to port over the seam config
   stuff,
we can certainly do that too.
—
Sent from Mailbox for iPhone
  
On Tue, Mar 26, 2013 at 4:42 AM, Romain Manni-Bucau
   rmannibu...@gmail.com

wrote:
  
 @Gerhard: the point about proxy was i thought it was not straight
   forward
 since some people will not want to bring any additional lib for it
(because
 they use only interfaces and proxy libs can conflcts). Wonder if
   handling
 it with a dep optional couldn't do the trick too.
 *Romain Manni-Bucau*
 *Twitter: @rmannibucau https://twitter.com/rmannibucau*
 *Blog: **http://rmannibucau.wordpress.com/*
http://rmannibucau.wordpress.com/
 *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
 *Github: https://github.com/rmannibucau*
 2013/3/26 Gerhard Petracek gerhard.petra...@gmail.com
 @ romain:
 imo it doesn't make sense to remove something (and add it
   later on
again),
 if it's just a matter of few hours (to do it immediately).
 anybody is welcome to work on DS-333.

 @ DS-288
 it's almost done and as i mentioned earlier i'll
   finish it once DS-289
is
 done.
 (yes we need it for 0.4)

 @ xml-config
 afair we had an agreement already, but nobody worked on it.

 regards,
 gerhard



 2013/3/26 John D. Ament john.d.am...@gmail.com

  I think leaving proxy support to full interface only for
   now makes
sense,
  we can enrich this further in another release.  How about
   we close 113
 as a
  reduced scope and open a new issue for remaining items?
   I see you
 already
  did some Gerhard, but we still have abstract classes as a
   case as
well.
 
  Gerhard, can you also comment on 288? Do we need this in
   0.4 or can it
  wait?
 
  Romain, I didn't quite get you.  Are you saying
   you're on hold on this
 one
  (dependent on something?).
 
  Does anyone believe we need Seam XML Config in 0.4?
   (DS-269 to 272).
 I'd
  prefer to move it.
 
  For DS-105, it looks like consensus is to keep it since
   it's needed
for
  older Weld versions. If so can we close as will not fix?
 
  Jason P - Can you look at DS-132/134? Do we need these?
   There are
other
  catch like issues out there.  Are they needed?
 
  Mark S - You have 12 issues assigned to you :/
 
  BTW I created a new filter - only open issues [1]
 
  John
 
  [1]
   https://issues.apache.org/jira/issues/?filter=12323789
 
 
  On Mon, Mar 25, 2013 at 12:49 PM, Romain Manni-Bucau
  rmannibu...@gmail.comwrote:
 
   Hi
  
   DS-60: we are a bunch o wait after it
  
   DS-113: think we can push partial bean to another
   release and keep
   interface handling

Fwd: [jira] [Created] (PODLINGNAMESEARCH-31) Establish whether Apache DeltaSpike is a suitable name

2013-03-27 Thread John D. Ament
FYI, though someone tell me if you disagree about the origins of the name.

-- Forwarded message --
From: John D. Ament (JIRA) j...@apache.org
Date: Wed, Mar 27, 2013 at 6:39 AM
Subject: [jira] [Created] (PODLINGNAMESEARCH-31) Establish whether Apache
DeltaSpike is a suitable name
To: gene...@incubator.apache.org


John D. Ament created PODLINGNAMESEARCH-31:
--

 Summary: Establish whether Apache DeltaSpike is a suitable
name
 Key: PODLINGNAMESEARCH-31
 URL:
https://issues.apache.org/jira/browse/PODLINGNAMESEARCH-31
 Project: Podling Suitable Names Search
  Issue Type: Suitable Name Search
Reporter: John D. Ament


DeltaSpike is a portmanteau of Delta (for change) and Spike (for 'an abrupt
sharp increase').  From the ASF perspective, it is a library of reusable
CDI extensions and components.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA
administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

-
To unsubscribe, e-mail: general-unsubscr...@incubator.apache.org
For additional commands, e-mail: general-h...@incubator.apache.org


Re: Servlet module

2013-03-26 Thread John D. Ament
This was already discussed.

http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/seam-servlet-stuff-to-deltaspike-td4653869.html




On Tue, Mar 26, 2013 at 4:36 AM, Romain Manni-Bucau
rmannibu...@gmail.comwrote:

 +1 for 0.5

 *Romain Manni-Bucau*
 *Twitter: @rmannibucau https://twitter.com/rmannibucau*
 *Blog: **http://rmannibucau.wordpress.com/*
 http://rmannibucau.wordpress.com/
 *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
 *Github: https://github.com/rmannibucau*



 2013/3/26 Mark Struberg strub...@yahoo.de

  sounds good. Maybe for 0.5?
 
  But we have GIT now, thus we can maintain feature branches pretty easily.
 
  LieGrue,
  strub
 
 
 
 
  - Original Message -
   From: Ove Ranheim oranh...@gmail.com
   To: deltaspike-dev@incubator.apache.org
   Cc:
   Sent: Tuesday, March 26, 2013 8:29 AM
   Subject: Re: Servlet module
  
   Hi,
  
   Wouldn't it make sense to add a CDI 1.x servlet module to DS and make
 it
   optional to CDI 2?
  
   Ove
  
   On Mar 26, 2013, at 8:23 AM, Nicklas Karlsson nicka...@gmail.com
  wrote:
  
Is there enough material in Seam/CODI to warrant a Servlet module or
  should
we just wait for CDI 2 to provide servlet lifecycle events etc?
  
--
Nicklas Karlsson, +358 40 5062266
Vaakunatie 10 as 7, 20780 Kaarina
  
 



[jira] [Commented] (DELTASPIKE-263) Generate binaries of DeltaSpike project

2013-03-26 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/DELTASPIKE-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13613703#comment-13613703
 ] 

John D. Ament commented on DELTASPIKE-263:
--

[~cmoulliard] No one's saying close this/don't do it.  I was asking if you had 
availability to work on it for 0.4.

[~gpetracek] I believe you mean https://issues.jboss.org/browse/CDI-18 which 
appears to be resolved now in 1.1.

 Generate binaries of DeltaSpike project
 ---

 Key: DELTASPIKE-263
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-263
 Project: DeltaSpike
  Issue Type: New Feature
Affects Versions: 0.3-incubating
Reporter: Charles Moulliard
Assignee: Charles Moulliard
 Fix For: 0.4-incubating




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (DELTASPIKE-263) Generate binaries of DeltaSpike project

2013-03-26 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/DELTASPIKE-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13613739#comment-13613739
 ] 

John D. Ament commented on DELTASPIKE-263:
--

[~gpetracek] it seems like we're trying to cover two different issues.  This is 
simply to create binaries.  If there are issues with CDI in EARs I don't see 
how that's relevant.

I'd rather this issue simply focus on providing DS binaries.

 Generate binaries of DeltaSpike project
 ---

 Key: DELTASPIKE-263
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-263
 Project: DeltaSpike
  Issue Type: New Feature
Affects Versions: 0.3-incubating
Reporter: Charles Moulliard
Assignee: Charles Moulliard
 Fix For: 0.4-incubating




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: Heading towards a 0.4 release

2013-03-26 Thread John D. Ament
Jason,

Does that mean we are no longer bringing XML config to DeltaSpike, even
though it was already voted in?


On Tue, Mar 26, 2013 at 9:10 AM, Jason Porter lightguard...@gmail.comwrote:

 Wrt xml-config, I'll be working on configuring cdi via osgi blueprint,
 over in the Aries project. If we want to port over the seam config stuff,
 we can certainly do that too.
 —
 Sent from Mailbox for iPhone

 On Tue, Mar 26, 2013 at 4:42 AM, Romain Manni-Bucau rmannibu...@gmail.com
 
 wrote:

  @Gerhard: the point about proxy was i thought it was not straight forward
  since some people will not want to bring any additional lib for it
 (because
  they use only interfaces and proxy libs can conflcts). Wonder if handling
  it with a dep optional couldn't do the trick too.
  *Romain Manni-Bucau*
  *Twitter: @rmannibucau https://twitter.com/rmannibucau*
  *Blog: **http://rmannibucau.wordpress.com/*
 http://rmannibucau.wordpress.com/
  *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
  *Github: https://github.com/rmannibucau*
  2013/3/26 Gerhard Petracek gerhard.petra...@gmail.com
  @ romain:
  imo it doesn't make sense to remove something (and add it later on
 again),
  if it's just a matter of few hours (to do it immediately).
  anybody is welcome to work on DS-333.
 
  @ DS-288
  it's almost done and as i mentioned earlier i'll finish it once DS-289
 is
  done.
  (yes we need it for 0.4)
 
  @ xml-config
  afair we had an agreement already, but nobody worked on it.
 
  regards,
  gerhard
 
 
 
  2013/3/26 John D. Ament john.d.am...@gmail.com
 
   I think leaving proxy support to full interface only for now makes
 sense,
   we can enrich this further in another release.  How about we close 113
  as a
   reduced scope and open a new issue for remaining items?  I see you
  already
   did some Gerhard, but we still have abstract classes as a case as
 well.
  
   Gerhard, can you also comment on 288? Do we need this in 0.4 or can it
   wait?
  
   Romain, I didn't quite get you.  Are you saying you're on hold on this
  one
   (dependent on something?).
  
   Does anyone believe we need Seam XML Config in 0.4? (DS-269 to 272).
  I'd
   prefer to move it.
  
   For DS-105, it looks like consensus is to keep it since it's needed
 for
   older Weld versions. If so can we close as will not fix?
  
   Jason P - Can you look at DS-132/134? Do we need these?  There are
 other
   catch like issues out there.  Are they needed?
  
   Mark S - You have 12 issues assigned to you :/
  
   BTW I created a new filter - only open issues [1]
  
   John
  
   [1] https://issues.apache.org/jira/issues/?filter=12323789
  
  
   On Mon, Mar 25, 2013 at 12:49 PM, Romain Manni-Bucau
   rmannibu...@gmail.comwrote:
  
Hi
   
DS-60: we are a bunch o wait after it
   
DS-113: think we can push partial bean to another release and keep
interface handling for this iteration (well if you import asm part
  right
now it can work but then the question will be which shade version? a
   proxy
as in cxf?)
   
other are not blocker IMO
   
   
*Romain Manni-Bucau*
*Twitter: @rmannibucau https://twitter.com/rmannibucau*
*Blog: **http://rmannibucau.wordpress.com/*
http://rmannibucau.wordpress.com/
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
   
   
   
2013/3/25 Gerhard Petracek gerhard.petra...@gmail.com
   
 hi john,

 @ examples:
 we haven't discussed what our goal is here

 @ DS-60
 imo we should do it for 0.5 (and release 0.5 short after 0.4)

 @ DS-113
 we have to change the proxy-lib and move it to an own module
 (i'll create the module today)

 @ DS-263
 not needed, but nice to have - +1
 (you can have a look at the setup we used in codi for it to know
 what
   you
 need)

 @ DS-278
 i re-opened it because we should find a better approach imo.
 however, it isn't a real blocker

 regards,
 gerhard



 2013/3/25 John D. Ament john.d.am...@gmail.com

  All,
 
  Based on the flurry of threads, I wanted to help get things
 started
   to
 move
  towards a 0.4 release.  I created the filter at [1] to show our
   current
  progress.
 
  We currently have 50 issues fixed in 0.4, with 27 unresolved for
  the
  release.  Some of these issues stick out, with me thinking that
  we've
  actually completed them but perhaps need some finalization
 (note:
   I'll
 use
  the abbreviation DS for the DELTASPIKE key in JIRA which is
 TL;DR)
 
  DS-306 - I see examples.  Do we need more?
  DS-60 - I believe we have started integrating CDI Query.  Should
  this
 have
  spawned child tasks?
  DS-113 - Gerhard took the reigns on this one and apparently it
  works
just
  like the Seam3 version.  Can this be closed?
 
 
  Some low hanging fruit:
 
  DS-263 - I

[jira] [Updated] (DELTASPIKE-271) Import Seam Config from Solder

2013-03-26 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament updated DELTASPIKE-271:
-

Fix Version/s: (was: 0.4-incubating)
   0.5-incubating

 Import Seam Config from Solder
 --

 Key: DELTASPIKE-271
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-271
 Project: DeltaSpike
  Issue Type: Sub-task
  Components: Configuration
Affects Versions: 0.4-incubating
Reporter: Jason Porter
 Fix For: 0.5-incubating




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DELTASPIKE-270) Create api and impl spaces for the module

2013-03-26 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament updated DELTASPIKE-270:
-

Fix Version/s: (was: 0.4-incubating)
   0.5-incubating

 Create api and impl spaces for the module
 -

 Key: DELTASPIKE-270
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-270
 Project: DeltaSpike
  Issue Type: Sub-task
  Components: Configuration
Affects Versions: 0.4-incubating
Reporter: Jason Porter
 Fix For: 0.5-incubating




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DELTASPIKE-272) Copy documentation from Seam Solder for configuration

2013-03-26 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament updated DELTASPIKE-272:
-

Fix Version/s: (was: 0.4-incubating)
   0.5-incubating

 Copy documentation from Seam Solder for configuration
 -

 Key: DELTASPIKE-272
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-272
 Project: DeltaSpike
  Issue Type: Sub-task
  Components: Configuration
Affects Versions: 0.4-incubating
Reporter: Jason Porter
 Fix For: 0.5-incubating




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: Heading towards a 0.4 release

2013-03-26 Thread John D. Ament
Ok.  How about the open catch issues? Do you feel any of those are needed
for 0.4?


On Tue, Mar 26, 2013 at 9:28 AM, Jason Porter lightguard...@gmail.comwrote:

 The last time I asked about it the responses seemed lukewarm, so I figured
 it wasn't something people really cared about. We could certainly add it in
 post 0.4 if there really is a desire for it.
 —
 Sent from Mailbox for iPhone

 On Tue, Mar 26, 2013 at 7:23 AM, John D. Ament john.d.am...@gmail.com
 wrote:

  Jason,
  Does that mean we are no longer bringing XML config to DeltaSpike, even
  though it was already voted in?
  On Tue, Mar 26, 2013 at 9:10 AM, Jason Porter lightguard...@gmail.com
 wrote:
  Wrt xml-config, I'll be working on configuring cdi via osgi blueprint,
  over in the Aries project. If we want to port over the seam config
 stuff,
  we can certainly do that too.
  —
  Sent from Mailbox for iPhone
 
  On Tue, Mar 26, 2013 at 4:42 AM, Romain Manni-Bucau 
 rmannibu...@gmail.com
  
  wrote:
 
   @Gerhard: the point about proxy was i thought it was not straight
 forward
   since some people will not want to bring any additional lib for it
  (because
   they use only interfaces and proxy libs can conflcts). Wonder if
 handling
   it with a dep optional couldn't do the trick too.
   *Romain Manni-Bucau*
   *Twitter: @rmannibucau https://twitter.com/rmannibucau*
   *Blog: **http://rmannibucau.wordpress.com/*
  http://rmannibucau.wordpress.com/
   *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
   *Github: https://github.com/rmannibucau*
   2013/3/26 Gerhard Petracek gerhard.petra...@gmail.com
   @ romain:
   imo it doesn't make sense to remove something (and add it later on
  again),
   if it's just a matter of few hours (to do it immediately).
   anybody is welcome to work on DS-333.
  
   @ DS-288
   it's almost done and as i mentioned earlier i'll finish it once
 DS-289
  is
   done.
   (yes we need it for 0.4)
  
   @ xml-config
   afair we had an agreement already, but nobody worked on it.
  
   regards,
   gerhard
  
  
  
   2013/3/26 John D. Ament john.d.am...@gmail.com
  
I think leaving proxy support to full interface only for now makes
  sense,
we can enrich this further in another release.  How about we close
 113
   as a
reduced scope and open a new issue for remaining items?  I see you
   already
did some Gerhard, but we still have abstract classes as a case as
  well.
   
Gerhard, can you also comment on 288? Do we need this in 0.4 or
 can it
wait?
   
Romain, I didn't quite get you.  Are you saying you're on hold on
 this
   one
(dependent on something?).
   
Does anyone believe we need Seam XML Config in 0.4? (DS-269 to
 272).
   I'd
prefer to move it.
   
For DS-105, it looks like consensus is to keep it since it's needed
  for
older Weld versions. If so can we close as will not fix?
   
Jason P - Can you look at DS-132/134? Do we need these?  There are
  other
catch like issues out there.  Are they needed?
   
Mark S - You have 12 issues assigned to you :/
   
BTW I created a new filter - only open issues [1]
   
John
   
[1] https://issues.apache.org/jira/issues/?filter=12323789
   
   
On Mon, Mar 25, 2013 at 12:49 PM, Romain Manni-Bucau
rmannibu...@gmail.comwrote:
   
 Hi

 DS-60: we are a bunch o wait after it

 DS-113: think we can push partial bean to another release and
 keep
 interface handling for this iteration (well if you import asm
 part
   right
 now it can work but then the question will be which shade
 version? a
proxy
 as in cxf?)

 other are not blocker IMO


 *Romain Manni-Bucau*
 *Twitter: @rmannibucau https://twitter.com/rmannibucau*
 *Blog: **http://rmannibucau.wordpress.com/*
 http://rmannibucau.wordpress.com/
 *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
 *Github: https://github.com/rmannibucau*



 2013/3/25 Gerhard Petracek gerhard.petra...@gmail.com

  hi john,
 
  @ examples:
  we haven't discussed what our goal is here
 
  @ DS-60
  imo we should do it for 0.5 (and release 0.5 short after 0.4)
 
  @ DS-113
  we have to change the proxy-lib and move it to an own module
  (i'll create the module today)
 
  @ DS-263
  not needed, but nice to have - +1
  (you can have a look at the setup we used in codi for it to
 know
  what
you
  need)
 
  @ DS-278
  i re-opened it because we should find a better approach imo.
  however, it isn't a real blocker
 
  regards,
  gerhard
 
 
 
  2013/3/25 John D. Ament john.d.am...@gmail.com
 
   All,
  
   Based on the flurry of threads, I wanted to help get things
  started
to
  move
   towards a 0.4 release.  I created the filter at [1] to show
 our
current
   progress.
  
   We currently have 50 issues fixed in 0.4

[jira] [Updated] (DELTASPIKE-269) Add XML Config from Seam

2013-03-26 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament updated DELTASPIKE-269:
-

Fix Version/s: (was: 0.4-incubating)
   0.5-incubating

 Add XML Config from Seam
 

 Key: DELTASPIKE-269
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-269
 Project: DeltaSpike
  Issue Type: Task
  Components: Configuration
Affects Versions: 0.4-incubating
Reporter: Jason Porter
Assignee: Jason Porter
 Fix For: 0.5-incubating


 Umbrella issue for adding in Seam Config

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (DELTASPIKE-105) remove workarounds for weld

2013-03-26 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament resolved DELTASPIKE-105.
--

Resolution: Won't Fix

Consensus was that the work arounds are needed for older Weld versions.

 remove workarounds for weld
 ---

 Key: DELTASPIKE-105
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-105
 Project: DeltaSpike
  Issue Type: Sub-task
  Components: CdiControl
Affects Versions: 0.2-incubating
Reporter: Gerhard Petracek
Assignee: Ales Justin
 Fix For: 0.4-incubating


 currently we have 2 workarounds which need to be removed as soon as we have a 
 released version of weld which fixes the following issues:
 #1 the application scope doesn't get restarted autom. after it is invalidated 
 and it can't be started manually (reason: IsolatedStaticSingleton.object is 
 null after calling applicationContext#invalidate and causes a NPE as soon as 
 the scope gets accessed again)
 the workaround is in ContextController#stopApplicationScope
 #2 AbstractSharedContext#isActive always returns true
 the workaround is in ContainerCtrlTckTest#reStartContexts
 ContainerCtrlTckTest#reStartContexts has to pass without workarounds

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: Heading towards a 0.4 release

2013-03-26 Thread John D. Ament
I moved the XML config to 0.5

I resolver DS-105 since no additional comments on it and general consensus
was that it was needed for backwards compatibility.


On Tue, Mar 26, 2013 at 9:40 AM, John D. Ament john.d.am...@gmail.comwrote:

 Ok.  How about the open catch issues? Do you feel any of those are needed
 for 0.4?


 On Tue, Mar 26, 2013 at 9:28 AM, Jason Porter lightguard...@gmail.comwrote:

 The last time I asked about it the responses seemed lukewarm, so I
 figured it wasn't something people really cared about. We could certainly
 add it in post 0.4 if there really is a desire for it.
 —
 Sent from Mailbox for iPhone

 On Tue, Mar 26, 2013 at 7:23 AM, John D. Ament john.d.am...@gmail.com
 wrote:

  Jason,
  Does that mean we are no longer bringing XML config to DeltaSpike, even
  though it was already voted in?
  On Tue, Mar 26, 2013 at 9:10 AM, Jason Porter lightguard...@gmail.com
 wrote:
  Wrt xml-config, I'll be working on configuring cdi via osgi blueprint,
  over in the Aries project. If we want to port over the seam config
 stuff,
  we can certainly do that too.
  —
  Sent from Mailbox for iPhone
 
  On Tue, Mar 26, 2013 at 4:42 AM, Romain Manni-Bucau 
 rmannibu...@gmail.com
  
  wrote:
 
   @Gerhard: the point about proxy was i thought it was not straight
 forward
   since some people will not want to bring any additional lib for it
  (because
   they use only interfaces and proxy libs can conflcts). Wonder if
 handling
   it with a dep optional couldn't do the trick too.
   *Romain Manni-Bucau*
   *Twitter: @rmannibucau https://twitter.com/rmannibucau*
   *Blog: **http://rmannibucau.wordpress.com/*
  http://rmannibucau.wordpress.com/
   *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
   *Github: https://github.com/rmannibucau*
   2013/3/26 Gerhard Petracek gerhard.petra...@gmail.com
   @ romain:
   imo it doesn't make sense to remove something (and add it later on
  again),
   if it's just a matter of few hours (to do it immediately).
   anybody is welcome to work on DS-333.
  
   @ DS-288
   it's almost done and as i mentioned earlier i'll finish it once
 DS-289
  is
   done.
   (yes we need it for 0.4)
  
   @ xml-config
   afair we had an agreement already, but nobody worked on it.
  
   regards,
   gerhard
  
  
  
   2013/3/26 John D. Ament john.d.am...@gmail.com
  
I think leaving proxy support to full interface only for now makes
  sense,
we can enrich this further in another release.  How about we
 close 113
   as a
reduced scope and open a new issue for remaining items?  I see you
   already
did some Gerhard, but we still have abstract classes as a case as
  well.
   
Gerhard, can you also comment on 288? Do we need this in 0.4 or
 can it
wait?
   
Romain, I didn't quite get you.  Are you saying you're on hold on
 this
   one
(dependent on something?).
   
Does anyone believe we need Seam XML Config in 0.4? (DS-269 to
 272).
   I'd
prefer to move it.
   
For DS-105, it looks like consensus is to keep it since it's
 needed
  for
older Weld versions. If so can we close as will not fix?
   
Jason P - Can you look at DS-132/134? Do we need these?  There are
  other
catch like issues out there.  Are they needed?
   
Mark S - You have 12 issues assigned to you :/
   
BTW I created a new filter - only open issues [1]
   
John
   
[1] https://issues.apache.org/jira/issues/?filter=12323789
   
   
On Mon, Mar 25, 2013 at 12:49 PM, Romain Manni-Bucau
rmannibu...@gmail.comwrote:
   
 Hi

 DS-60: we are a bunch o wait after it

 DS-113: think we can push partial bean to another release and
 keep
 interface handling for this iteration (well if you import asm
 part
   right
 now it can work but then the question will be which shade
 version? a
proxy
 as in cxf?)

 other are not blocker IMO


 *Romain Manni-Bucau*
 *Twitter: @rmannibucau https://twitter.com/rmannibucau*
 *Blog: **http://rmannibucau.wordpress.com/*
 http://rmannibucau.wordpress.com/
 *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
 *Github: https://github.com/rmannibucau*



 2013/3/25 Gerhard Petracek gerhard.petra...@gmail.com

  hi john,
 
  @ examples:
  we haven't discussed what our goal is here
 
  @ DS-60
  imo we should do it for 0.5 (and release 0.5 short after
 0.4)
 
  @ DS-113
  we have to change the proxy-lib and move it to an own module
  (i'll create the module today)
 
  @ DS-263
  not needed, but nice to have - +1
  (you can have a look at the setup we used in codi for it to
 know
  what
you
  need)
 
  @ DS-278
  i re-opened it because we should find a better approach imo.
  however, it isn't a real blocker
 
  regards,
  gerhard
 
 
 
  2013/3/25 John D. Ament john.d.am...@gmail.com
 
   All

Re: DISCUSS DeltaSpike-324

2013-03-25 Thread John D. Ament
Agreed, getting a roadmap will help everyone.  Users can know when they can
move a feature from CODI or Seam3 to DS.  Committers can know which issues
have top priority in a release and know when to work on it.

RE getting more people, I've been trying to spend more time on this.

John


On Mon, Mar 25, 2013 at 10:07 AM, Cody Lerum cody.le...@gmail.com wrote:

 +1
 On Mar 25, 2013 8:04 AM, Nicklas Karlsson nicka...@gmail.com wrote:

  I'm currently in the process of porting an application from Seam3 to
  DeltaSpike, with a clear roadmap I might be able to spend some work hours
  in getting stuff forward.
 
 
  On Mon, Mar 25, 2013 at 3:58 PM, Pete Muir pm...@redhat.com wrote:
 
   Hi all,
  
   At the moment it's really hard for Red Hat to fund more people to work
 on
   DeltaSpike. Without a clear roadmap, and a regular release schedule
 (e.g.
   time boxed) it's really hard for us to justify more people for
 DeltaSpike
   as we can't see how many people we should offer to get to the features
  our
   customers need, nor can we see when those features will be available
 for
   customers to start using.
  
   Last time we asked to agree on a roadmap, this group decided it wasn't
   something that it wanted to do. If we are now able to agree on a
 roadmap
   with some sort of regular release schedule (even just having approx
 dates
   for a release is good enough) then I can see how I can reprioritise our
   current work, and get some more help for DeltaSpike, and hopefully get
 us
   closer to 1.0, which is really what I think we are all after (I'm not
  sure
   if I will succeed, but right now it's not really worth me even trying).
  
   Pete
  
   On 24 Mar 2013, at 18:33, Romain Manni-Bucau rmannibu...@gmail.com
   wrote:
  
I did a JUG this week with a part on DS and was the main question
 asked
with those words when will it be usable?...kind of sad. Releasing
  even
   in
alpha/beta is better IMO.
Le 24 mars 2013 19:29, Jason Porter lightguard...@gmail.com a
  écrit
   :
   
+1 glad I'm not the only one asking for a roadmap now.
—
Sent from Mailbox for iPhone
   
On Sun, Mar 24, 2013 at 11:54 AM, Romain Manni-Bucau
rmannibu...@gmail.com wrote:
   
Do we already have a roadmap? I think we should define one by
  iteration
(+handle a backlog if we want).
I can help on cdi query part if needed (jsf is still a bit too new
  for
me).
Le 24 mars 2013 18:49, Gerhard Petracek 
  gerhard.petra...@gmail.com
   a
écrit :
hi john,
   
we can't keep it currently (i'm also unhappy about it), because if
   only
2-3
people help on a regular basis [1], you have to wait until they
  have
time.
it isn't only about unassigned issues. e.g. not that many help
 with
writing
tests and examples, writing/reviewing javadoc and documentation.
   
even the graduation process takes (very) long.
that might be a big blocker for some users.
at least codi had several users way before v1 (and for sure even
  more
after
v1).
however, we would lose more users, if we release v1 which isn't
  ready.
   
imo our goal for v1 should be at least everything (which we
 know
already) we need for improving the java-ee web-profile as well as
 a
stable
api and spi.
   
regards,
gerhard
   
[1] https://github.com/apache/incubator-deltaspike/contributors
   
   
   
2013/3/24 Romain Manni-Bucau rmannibu...@gmail.com
   
I get you and think we agree behund words. My main issue is our
 0.4
   is
not
ready to be released and still doesnt contain what users are
  waiting
for...
   
When i spoke about  1.0 just understand when last release answer
basic
needs
Le 24 mars 2013 16:49, John D. Ament john.d.am...@gmail.com
 a
écrit
:
   
Romain,
   
I'm not sure what to tell you.  One of our founding statements
 was
release
early and often.  I'm not sure why we haven't stuck to that.
Personally, I
think we have failed to do that.  We probably have too many
  features
in a
single release/ not much release planning/attempt to release
everything
as
one big release rather than more modular in nature.  Those are
  just
thoughts.
   
As I already stated, I don't want this in 0.4.  But I don't
 think
it's
appropriate to stick this in after 1.0, who knows when that will
be.  I
would love to see this in 0.5, already have prototypes working.
   My
biggest
issue, as I was trying to raise in the other thread, is that
 when
people
look at the issue list out there, generally the candidates to
 work
on
are
the unassigned issues.  If 80% of what we have out there is
assigned,
then
it's assumed someone's work on it.  If it's assigned to someone
  and
they're
not working on it, that's probably an issue that needs to be
addressed.
As
far as I can tell, of the 10

[jira] [Updated] (DELTASPIKE-289) implement WindowContext

2013-03-25 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament updated DELTASPIKE-289:
-

Fix Version/s: 0.4-incubating

 implement WindowContext
 ---

 Key: DELTASPIKE-289
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-289
 Project: DeltaSpike
  Issue Type: New Feature
  Components: Core, JSF-Module
Reporter: Mark Struberg
Assignee: Mark Struberg
 Fix For: 0.4-incubating


 Introduce a way to manage different beans depending on a 'window' or browser 
 tab notion.
 A WindowContext stores all the information for a single 'window' or browser 
 tab. The WindowContextManager keeps all open WindowContexts (for a session) 
 and allows to set or determine the one which got activated for the current 
 Thread.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Heading towards a 0.4 release

2013-03-25 Thread John D. Ament
All,

Based on the flurry of threads, I wanted to help get things started to move
towards a 0.4 release.  I created the filter at [1] to show our current
progress.

We currently have 50 issues fixed in 0.4, with 27 unresolved for the
release.  Some of these issues stick out, with me thinking that we've
actually completed them but perhaps need some finalization (note: I'll use
the abbreviation DS for the DELTASPIKE key in JIRA which is TL;DR)

DS-306 - I see examples.  Do we need more?
DS-60 - I believe we have started integrating CDI Query.  Should this have
spawned child tasks?
DS-113 - Gerhard took the reigns on this one and apparently it works just
like the Seam3 version.  Can this be closed?


Some low hanging fruit:

DS-263 - I was actually looking for something like this as well.  I've been
playing with JBoss modules a lot and think having a binary release would
help add DS as a JBoss Module.  If this isn't complete, do we need it in
0.4?

DS-278 - If not done, seems easy enough to add.

DS-288 - Seems like another needed feature, but wasn't too difficult in
either CODI or Seam3.

DS-289 - Ironically, this one isn't even scheduled for 0.4 but is a blocker
for the release.  I'll update it as such.

If you have something in the list below that shouldn't be (e.g. it's not
needed for 0.4) we should get it rescheduled.  Since previously only 289
was declared needed for 0.4 we should be looking at everything else.

John

[1]: https://issues.apache.org/jira/issues/?filter=12323788


[jira] [Created] (DELTASPIKE-328) Create ClientWindow API

2013-03-25 Thread John D. Ament (JIRA)
John D. Ament created DELTASPIKE-328:


 Summary: Create ClientWindow API
 Key: DELTASPIKE-328
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-328
 Project: DeltaSpike
  Issue Type: Sub-task
Reporter: John D. Ament
 Fix For: 0.4-incubating


To mirror JSF 2.2 feature, need to create a ClientWindow API.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Created] (DELTASPIKE-329) Create a WindowContextManager

2013-03-25 Thread John D. Ament (JIRA)
John D. Ament created DELTASPIKE-329:


 Summary: Create a WindowContextManager
 Key: DELTASPIKE-329
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-329
 Project: DeltaSpike
  Issue Type: Sub-task
Reporter: John D. Ament
 Fix For: 0.4-incubating


Need to add a WindowContextManager to handle all of the client windows.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Created] (DELTASPIKE-330) Create a new WindowScope to represent beans that are bound to a browser window

2013-03-25 Thread John D. Ament (JIRA)
John D. Ament created DELTASPIKE-330:


 Summary: Create a new WindowScope to represent beans that are 
bound to a browser window
 Key: DELTASPIKE-330
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-330
 Project: DeltaSpike
  Issue Type: Sub-task
Reporter: John D. Ament
 Fix For: 0.4-incubating


Need to add a WindowScope to bind beans to a window context/browser window.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: DeltaSpike Roadmap

2013-03-25 Thread John D. Ament
I believe all of the major JSF component libraries support some type of
form validation using BV.


On Mon, Mar 25, 2013 at 12:19 PM, Thomas Andraschko 
andraschko.tho...@gmail.com wrote:

 Any news about s:validateForm?
 As i said, it's great feature of seam3 and would perfectly fit DS (IMO).

 I could also add it to DS if no one have enough time... :)

 2012/12/17 Gerhard Petracek gerhard.petra...@gmail.com

  there is a reason why it is just an add-on ;)
  and yes, if you would do it with the jsf2-api, it would be a bit easier.
  but you can use this add-on also for jsf 1.x and some users who don't
 like
  to use seam are happy with it.
  however, i just mentioned it as an example to show that cdi isn't needed
 to
  implement such a functionality.
 
  regards,
  gerhard
 
 
 
  2012/12/17 Lincoln Baxter, III lincolnbax...@gmail.com
 
   Also, note that the use-cases for s:validateForm and the latter
 example
   are different in their usage. IMO, s:validateForm is much more
   declarative and simple than the example provided from extval.
  
   Just write a validator and attach it like you would normal to a
 component
   in the view, wherever you want to use it. You can also re-use
   form-validators using this method, instead of using some (in my
 opinion)
   strange view-filtering logic in the FormValidator annotation.
  
   s:validateForm is/was one of the most well recieved feature of Seam
   Faces, and I think it deserves serious consideration. Can you do form
   validation other ways? absolutely, but this way is pretty compelling
  based
   on the feedback we got. It also ties in very normally with the way in
  which
   JSF handles validation and components, which is not something that I
 can
   speak about with regard to extval, but I can say that seam faces does
  this
   nicely.
  
   ~Lincoln
  
  
   On Mon, Dec 17, 2012 at 4:37 PM, Thomas Andraschko 
   andraschko.tho...@gmail.com wrote:
  
Please do not mix both :)
We had the discussion about commons bv constrains. s:validateForm is
completely different compared to bv constraints.
s:validateForm does not fit the project for common bv constraints.
   
2012/12/17 Karl Kildén karl.kil...@gmail.com
   
 Looks really nice I understand finally :-)

 In retrospect I don't know why I didn't check the docs myself,
  probably
 because I read most of the discussion on the phone to begin with.

 I then agree with the many suggestions regarding doing it as a
  parallel
 project. Perhaps that module could have a  sub module for CDI users
   that
 included producers and such.

 Best regards / Karl




 2012/12/17 Gerhard Petracek gerhard.petra...@gmail.com

  hi karl,
 
  it's implemented via a producer - see [1].
  but you don't really need cdi for it - see e.g. [2].
 
  regards,
  gerhard
 
  [1] http://s.apache.org/ury
  [2]
 
 

   
  
 
 http://os890.blogspot.co.at/2010/06/multi-field-form-validation-with-jsr.html
 
 
 
  2012/12/17 Thomas Andraschko andraschko.tho...@gmail.com
 
   As far as i understand, validateAll just validates all
 components
   but
 you
   can't use custom logic.
  
   Checkout the seam docu here:
  
  
 

   
  
 
 http://docs.jboss.org/seam/3/faces/latest/reference/en-US/html/components.html
  
   2012/12/17 Karl Kildén karl.kil...@gmail.com
  
Hrmm still not sure I understand. First off didn't Pete just
  say
   it
 was
just a JSF-validator? It also sounds and reads just like
validateAll
  from
omnifaces?
   
What is lacking that you would like to see solved by CDI? And
  is
it a
natural fit for CDI extensions rather then BV / JSF
 extensions?
   
Best regards / Karl
   
   
   
2012/12/17 Thomas Andraschko andraschko.tho...@gmail.com
   
 Hi,

 they are nice but i can't see a replacement for
  s:validateForm.
 IMO s:validateForm is really a simple solution for
  cross-field
validation,
 which is CDI based.

 Regards,
 THomas

 2012/12/17 Karl Kildén karl.kil...@gmail.com

  Well these are the validators from omnifaces as per my
   previous
  recommendation:
 
 
 - RequiredCheckboxValidator
 

   
  
 

   
  
 
 https://showcase-omnifaces.rhcloud.com/showcase/validators/RequiredCheckboxValidator.xhtml
  
 - validateAll
 

   
  
 

   
  
 
 https://showcase-omnifaces.rhcloud.com/showcase/validators/validateAll.xhtml
  
 - validateAllOrNone
 

   
  
 

   
  
 
 https://showcase-omnifaces.rhcloud.com/showcase/validators/validateAllOrNone.xhtml
  

Re: DeltaSpike Roadmap

2013-03-25 Thread John D. Ament
+1 Mark

That's what I was thinking of. (jsf runtimes, not component libraries).


On Mon, Mar 25, 2013 at 5:20 PM, Mark Struberg strub...@yahoo.de wrote:

 with JSF-2 this is now almost obsolete, isn't?
 JSF-2 has f:validateBean which works perfectly fine.

 LieGrue,
 strub




 - Original Message -
  From: Thomas Andraschko andraschko.tho...@gmail.com
  To: deltaspike-dev@incubator.apache.org
  Cc:
  Sent: Monday, March 25, 2013 5:31 PM
  Subject: Re: DeltaSpike Roadmap
 
  Are you sure? PrimeFaces does not have one. I only know richfaces'
  graphValidator and it's IMO not that easy and cool as s:validateForm.
 
  2013/3/25 John D. Ament john.d.am...@gmail.com
 
   I believe all of the major JSF component libraries support some type of
   form validation using BV.
 
 
   On Mon, Mar 25, 2013 at 12:19 PM, Thomas Andraschko 
   andraschko.tho...@gmail.com wrote:
 
Any news about s:validateForm?
As i said, it's great feature of seam3 and would perfectly fit DS
  (IMO).
   
I could also add it to DS if no one have enough time... :)
   
2012/12/17 Gerhard Petracek gerhard.petra...@gmail.com
   
 there is a reason why it is just an add-on ;)
 and yes, if you would do it with the jsf2-api, it would be a bit
   easier.
 but you can use this add-on also for jsf 1.x and some users who
  don't
like
 to use seam are happy with it.
 however, i just mentioned it as an example to show that cdi
  isn't
   needed
to
 implement such a functionality.

 regards,
 gerhard



 2012/12/17 Lincoln Baxter, III lincolnbax...@gmail.com

  Also, note that the use-cases for s:validateForm and
  the latter
example
  are different in their usage. IMO, s:validateForm is
  much more
  declarative and simple than the example provided from
  extval.
 
  Just write a validator and attach it like you would normal
  to a
component
  in the view, wherever you want to use it. You can also
  re-use
  form-validators using this method, instead of using some (in
  my
opinion)
  strange view-filtering logic in the FormValidator
  annotation.
 
  s:validateForm is/was one of the most well recieved
  feature of Seam
  Faces, and I think it deserves serious consideration. Can
  you do form
  validation other ways? absolutely, but this way is pretty
  compelling
 based
  on the feedback we got. It also ties in very normally with
  the way in
 which
  JSF handles validation and components, which is not
  something that I
can
  speak about with regard to extval, but I can say that seam
  faces does
 this
  nicely.
 
  ~Lincoln
 
 
  On Mon, Dec 17, 2012 at 4:37 PM, Thomas Andraschko 
  andraschko.tho...@gmail.com wrote:
 
   Please do not mix both :)
   We had the discussion about commons bv constrains.
  s:validateForm
   is
   completely different compared to bv constraints.
   s:validateForm does not fit the project for common bv
  constraints.
  
   2012/12/17 Karl Kildén karl.kil...@gmail.com
  
Looks really nice I understand finally :-)
   
In retrospect I don't know why I didn't
  check the docs myself,
 probably
because I read most of the discussion on the phone
  to begin with.
   
I then agree with the many suggestions regarding
  doing it as a
 parallel
project. Perhaps that module could have a  sub
  module for CDI
   users
  that
included producers and such.
   
Best regards / Karl
   
   
   
   
2012/12/17 Gerhard Petracek
  gerhard.petra...@gmail.com
   
 hi karl,

 it's implemented via a producer - see
  [1].
 but you don't really need cdi for it -
  see e.g. [2].

 regards,
 gerhard

 [1] http://s.apache.org/ury
 [2]


   
  
 

   
 
 
 http://os890.blogspot.co.at/2010/06/multi-field-form-validation-with-jsr.html



 2012/12/17 Thomas Andraschko
  andraschko.tho...@gmail.com

  As far as i understand, validateAll just
  validates all
components
  but
you
  can't use custom logic.
 
  Checkout the seam docu here:
 
 

   
  
 

   
 
 
 http://docs.jboss.org/seam/3/faces/latest/reference/en-US/html/components.html
 
  2012/12/17 Karl Kildén
  karl.kil...@gmail.com
 
   Hrmm still not sure I understand.
  First off didn't Pete
   just
 say
  it
was
   just a JSF-validator? It also
  sounds and reads just like
   validateAll
 from
   omnifaces?
  
   What is lacking that you would like
  to see solved by CDI?
   And
 is
   it a
   natural fit for CDI

Re: [VOTE] Recommending DeltaSpike for Graduation to an Apache Top Level Project

2013-03-25 Thread John D. Ament
Sorry, but -1

In my opinion, there are clearly disconnects between the former CODI team
and the former Seam3 team that are showing to be true blockers to being a
cohesive community.  There has been no real merger of the two communities
to form DeltaSpike.  DeltaSpike has failed to release early and often.

I believe for this podling to graduate, we need to become a single team and
work on becoming that single team.

John


On Mon, Mar 25, 2013 at 5:35 PM, Mark Struberg strub...@yahoo.de wrote:

 Lords and Ladies.

 Please find attached the PROPOSAL for graduating DeltaSpike out of the
 Incubator and establishing it as TLP.

 [+1] yea, all fine and I like it
 [+0] no blocker, but I don't care
 [-1] nah there's a blocker in there. Abort and re-roll because of ${reason}

 The internal VOTE is open for 72h. After that we gonna tally and forward
 the VOTE to the IPMC to VOTE about the recommendation. Once this is done,
 the board might consider our wish in the upcoming board meeting.

 LieGrue,
 strub


 ---

 Proposed Board Resolution Report
 X. Establish the Apache DeltaSpike Project

 WHEREAS, the Board of Directors deems it to be in the best
 interests of the Foundation and consistent with the
 Foundation's purpose to establish a Project Management
 Committee charged with the creation and maintenance of
 open-source software related to creating a set
 of portable CDI (JSR-299) Extensions
 for distribution at no charge to the public.

 NOW, THEREFORE, BE IT RESOLVED, that a Project Management
 Committee (PMC), to be known as the Apache DeltaSpike Project,
 be and hereby is established pursuant to Bylaws of the
 Foundation; and be it further

 RESOLVED, that the Apache DeltaSpike Project be and hereby is
 responsible for the creation and maintenance of open-source
 software related to creating a set of portable CDI Extensions;
 and be it further

 RESOLVED, that the office of Vice President, Apache DeltaSpike be
 and hereby is created, the person holding such office to
 serve at the direction of the Board of Directors as the chair
 of the Apache DeltaSpike Project, and to have primary responsibility
 for management of the projects within the scope of
 responsibility of the Apache DeltaSpike Project; and be it further

 RESOLVED, that the persons listed immediately below be and
 hereby are appointed to serve as the initial members of the
 Apache DeltaSpike Project:

 Gerhard Petracek gpetracek at apache.org
 Mark Struberg struberg at apache.org
 Pete Muir pmuir at redhat.com
 Jason Porter lightguard.jp at gmail.com
 Shane Bryzak sbryzak at gmail.com
 Rudy de Busscher rdebusscher at apache.org
 Christian Kaltepoth christian at kaltepoth.de
 Arne Limburg arne.limburg at openknowledge.de
 Charles Moulliard cmoulliard at gmail.com
 Cody Lerum cody.lerum at gmail.com
 Romain Mannu-Buccau rmannibucau at gmail.com
 Matthew Jason Benson mbenson at apache.org
 Jim Jagielski jim at apache.org
 David Blevins dblevins at apache.org
 Ken Finnigan ken at kenfinnigan.me
 John D. Ament johndament at apache.org

 NOW, THEREFORE, BE IT FURTHER RESOLVED, that Mark Struberg
 be appointed to the office of Vice President, Apache DeltaSpike, to
 serve in accordance with and subject to the direction of the
 Board of Directors and the Bylaws of the Foundation until
 death, resignation, retirement, removal or disqualification,
 or until a successor is appointed; and be it further

 RESOLVED, that the initial Apache DeltaSpike PMC be and hereby is
 tasked with the creation of a set of bylaws intended to
 encourage open development and increased participation in the
 Apache DeltaSpike Project; and be it further

 RESOLVED, that the Apache DeltaSpike Project be and hereby
 is tasked with the migration and rationalization of the Apache
 Incubator DeltaSpike podling; and be it further

 RESOLVED, that all responsibilities pertaining to the Apache
 Incubator DeltaSpike podling encumbered upon the Apache Incubator
 Project are hereafter discharged.



 https://cwiki.apache.org/confluence/display/DeltaSpike/Graduation+Proposal



Re: DISCUSS DeltaSpike-324

2013-03-25 Thread John D. Ament
Mark,

Agreed about you and Gerhard.  In the first 10 months DS was in incubation,
I was unfortunately working on a project 70-80 hrs/week.  With a 1 month
overlap, then the last 5 months did something even sillier.  Since then
though I've been trying to play catch up with where DS ended up (hence the
surge in emails).  This is also why I took your WindowContext issue and
broke it down further, smaller digestable chunks.  Hopefully this will help
get it implemented faster.

John


On Mon, Mar 25, 2013 at 6:09 PM, Mark Struberg strub...@yahoo.de wrote:

 well, a roadmap always depends on how much one can spend.
 The roadmap for 0.4 originally have been JSF support. This is still the
 case.
 But with only Gerhard and me doing 80% of the commits it's obvious that we
 are not that fast.

 So please just help with the features as well!

 @Pete: it's pretty easy: 0.4 basic JSF support and basic JPA support, 0.5
 even more JSF support and JPA support.

 And then 1.0 is just around the corner.

 LieGrue,
 strub




 - Original Message -
  From: Cody Lerum cody.le...@gmail.com
  To: deltaspike-dev@incubator.apache.org
  Cc:
  Sent: Monday, March 25, 2013 3:07 PM
  Subject: Re: DISCUSS DeltaSpike-324
 
  +1
  On Mar 25, 2013 8:04 AM, Nicklas Karlsson nicka...@gmail.com
  wrote:
 
   I'm currently in the process of porting an application from Seam3 to
   DeltaSpike, with a clear roadmap I might be able to spend some work
 hours
   in getting stuff forward.
 
 
   On Mon, Mar 25, 2013 at 3:58 PM, Pete Muir pm...@redhat.com wrote:
 
Hi all,
   
At the moment it's really hard for Red Hat to fund more people to
  work on
DeltaSpike. Without a clear roadmap, and a regular release schedule
  (e.g.
time boxed) it's really hard for us to justify more people for
  DeltaSpike
as we can't see how many people we should offer to get to the
  features
   our
customers need, nor can we see when those features will be available
  for
customers to start using.
   
Last time we asked to agree on a roadmap, this group decided it
  wasn't
something that it wanted to do. If we are now able to agree on a
  roadmap
with some sort of regular release schedule (even just having approx
  dates
for a release is good enough) then I can see how I can reprioritise
  our
current work, and get some more help for DeltaSpike, and hopefully
 get
  us
closer to 1.0, which is really what I think we are all after (I'm
  not
   sure
if I will succeed, but right now it's not really worth me even
  trying).
   
Pete
   
On 24 Mar 2013, at 18:33, Romain Manni-Bucau
  rmannibu...@gmail.com
wrote:
   
 I did a JUG this week with a part on DS and was the main question
  asked
 with those words when will it be usable?...kind of
  sad. Releasing
   even
in
 alpha/beta is better IMO.
 Le 24 mars 2013 19:29, Jason Porter
  lightguard...@gmail.com a
   écrit
:

 +1 glad I'm not the only one asking for a roadmap now.
 —
 Sent from Mailbox for iPhone

 On Sun, Mar 24, 2013 at 11:54 AM, Romain Manni-Bucau
 rmannibu...@gmail.com wrote:

 Do we already have a roadmap? I think we should define
  one by
   iteration
 (+handle a backlog if we want).
 I can help on cdi query part if needed (jsf is still a
  bit too new
   for
 me).
 Le 24 mars 2013 18:49, Gerhard Petracek 
   gerhard.petra...@gmail.com
a
 écrit :
 hi john,

 we can't keep it currently (i'm also unhappy
  about it), because if
only
 2-3
 people help on a regular basis [1], you have
  to wait until they
   have
 time.
 it isn't only about unassigned issues. e.g. not
  that many help with
 writing
 tests and examples, writing/reviewing javadoc and
  documentation.

 even the graduation process takes (very) long.
 that might be a big blocker for some users.
 at least codi had several users way before v1 (and
  for sure even
   more
 after
 v1).
 however, we would lose more users, if we release v1
  which isn't
   ready.

 imo our goal for v1 should be at
  least everything (which we know
 already) we need for improving the java-ee
  web-profile as well as a
 stable
 api and spi.

 regards,
 gerhard

 [1]
  https://github.com/apache/incubator-deltaspike/contributors



 2013/3/24 Romain Manni-Bucau
  rmannibu...@gmail.com

 I get you and think we agree behund words. My
  main issue is our 0.4
is
 not
 ready to be released and still doesnt contain
  what users are
   waiting
 for...

 When i spoke about  1.0 just understand when
  last release answer
 basic
 needs
 Le 24 mars 2013 16:49, John D. Ament
  john.d.am...@gmail.com a
 écrit
 :

 Romain,

 I'm not sure what to tell you.  One of
  our founding statements was
 release
 early and often.  I'm not sure why

Re: [VOTE] Recommending DeltaSpike for Graduation to an Apache Top Level Project

2013-03-25 Thread John D. Ament
Mark,

My vote isn't a -1 to DeltaSpike, she's just not ready to blossom yet.
 Maybe another month or two :-)

I will point out an issue which I don't think we've resolved yet per the
documentation on incubator.a.o

http://incubator.apache.org/guides/graduation.html#requirements

- We have not established whether DS is a suitable name; e.g.
https://issues.apache.org/jira/issues/?jql=project%20%3D%20PODLINGNAMESEARCH
has
no entry for DeltaSpike.  Also we have not forwarded the vote thread to
general@i.a.o to let them know we're thinking about it.

However, most of my comments are around this section of graduation:
http://incubator.apache.org/guides/graduation.html#community - I don't
believe we've done this too well.  There are only three developers I see on
the  list that were not on
http://wiki.apache.org/incubator/DeltaSpikeProposal - In fact we now have
16 vs the original 21 proposed (technically does that mean we shrank?)

Three releases is good.  I think I even saw a podling attempt to graduate
that only released their parent POM a couple times :-)

Since this is procedural, I'm assuming we're following majority, per
http://www.apache.org/foundation/voting.html .  I don't believe we need
100% consensus in the matter then, correct?

John


On Mon, Mar 25, 2013 at 5:57 PM, Mark Struberg strub...@yahoo.de wrote:



 Hi John!

 I'm not sure I understand what you mean.

 The DeltaSpike project now runs for 1 year. The list of initial committers
 are all the people who contributed to it in one form or the other. Means
 code drops, documentation, etc. There are exactly 2 people from the CODI
 Team in DeltaSpike. These are Gerhard and me. The rest is from either the
 Seam team or from other teams around the whole CDI area. In my opinion the
 community works together pretty well. Of course, I would be happy if there
 are more commits and contributions from the other folks. There is a pretty
 stable set of 5+ regular committers.


 We also have had 3 releases so far. We just had a bit of a break because I
 was very busy in my dayjob and Gerhard was busy too. And we are short
 before our 4th release. I'd say this is quite ok. (Even if I'd be happier
 if we would improve our release rate).


 LieGrue,
 strub

 
  From: John D. Ament john.d.am...@gmail.com
 To: deltaspike-us...@incubator.apache.org; Mark Struberg 
 strub...@yahoo.de
 Cc: deltaspike deltaspike-dev@incubator.apache.org
 Sent: Monday, March 25, 2013 10:45 PM
 Subject: Re: [VOTE] Recommending DeltaSpike for Graduation to an Apache
 Top Level Project
 
 
 Sorry, but -1
 
 
 In my opinion, there are clearly disconnects between the former CODI team
 and the former Seam3 team that are showing to be true blockers to being a
 cohesive community.  There has been no real merger of the two communities
 to form DeltaSpike.  DeltaSpike has failed to release early and often.
 
 
 I believe for this podling to graduate, we need to become a single team
 and work on becoming that single team.
 
 
 John
 
 
 
 On Mon, Mar 25, 2013 at 5:35 PM, Mark Struberg strub...@yahoo.de wrote:
 
 Lords and Ladies.
 
 Please find attached the PROPOSAL for graduating DeltaSpike out of the
 Incubator and establishing it as TLP.
 
 [+1] yea, all fine and I like it
 [+0] no blocker, but I don't care
 [-1] nah there's a blocker in there. Abort and re-roll because of
 ${reason}
 
 The internal VOTE is open for 72h. After that we gonna tally and forward
 the VOTE to the IPMC to VOTE about the recommendation. Once this is done,
 the board might consider our wish in the upcoming board meeting.
 
 LieGrue,
 strub
 
 
 ---
 
 Proposed Board Resolution Report
 X. Establish the Apache DeltaSpike Project
 
 WHEREAS, the Board of Directors deems it to be in the best
 interests of the Foundation and consistent with the
 Foundation's purpose to establish a Project Management
 Committee charged with the creation and maintenance of
 open-source software related to creating a set
 of portable CDI (JSR-299) Extensions
 for distribution at no charge to the public.
 
 NOW, THEREFORE, BE IT RESOLVED, that a Project Management
 Committee (PMC), to be known as the Apache DeltaSpike Project,
 be and hereby is established pursuant to Bylaws of the
 Foundation; and be it further
 
 RESOLVED, that the Apache DeltaSpike Project be and hereby is
 responsible for the creation and maintenance of open-source
 software related to creating a set of portable CDI Extensions;
 and be it further
 
 RESOLVED, that the office of Vice President, Apache DeltaSpike be
 and hereby is created, the person holding such office to
 serve at the direction of the Board of Directors as the chair
 of the Apache DeltaSpike Project, and to have primary responsibility
 for management of the projects within the scope of
 responsibility of the Apache DeltaSpike Project; and be it further
 
 RESOLVED, that the persons listed immediately below be and
 hereby are appointed to serve as the initial

[jira] [Updated] (DELTASPIKE-278) add 'category' to Message API

2013-03-25 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament updated DELTASPIKE-278:
-

Fix Version/s: (was: 0.4-incubating)
   0.5-incubating

 add 'category' to Message API
 -

 Key: DELTASPIKE-278
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-278
 Project: DeltaSpike
  Issue Type: New Feature
  Components: Core
Affects Versions: 0.3-incubating
Reporter: Mark Struberg
Assignee: Mark Struberg
 Fix For: 0.5-incubating


 Sometimes we need different versions of a rendered message. This could be a 
 shortText vs a longText for example. Or in JSF it's the summary vs detail 
 message.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: DISCUSS DeltaSpike-324

2013-03-24 Thread John D. Ament
Romain,

My only issue with this is that I don't think we've mapped out what the
common use cases are (at least based on the email I sent out).  If we're
favoring JSF, we're neglecting the growing population of REST APIs for rich
javascript clients (from UI).


On Sat, Mar 23, 2013 at 6:04 PM, Romain Manni-Bucau
rmannibu...@gmail.comwrote:

 yes but JMS is clearly not the most used

 can't we push it for the  1.0?

 users really wait the first 1.0 to use DS and adding JMS now simply looks
 like forgetting more common use cases

 *Romain Manni-Bucau*
 *Twitter: @rmannibucau https://twitter.com/rmannibucau*
 *Blog: **http://rmannibucau.wordpress.com/*
 http://rmannibucau.wordpress.com/
 *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
 *Github: https://github.com/rmannibucau*



 2013/3/23 Gerhard Petracek gerhard.petra...@gmail.com

  hi @ all,
 
  imo it's more a basic question.
  if we do it for jms 2, we also have to (/should) do it for other
  specifications like bv 1.1
 
  regards,
  gerhard
 
 
 
  2013/3/21 Romain Manni-Bucau rmannibu...@gmail.com
 
   Ill rephrase a bit. I m rather -0 about it and -1 since a lot of others
   stuff are needed before.
   Le 21 mars 2013 22:50, Arne Limburg arne.limb...@openknowledge.de
 a
   écrit :
  
We should find out if one can simply use a JMS 2.0 implementation and
  put
it into an deployment. If that will be possible, we would not need to
implement it.
   
Cheers,
Arne
   
Am 21.03.13 22:34 schrieb Mark Struberg unter strub...@yahoo.de:
   
I tend to lean towards +1 simply because EE-7 containers will take
another year (or 2) to become used in projects.

I just think we should first close a few tasks before we open new
  ones.

LieGrue,
strub




- Original Message -
 From: John D. Ament john.d.am...@gmail.com
 To: deltaspike-dev@incubator.apache.org
 Cc:
 Sent: Thursday, March 21, 2013 6:09 PM
 Subject: Re: DISCUSS DeltaSpike-324

 Romain,

 Generally, I'm mixed about these.  However I think there's some
  pretty
 good
 benefits.  For an application developer, maybe none of the other
  JMS 2
 features are useful to you (the bulk of the feature went into CDI
support,
 app server integration, and documentation clean up).  You don't
 want
   to
 move off of TomEE 1.5.x to TomEE Y (which could support Java EE 7
  Web
 Profile) due to downtime in your application.  There's also lead
  time
 required to impelement JMS 2/Java EE 7 features in your
 application
server,
 but perhaps you don't want to or need to wait for the whole thing.

 This solution would be DS oriented, I believe requires
   TransactionScoped
 (which could require the transaction classes be moved away from
 persistence) to operate properly.

 There's also the case of using DeltaSpike as your CDI-JMS
implementation if
 you were a JMS implementer.  I haven't reached out to communities
  such
as
 Apache ActiveMQ or HornetQ to see input here; I know the current
GlassFish
 implementation calls their lower level directly (and not by
 wrapping
   the
 JMS APIs).

 John


 On Thu, Mar 21, 2013 at 12:30 PM, Romain Manni-Bucau
 rmannibu...@gmail.comwrote:

  Hi

  i'm globally -1 for redoing something which will exist somewhere
   else
  (basically if somebody wants JavaEE just let him use JavaEE, CDI
 doesn't
  need the full stack IMO). Was my point for JPA, more again on
 JMS.

  It is great to add feature before the specs not once it is (or
   almost)
  done.

  Maybe i didnt fully get what you want to do so maybe share some
pastebin to
  be sure we speak about the same stuff.

  *Romain Manni-Bucau*
  *Twitter: @rmannibucau https://twitter.com/rmannibucau*
  *Blog: **http://rmannibucau.wordpress.com/*
  http://rmannibucau.wordpress.com/
  *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
  *Github: https://github.com/rmannibucau*



  2013/3/21 John D. Ament john.d.am...@gmail.com

   All,
  
   I'd like to open the floor to discussion for porting JMS 2
 features to
   DeltaSpike, specifically the features that added some CDI
capabilities
 to
   JMS.
  
   Details of my rough proposal are here:
   https://issues.apache.org/jira/browse/DELTASPIKE-324
  
   Importing these features start to deprecate functionality in
  Seam
JMS
   (ideal).  These features would give access to an API very
  similar
to
 the
   JMS2 API around CDI injection.
  
   Some limitations:
  
   - This would not be a JMS implementation, simply an inspired
interface
  for
   use in Java EE 6/JMS 1.x that leveraged CDI injection based on
  the
 rules
   for CDI injection of these interfaces

Re: DISCUSS DeltaSpike-324

2013-03-24 Thread John D. Ament
Romain,

I'm not sure what to tell you.  One of our founding statements was release
early and often.  I'm not sure why we haven't stuck to that.  Personally, I
think we have failed to do that.  We probably have too many features in a
single release/ not much release planning/attempt to release everything as
one big release rather than more modular in nature.  Those are just
thoughts.

As I already stated, I don't want this in 0.4.  But I don't think it's
appropriate to stick this in after 1.0, who knows when that will be.  I
would love to see this in 0.5, already have prototypes working.  My biggest
issue, as I was trying to raise in the other thread, is that when people
look at the issue list out there, generally the candidates to work on are
the unassigned issues.  If 80% of what we have out there is assigned, then
it's assumed someone's work on it.  If it's assigned to someone and they're
not working on it, that's probably an issue that needs to be addressed.  As
far as I can tell, of the 10 unassigned issues out there, none of them are
comprehensible enough (other than the one I already worked on) to be worked
through.  So I'm not sure, maybe it's an issue of perception, but I don't
think we have a large pile of open work for future releases.

John


On Sun, Mar 24, 2013 at 11:19 AM, Romain Manni-Bucau
rmannibu...@gmail.comwrote:

 Sure but we cant start everything, finishing nothing...our rare releases
 are already a pain for users.

 We need jsf + if possible cdi query for 0.4 IMO then i agree rest helpers
 are a must have (some tools around jaxrs client part can be great) etc...
 Le 24 mars 2013 16:13, John D. Ament john.d.am...@gmail.com a écrit :

  Romain,
 
  My only issue with this is that I don't think we've mapped out what the
  common use cases are (at least based on the email I sent out).  If we're
  favoring JSF, we're neglecting the growing population of REST APIs for
 rich
  javascript clients (from UI).
 
 
  On Sat, Mar 23, 2013 at 6:04 PM, Romain Manni-Bucau
  rmannibu...@gmail.comwrote:
 
   yes but JMS is clearly not the most used
  
   can't we push it for the  1.0?
  
   users really wait the first 1.0 to use DS and adding JMS now simply
 looks
   like forgetting more common use cases
  
   *Romain Manni-Bucau*
   *Twitter: @rmannibucau https://twitter.com/rmannibucau*
   *Blog: **http://rmannibucau.wordpress.com/*
   http://rmannibucau.wordpress.com/
   *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
   *Github: https://github.com/rmannibucau*
  
  
  
   2013/3/23 Gerhard Petracek gerhard.petra...@gmail.com
  
hi @ all,
   
imo it's more a basic question.
if we do it for jms 2, we also have to (/should) do it for other
specifications like bv 1.1
   
regards,
gerhard
   
   
   
2013/3/21 Romain Manni-Bucau rmannibu...@gmail.com
   
 Ill rephrase a bit. I m rather -0 about it and -1 since a lot of
  others
 stuff are needed before.
 Le 21 mars 2013 22:50, Arne Limburg 
 arne.limb...@openknowledge.de
  
   a
 écrit :

  We should find out if one can simply use a JMS 2.0 implementation
  and
put
  it into an deployment. If that will be possible, we would not
 need
  to
  implement it.
 
  Cheers,
  Arne
 
  Am 21.03.13 22:34 schrieb Mark Struberg unter 
 strub...@yahoo.de
  :
 
  I tend to lean towards +1 simply because EE-7 containers will
 take
  another year (or 2) to become used in projects.
  
  I just think we should first close a few tasks before we open
 new
ones.
  
  LieGrue,
  strub
  
  
  
  
  - Original Message -
   From: John D. Ament john.d.am...@gmail.com
   To: deltaspike-dev@incubator.apache.org
   Cc:
   Sent: Thursday, March 21, 2013 6:09 PM
   Subject: Re: DISCUSS DeltaSpike-324
  
   Romain,
  
   Generally, I'm mixed about these.  However I think there's
 some
pretty
   good
   benefits.  For an application developer, maybe none of the
 other
JMS 2
   features are useful to you (the bulk of the feature went into
  CDI
  support,
   app server integration, and documentation clean up).  You
 don't
   want
 to
   move off of TomEE 1.5.x to TomEE Y (which could support Java
 EE
  7
Web
   Profile) due to downtime in your application.  There's also
 lead
time
   required to impelement JMS 2/Java EE 7 features in your
   application
  server,
   but perhaps you don't want to or need to wait for the whole
  thing.
  
   This solution would be DS oriented, I believe requires
 TransactionScoped
   (which could require the transaction classes be moved away
 from
   persistence) to operate properly.
  
   There's also the case of using DeltaSpike as your CDI-JMS
  implementation if
   you were a JMS implementer.  I haven't reached out to
  communities
such
  as
   Apache

[jira] [Resolved] (DELTASPIKE-326) Introduce isScannable to ConfigSource

2013-03-24 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament resolved DELTASPIKE-326.
--

Resolution: Fixed

Committed changes.

 Introduce isScannable to ConfigSource
 -

 Key: DELTASPIKE-326
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-326
 Project: DeltaSpike
  Issue Type: Improvement
Reporter: John D. Ament
Assignee: John D. Ament
 Fix For: 0.4-incubating


 Introduce an isScannable method (possibly an interface that ConfigSource will 
 extend) that will represent whether or not this source is scannable.  A 
 scannable source can have all of its properties listed out.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (DELTASPIKE-273) Provide a way to obtain all property names or map of properties

2013-03-24 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/DELTASPIKE-273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13612347#comment-13612347
 ] 

John D. Ament commented on DELTASPIKE-273:
--

Added isScannable.

 Provide a way to obtain all property names or map of properties
 ---

 Key: DELTASPIKE-273
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-273
 Project: DeltaSpike
  Issue Type: Improvement
  Components: Configuration
Reporter: Łukasz Dywicki
Assignee: John D. Ament
 Fix For: 0.4-incubating

 Attachments: DELTASPIKE-273.patch


 ConfigResolver API provides a way to resolve singular property or multivalued 
 property, however there is lack of method which allows to read all properties 
 discovered from all ConfigSources.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (DELTASPIKE-273) Provide a way to obtain all property names or map of properties

2013-03-24 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament resolved DELTASPIKE-273.
--

Resolution: Fixed

 Provide a way to obtain all property names or map of properties
 ---

 Key: DELTASPIKE-273
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-273
 Project: DeltaSpike
  Issue Type: Improvement
  Components: Configuration
Reporter: Łukasz Dywicki
Assignee: John D. Ament
 Fix For: 0.4-incubating

 Attachments: DELTASPIKE-273.patch


 ConfigResolver API provides a way to resolve singular property or multivalued 
 property, however there is lack of method which allows to read all properties 
 discovered from all ConfigSources.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: Pending items for release

2013-03-23 Thread John D. Ament
Gerhard,

Do you agree w/ Cody's synopsis?  I think mimic is what you're trying to
describe, but threw me off when you said aligned; I assumed you meant be
dependent on.


On Fri, Mar 22, 2013 at 9:16 AM, Gerhard Petracek 
gerhard.petra...@gmail.com wrote:

 hi john,

 no - we will just create our own interface like ClientWindow and provide a
 default implementation.
 (for jsf 2.2+ we just provide an own module with an adapter which delegates
 to javax.faces.lifecycle.ClientWindow.)

 regards,
 gerhard



 2013/3/22 John D. Ament john.d.am...@gmail.com

  I'm not sure I follow.  We're dependent on JEE7 releases to release DS
 0.4?
  I hope we're not really thinking this...
 
 
  On Thu, Mar 21, 2013 at 9:40 PM, Gerhard Petracek 
  gerhard.petra...@gmail.com wrote:
 
   hi john,
  
   no - it will be a new implementation aligned with the new ClientWindow
  api
   (of jsf 2.2).
   afterwards i finish my tickets (which need it) and then we are ready
 for
  a
   release.
   imo the rest is nice to have for v0.4
  
   regards,
   gerhard
  
  
  
   2013/3/22 John D. Ament john.d.am...@gmail.com
  
Gerhard,
   
But currently it's assigned to Mark. So to outsiders, who maybe
 haven't
been playing close court, someone's already handling it.
   
Since CODI has a Window Scope, I'm assuming that it's simply a port
  from
CODI to DS.
   
John
   
   
On Thu, Mar 21, 2013 at 9:21 PM, Gerhard Petracek 
gerhard.petra...@gmail.com wrote:
   
 hi john,

 [1] is the most blocking one we need for v0.4.

 regards,
 gerhard

 [1] https://issues.apache.org/jira/browse/DELTASPIKE-289



 2013/3/22 John D. Ament john.d.am...@gmail.com

  All,
 
  When I look at open issues for DeltaSpike, all I see is under
 [1] ;
 looking
  at this list it's not clear which are ready to be done or which
  need
more
  info.  In addition when I look at [2] we end up with 50 open
  issues.
 
  V 0.3 was released in August 2012.  I'd like to help get DS to a
  0.4
  release.  So please help clarify what issues are in need of help.
 
  John
 
 
 
  [1]
 
 

   
  
 
 https://issues.apache.org/jira/issues/?jql=project%20%3D%20DELTASPIKE%20AND%20resolution%20%3D%20Unresolved%20AND%20assignee%20is%20EMPTY%20ORDER%20BY%20priority%20DESC
 
  [2]
 
 

   
  
 
 https://issues.apache.org/jira/issues/?jql=project%20%3D%20DELTASPIKE%20AND%20resolution%20%3D%20Unresolved%20ORDER%20BY%20priority%20DESC
 

   
  
 



[jira] [Created] (DELTASPIKE-326) Introduce isScannable to ConfigSource

2013-03-23 Thread John D. Ament (JIRA)
John D. Ament created DELTASPIKE-326:


 Summary: Introduce isScannable to ConfigSource
 Key: DELTASPIKE-326
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-326
 Project: DeltaSpike
  Issue Type: Improvement
Reporter: John D. Ament
Assignee: John D. Ament
 Fix For: 0.4-incubating


Introduce an isScannable method (possibly an interface that ConfigSource will 
extend) that will represent whether or not this source is scannable.  A 
scannable source can have all of its properties listed out.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: Pending items for release

2013-03-22 Thread John D. Ament
I'm not sure I follow.  We're dependent on JEE7 releases to release DS 0.4?
I hope we're not really thinking this...


On Thu, Mar 21, 2013 at 9:40 PM, Gerhard Petracek 
gerhard.petra...@gmail.com wrote:

 hi john,

 no - it will be a new implementation aligned with the new ClientWindow api
 (of jsf 2.2).
 afterwards i finish my tickets (which need it) and then we are ready for a
 release.
 imo the rest is nice to have for v0.4

 regards,
 gerhard



 2013/3/22 John D. Ament john.d.am...@gmail.com

  Gerhard,
 
  But currently it's assigned to Mark. So to outsiders, who maybe haven't
  been playing close court, someone's already handling it.
 
  Since CODI has a Window Scope, I'm assuming that it's simply a port from
  CODI to DS.
 
  John
 
 
  On Thu, Mar 21, 2013 at 9:21 PM, Gerhard Petracek 
  gerhard.petra...@gmail.com wrote:
 
   hi john,
  
   [1] is the most blocking one we need for v0.4.
  
   regards,
   gerhard
  
   [1] https://issues.apache.org/jira/browse/DELTASPIKE-289
  
  
  
   2013/3/22 John D. Ament john.d.am...@gmail.com
  
All,
   
When I look at open issues for DeltaSpike, all I see is under [1] ;
   looking
at this list it's not clear which are ready to be done or which need
  more
info.  In addition when I look at [2] we end up with 50 open issues.
   
V 0.3 was released in August 2012.  I'd like to help get DS to a 0.4
release.  So please help clarify what issues are in need of help.
   
John
   
   
   
[1]
   
   
  
 
 https://issues.apache.org/jira/issues/?jql=project%20%3D%20DELTASPIKE%20AND%20resolution%20%3D%20Unresolved%20AND%20assignee%20is%20EMPTY%20ORDER%20BY%20priority%20DESC
   
[2]
   
   
  
 
 https://issues.apache.org/jira/issues/?jql=project%20%3D%20DELTASPIKE%20AND%20resolution%20%3D%20Unresolved%20ORDER%20BY%20priority%20DESC
   
  
 



[jira] [Commented] (DELTASPIKE-273) Provide a way to obtain all property names or map of properties

2013-03-21 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/DELTASPIKE-273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13608914#comment-13608914
 ] 

John D. Ament commented on DELTASPIKE-273:
--

I think it's understood that if you have a slow config source pulling all 
properties from everywhere will result in slow resolution.  Doesn't meant this 
is a bad feature, just means you have to be responsible.

 Provide a way to obtain all property names or map of properties
 ---

 Key: DELTASPIKE-273
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-273
 Project: DeltaSpike
  Issue Type: Improvement
  Components: Configuration
Reporter: Łukasz Dywicki
Assignee: John D. Ament
 Fix For: 0.4-incubating

 Attachments: DELTASPIKE-273.patch


 ConfigResolver API provides a way to resolve singular property or multivalued 
 property, however there is lack of method which allows to read all properties 
 discovered from all ConfigSources.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


DELTASPIKE-273

2013-03-21 Thread John D. Ament
All,

I'd like to open the floor to anyone else who may have some questions or
concerns about doing DS-273.  Personally its something I need in a project
I'm working on, seeing the bug open made it a good idea for me.

As Gerhard mentions, if you have a slow source it will be slow to respond
for resolution, but I think that's an understood limitation.  I would guess
that the typical usecase here is to be able to display a list of all system
configuration options from a single screen in an app, but only a hunch.

John


DISCUSS DeltaSpike-324

2013-03-21 Thread John D. Ament
All,

I'd like to open the floor to discussion for porting JMS 2 features to
DeltaSpike, specifically the features that added some CDI capabilities to
JMS.

Details of my rough proposal are here:
https://issues.apache.org/jira/browse/DELTASPIKE-324

Importing these features start to deprecate functionality in Seam JMS
(ideal).  These features would give access to an API very similar to the
JMS2 API around CDI injection.

Some limitations:

- This would not be a JMS implementation, simply an inspired interface for
use in Java EE 6/JMS 1.x that leveraged CDI injection based on the rules
for CDI injection of these interfaces.  We would bring in very similar
annotations that supported the injection of the three target types.

- Cannot use the exact interface, since the interface implements
AutoCloseable which is a Java SE 7 interface.  DeltaSpike uses Java SE 6
for a compiler.

- Internally these would have to use the current JMS interfaces of
connection, session.

- Testing would be feasible but require a full Java EE container (e.g. no
testing in Weld/OWB directly) that supported deployment of destinations at
runtime.  Since this doesn't touch MDBs we can manually read from the
destination.

John


[jira] [Assigned] (DELTASPIKE-324) Backport JMS2 Like functionality to DeltaSpike

2013-03-21 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament reassigned DELTASPIKE-324:


Assignee: John D. Ament

 Backport JMS2 Like functionality to DeltaSpike
 --

 Key: DELTASPIKE-324
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-324
 Project: DeltaSpike
  Issue Type: Improvement
Reporter: John D. Ament
Assignee: John D. Ament

 In JMS 2, a few new CDI compatible components were introduced.  They include:
 JMSContext - a CDI capable version of the JMS Session  Connection objects 
 that provides access to more lower level components.
 JMSProducer - A CDI capable version of MessageProducer that uses builder 
 pattern to create new Message objects.
 JMSConsumer - A CDI capable version of MessageConsumer that can retrieve 
 messages in a more type safe fashion.
 Introducing these features would be the first step in adopting a JMS module 
 in DeltaSpike.
 Javadocs can be found here:
 http://jms-spec.java.net/2.0-SNAPSHOT/apidocs/index.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: DISCUSS DeltaSpike-324

2013-03-21 Thread John D. Ament
On Thu, Mar 21, 2013 at 5:34 PM, Mark Struberg strub...@yahoo.de wrote:

 I tend to lean towards +1 simply because EE-7 containers will take another
 year (or 2) to become used in projects.


Agreed.  I think a lot of people learned lessons jumping in to GF3 quickly
after release for EE 6.


 I just think we should first close a few tasks before we open new ones.


+1 as well.  Only wanted to start discussion.  I don't think we should try
to include this in 0.4 (BTW - when's 0.4 coming out?)



 LieGrue,
 strub




 - Original Message -
  From: John D. Ament john.d.am...@gmail.com
  To: deltaspike-dev@incubator.apache.org
  Cc:
  Sent: Thursday, March 21, 2013 6:09 PM
  Subject: Re: DISCUSS DeltaSpike-324
 
  Romain,
 
  Generally, I'm mixed about these.  However I think there's some pretty
  good
  benefits.  For an application developer, maybe none of the other JMS 2
  features are useful to you (the bulk of the feature went into CDI
 support,
  app server integration, and documentation clean up).  You don't want to
  move off of TomEE 1.5.x to TomEE Y (which could support Java EE 7 Web
  Profile) due to downtime in your application.  There's also lead time
  required to impelement JMS 2/Java EE 7 features in your application
 server,
  but perhaps you don't want to or need to wait for the whole thing.
 
  This solution would be DS oriented, I believe requires TransactionScoped
  (which could require the transaction classes be moved away from
  persistence) to operate properly.
 
  There's also the case of using DeltaSpike as your CDI-JMS implementation
 if
  you were a JMS implementer.  I haven't reached out to communities such as
  Apache ActiveMQ or HornetQ to see input here; I know the current
 GlassFish
  implementation calls their lower level directly (and not by wrapping the
  JMS APIs).
 
  John
 
 
  On Thu, Mar 21, 2013 at 12:30 PM, Romain Manni-Bucau
  rmannibu...@gmail.comwrote:
 
   Hi
 
   i'm globally -1 for redoing something which will exist somewhere else
   (basically if somebody wants JavaEE just let him use JavaEE, CDI
  doesn't
   need the full stack IMO). Was my point for JPA, more again on JMS.
 
   It is great to add feature before the specs not once it is (or almost)
   done.
 
   Maybe i didnt fully get what you want to do so maybe share some
 pastebin to
   be sure we speak about the same stuff.
 
   *Romain Manni-Bucau*
   *Twitter: @rmannibucau https://twitter.com/rmannibucau*
   *Blog: **http://rmannibucau.wordpress.com/*
   http://rmannibucau.wordpress.com/
   *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
   *Github: https://github.com/rmannibucau*
 
 
 
   2013/3/21 John D. Ament john.d.am...@gmail.com
 
All,
   
I'd like to open the floor to discussion for porting JMS 2
  features to
DeltaSpike, specifically the features that added some CDI
 capabilities
  to
JMS.
   
Details of my rough proposal are here:
https://issues.apache.org/jira/browse/DELTASPIKE-324
   
Importing these features start to deprecate functionality in Seam JMS
(ideal).  These features would give access to an API very similar to
  the
JMS2 API around CDI injection.
   
Some limitations:
   
- This would not be a JMS implementation, simply an inspired
 interface
   for
use in Java EE 6/JMS 1.x that leveraged CDI injection based on the
  rules
for CDI injection of these interfaces.  We would bring in very
 similar
annotations that supported the injection of the three target types.
   
- Cannot use the exact interface, since the interface implements
AutoCloseable which is a Java SE 7 interface.  DeltaSpike uses Java
 SE
  6
for a compiler.
   
- Internally these would have to use the current JMS interfaces of
connection, session.
   
- Testing would be feasible but require a full Java EE container
 (e.g.
  no
testing in Weld/OWB directly) that supported deployment of
  destinations
   at
runtime.  Since this doesn't touch MDBs we can manually read from
  the
destination.
   
John
   
 
 



Re: DISCUSS DeltaSpike-324

2013-03-21 Thread John D. Ament
Arne,

Not sure I follow.  Typically the only case where you would embed a JMS
implementation is in a Tomcat/Spring configuration.  There are
complications trying to bootstrap a JMS server within an EE container, most
require some JNDI entries to be made, or container provided configuration
(WebSphere, WebLogic, OpenMQ [sort of]).  Others like HornetQ and ActiveMQ
can read configuration purely from a file and start that way.  You'll also
likely run into classloader problems with conflicts between libraries.

Currently the only implementation is OpenMQ.  Since it expects certain JCA
methods to be there, I doubt it's backwards compatible with Java EE 6
containers.

John


On Thu, Mar 21, 2013 at 5:49 PM, Arne Limburg arne.limb...@openknowledge.de
 wrote:

 We should find out if one can simply use a JMS 2.0 implementation and put
 it into an deployment. If that will be possible, we would not need to
 implement it.

 Cheers,
 Arne

 Am 21.03.13 22:34 schrieb Mark Struberg unter strub...@yahoo.de:

 I tend to lean towards +1 simply because EE-7 containers will take
 another year (or 2) to become used in projects.
 
 I just think we should first close a few tasks before we open new ones.
 
 LieGrue,
 strub
 
 
 
 
 - Original Message -
  From: John D. Ament john.d.am...@gmail.com
  To: deltaspike-dev@incubator.apache.org
  Cc:
  Sent: Thursday, March 21, 2013 6:09 PM
  Subject: Re: DISCUSS DeltaSpike-324
 
  Romain,
 
  Generally, I'm mixed about these.  However I think there's some pretty
  good
  benefits.  For an application developer, maybe none of the other JMS 2
  features are useful to you (the bulk of the feature went into CDI
 support,
  app server integration, and documentation clean up).  You don't want to
  move off of TomEE 1.5.x to TomEE Y (which could support Java EE 7 Web
  Profile) due to downtime in your application.  There's also lead time
  required to impelement JMS 2/Java EE 7 features in your application
 server,
  but perhaps you don't want to or need to wait for the whole thing.
 
  This solution would be DS oriented, I believe requires TransactionScoped
  (which could require the transaction classes be moved away from
  persistence) to operate properly.
 
  There's also the case of using DeltaSpike as your CDI-JMS
 implementation if
  you were a JMS implementer.  I haven't reached out to communities such
 as
  Apache ActiveMQ or HornetQ to see input here; I know the current
 GlassFish
  implementation calls their lower level directly (and not by wrapping the
  JMS APIs).
 
  John
 
 
  On Thu, Mar 21, 2013 at 12:30 PM, Romain Manni-Bucau
  rmannibu...@gmail.comwrote:
 
   Hi
 
   i'm globally -1 for redoing something which will exist somewhere else
   (basically if somebody wants JavaEE just let him use JavaEE, CDI
  doesn't
   need the full stack IMO). Was my point for JPA, more again on JMS.
 
   It is great to add feature before the specs not once it is (or almost)
   done.
 
   Maybe i didnt fully get what you want to do so maybe share some
 pastebin to
   be sure we speak about the same stuff.
 
   *Romain Manni-Bucau*
   *Twitter: @rmannibucau https://twitter.com/rmannibucau*
   *Blog: **http://rmannibucau.wordpress.com/*
   http://rmannibucau.wordpress.com/
   *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
   *Github: https://github.com/rmannibucau*
 
 
 
   2013/3/21 John D. Ament john.d.am...@gmail.com
 
All,
   
I'd like to open the floor to discussion for porting JMS 2
  features to
DeltaSpike, specifically the features that added some CDI
 capabilities
  to
JMS.
   
Details of my rough proposal are here:
https://issues.apache.org/jira/browse/DELTASPIKE-324
   
Importing these features start to deprecate functionality in Seam
 JMS
(ideal).  These features would give access to an API very similar
 to
  the
JMS2 API around CDI injection.
   
Some limitations:
   
- This would not be a JMS implementation, simply an inspired
 interface
   for
use in Java EE 6/JMS 1.x that leveraged CDI injection based on the
  rules
for CDI injection of these interfaces.  We would bring in very
 similar
annotations that supported the injection of the three target types.
   
- Cannot use the exact interface, since the interface implements
AutoCloseable which is a Java SE 7 interface.  DeltaSpike uses Java
 SE
  6
for a compiler.
   
- Internally these would have to use the current JMS interfaces of
connection, session.
   
- Testing would be feasible but require a full Java EE container
 (e.g.
  no
testing in Weld/OWB directly) that supported deployment of
  destinations
   at
runtime.  Since this doesn't touch MDBs we can manually read from
  the
destination.
   
John
   
 
 




[jira] [Commented] (DELTASPIKE-273) Provide a way to obtain all property names or map of properties

2013-03-21 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/DELTASPIKE-273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13609648#comment-13609648
 ] 

John D. Ament commented on DELTASPIKE-273:
--

I think perhaps we should discuss on the dev list so that JIRA doesn't become a 
mail archive (which is then archived by our dev mailing list..)

http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/DELTASPIKE-273-td4654621.html

 Provide a way to obtain all property names or map of properties
 ---

 Key: DELTASPIKE-273
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-273
 Project: DeltaSpike
  Issue Type: Improvement
  Components: Configuration
Reporter: Łukasz Dywicki
Assignee: John D. Ament
 Fix For: 0.4-incubating

 Attachments: DELTASPIKE-273.patch


 ConfigResolver API provides a way to resolve singular property or multivalued 
 property, however there is lack of method which allows to read all properties 
 discovered from all ConfigSources.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Pending items for release

2013-03-21 Thread John D. Ament
All,

When I look at open issues for DeltaSpike, all I see is under [1] ; looking
at this list it's not clear which are ready to be done or which need more
info.  In addition when I look at [2] we end up with 50 open issues.

V 0.3 was released in August 2012.  I'd like to help get DS to a 0.4
release.  So please help clarify what issues are in need of help.

John



[1]
https://issues.apache.org/jira/issues/?jql=project%20%3D%20DELTASPIKE%20AND%20resolution%20%3D%20Unresolved%20AND%20assignee%20is%20EMPTY%20ORDER%20BY%20priority%20DESC

[2]
https://issues.apache.org/jira/issues/?jql=project%20%3D%20DELTASPIKE%20AND%20resolution%20%3D%20Unresolved%20ORDER%20BY%20priority%20DESC


[jira] [Comment Edited] (DELTASPIKE-273) Provide a way to obtain all property names or map of properties

2013-03-21 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/DELTASPIKE-273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13609760#comment-13609760
 ] 

John D. Ament edited comment on DELTASPIKE-273 at 3/22/13 1:07 AM:
---

There are lots of cases where a framework will allow a developer to do 
something bad.  We can do our best to greatly discourage them for doing 
something wrong, but ultimately the framework is going to choose what to do.  
The app developer can then go back and point out the issue to the framework 
when it occurs.

Perhaps if there is major concern (so far I only see a +1, a +1 from community 
and a -0.5) in which case we can add a boolean isScannable that indicates 
whether this config source should be scanned for lists of properties/property 
values.

  was (Author: johndament):
There are lots of cases where a framework will allow a developer to do 
something bad.  We can do our best to greatly discourage them for doing 
something wrong, but ultimately 

Perhaps if there is major concern (so far I only see a +1, a +1 from community 
and a -0.5) in which case we can add a boolean isScannable that indicates 
whether this config source should be scanned for lists of properties/property 
values.
  
 Provide a way to obtain all property names or map of properties
 ---

 Key: DELTASPIKE-273
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-273
 Project: DeltaSpike
  Issue Type: Improvement
  Components: Configuration
Reporter: Łukasz Dywicki
Assignee: John D. Ament
 Fix For: 0.4-incubating

 Attachments: DELTASPIKE-273.patch


 ConfigResolver API provides a way to resolve singular property or multivalued 
 property, however there is lack of method which allows to read all properties 
 discovered from all ConfigSources.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: Pending items for release

2013-03-21 Thread John D. Ament
Gerhard,

But currently it's assigned to Mark. So to outsiders, who maybe haven't
been playing close court, someone's already handling it.

Since CODI has a Window Scope, I'm assuming that it's simply a port from
CODI to DS.

John


On Thu, Mar 21, 2013 at 9:21 PM, Gerhard Petracek 
gerhard.petra...@gmail.com wrote:

 hi john,

 [1] is the most blocking one we need for v0.4.

 regards,
 gerhard

 [1] https://issues.apache.org/jira/browse/DELTASPIKE-289



 2013/3/22 John D. Ament john.d.am...@gmail.com

  All,
 
  When I look at open issues for DeltaSpike, all I see is under [1] ;
 looking
  at this list it's not clear which are ready to be done or which need more
  info.  In addition when I look at [2] we end up with 50 open issues.
 
  V 0.3 was released in August 2012.  I'd like to help get DS to a 0.4
  release.  So please help clarify what issues are in need of help.
 
  John
 
 
 
  [1]
 
 
 https://issues.apache.org/jira/issues/?jql=project%20%3D%20DELTASPIKE%20AND%20resolution%20%3D%20Unresolved%20AND%20assignee%20is%20EMPTY%20ORDER%20BY%20priority%20DESC
 
  [2]
 
 
 https://issues.apache.org/jira/issues/?jql=project%20%3D%20DELTASPIKE%20AND%20resolution%20%3D%20Unresolved%20ORDER%20BY%20priority%20DESC
 



[jira] [Updated] (DELTASPIKE-273) Provide a way to obtain all property names or map of properties

2013-03-20 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament updated DELTASPIKE-273:
-

Assignee: John D. Ament

 Provide a way to obtain all property names or map of properties
 ---

 Key: DELTASPIKE-273
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-273
 Project: DeltaSpike
  Issue Type: Improvement
  Components: Configuration
Reporter: Łukasz Dywicki
Assignee: John D. Ament
 Attachments: DELTASPIKE-273.patch


 ConfigResolver API provides a way to resolve singular property or multivalued 
 property, however there is lack of method which allows to read all properties 
 discovered from all ConfigSources.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: cdi-query, no news?

2013-03-20 Thread John D. Ament
 such
   extensibility +
no scopes for queries?
   
*Romain Manni-Bucau*
*Twitter: @rmannibucau https://twitter.com/rmannibucau*
*Blog: **http://rmannibucau.wordpress.com/*
http://rmannibucau.wordpress.com/
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
   
   
   
2013/3/14 Gerhard Petracek gerhard.petra...@gmail.com
   
 hi romain,

 no - it's more about the style we introduced e.g. for
  type-safe
   messages.

 regards,
 gerhard


 2013/3/14 Romain Manni-Bucau rmannibu...@gmail.com

  @Gerhard: hope you don't think of @RepoBinding at
  all...would
be
  too
much
  IMO. Would be great to support aliases/stereotype maybe
 but
   not
 the
 default
 
  Wdyt?
  Le 14 mars 2013 00:11, Gerhard Petracek 
   gerhard.petra...@gmail.com
a
  écrit :
 
   hi thomas,
  
   imo it should follow the basic style/s we have in other
   parts
   already
 (if
   possible).
  
   i guess the simple implementations in the test-module
 are
   too
   simple
to
  see
   the real benefit.
   - it would be nice if you add some drafts to a
 sub-page
  of
 [1].
   (the usage you would prefer and not as it is right
 now.)
  
   regards,
   gerhard
  
   [1]
  https://cwiki.apache.org/confluence/display/DeltaSpike/Drafts
  
  
  
   2013/3/13 Romain Manni-Bucau rmannibu...@gmail.com
  
i'd put it in to start since that's useful for JPA
 but
  it
   shouldn't
 use
   it
at all
   
a question (for next iteration if that's ok for
   everybody)
is
should
   repos
handle transaction or at least define it.
   
*Romain Manni-Bucau*
*Twitter: @rmannibucau 
  https://twitter.com/rmannibucau
   *
*Blog: **http://rmannibucau.wordpress.com/*
http://rmannibucau.wordpress.com/
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
   
   
   
2013/3/13 John D. Ament john.d.am...@gmail.com
   
 Does this have any direct/indirect dependencies on
  JPA
  module?
 Should
this
 maybe become a part of the JPA module?


 On Wed, Mar 13, 2013 at 7:23 AM, Thomas Hug
 thomas@ctp-consulting.comwrote:

  Ok, I guess it's going to be Repository :)
 Updated
   the
   proposal
   branch
 and
  also moved things into a data package/module.
 
  Some remarks for the parts below:
 
  1) EntityManagerRepository wasn't present in the
   Solder
   implementation
-
  there it was possible to simply implement/extend
   EntityManager.
 The
 problem
  with the invocation handler is that it's not
  possible
to
restrict
  the
 bean
  type and exclude EntityManager (or I missed it).
 Otherwise
   I'd
  rather
get
  rid of this interface.
 
  2) WithEntityManager is definitely discussable.
 Not
   the
  full
  solution
and
  not consistent. Could be solved with e.g. putting
  qualifiers
on a
method
  returning an EntityManager (less intuitive) or
something
  like
the
  InvocationHandlerBinding.
 
  3) AbstractEntityRepository is just a convenience
   class
 for
  providing
  concrete query implementations.
 
  On Tue, Mar 12, 2013 at 9:40 PM, Gerhard
 Petracek 
  gerhard.petra...@gmail.com wrote:
 
   hi,
  
   currently we don't have one jira ticket per
 part/feature.
   that's what we used to have for everything we
imported.
  
   the first parts to discuss are imo
   EntityManagerDao,
WithEntityManager
  and
   AbstractEntityDao.
  
   regards,
   gerhard
  
  
  
   2013/3/12 Arne Limburg 
arne.limb...@openknowledge.de
  
+1 for repository, from me too
   
Gesendet mit meinem HTC

Re: Problems using Deltaspike JMX-Extensions together with JRebel

2013-03-20 Thread John D. Ament
But as a quick fix, he can also just set that property to true, right?
 Doesn't need a new build to do that.


On Wed, Mar 20, 2013 at 2:24 PM, Romain Manni-Bucau
rmannibu...@gmail.comwrote:

 Hi,

 thanks for the report,

 it should be fixed on trunk with
 https://issues.apache.org/jira/browse/DELTASPIKE-323


 2013/3/20, Jörg Bauer joerg.ba...@nfon.net:
 
  Hey,
 
  i have problems using the JMX-extensions together with JRebel.
 
  The weld-plugin from jrebel tries to reregister the managed bean if i
 change
  a class that refers to the managed bean.
 
  Possible solutions:
  1. Always try to unregister bean before you do a new registration inside
 the
  MBeanServer
  2. Catch the exception (not sure what is going to happen with this bean,
  Still connected to the application ???)
 
  I also got this exception during he development of the managed bean
 without
  using JRebel. Every time i got an exception inside my managed operation i
  had to restart the complete application server (Glassfish).
 
  It would improve the usability of this great extension...
 
 
  INFO: [2013-03-20 17:31:47] JRebel: Reloading class
  'net.nfon.portal.vm.portal_user.UserDetailViewModel'.
  INFO: [2013-03-20 17:31:47] JRebel: Class
  'net.nfon.portal.vm.portal_user.UserDetailViewModel' has a new non-static
  field 'company', it will be null on existing instances
  INFO: [2013-03-20 17:31:47] JRebel: Class
  'net.nfon.portal.vm.portal_user.UserDetailViewModel' has a new non-static
  field 'userClassName', it will be null on existing instances
  INFO: [2013-03-20 17:31:47] JRebel: Reloading class
  'net.nfon.portal.vm.portal_user.UserDetailViewModel$1'.
  INFO: [2013-03-20 17:31:49] JRebel-Weld: Reconfiguring bean with name
 'null'
  [class net.nfon.portal.vm.portal_user.UserDetailViewModel]
  INFO: [2013-03-20 17:31:50] JRebel: An error occured in a JRebel plugin
  while handling a class reload event:
  SEVERE: org.jboss.weld.exceptions.DefinitionException: Exception List
 with 1
  exceptions:
  Exception 0 :
  javax.enterprise.event.ObserverException
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
  Method)
  at
 
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
  at
 
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  at
 java.lang.reflect.Constructor.newInstance(Constructor.java:525)
  at java.lang.Class.newInstance0(Class.java:374)
  at java.lang.Class.newInstance(Class.java:327)
  at
 
 org.jboss.weld.util.reflection.SecureReflections$16.work(SecureReflections.java:344)
  at
 
 org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)
  at
 
 org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInstantiation(SecureReflectionAccess.java:173)
  at
 
 org.jboss.weld.util.reflection.SecureReflections.newInstance(SecureReflections.java:341)
  at
  org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:33)
  at
  org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:73)
  at
 
 org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:162)
  at
 
 org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:245)
  at
 
 org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:233)
  at
 
 org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:213)
  at
 
 org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:590)
  at
 
 org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:580)
  at
 
 org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:60)
  at
 
 org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:38)
  at
 
 org.jboss.weld.bootstrap.events.ProcessSessionBeanImpl.fire(ProcessSessionBeanImpl.java:35)
  at
 
 org.jboss.weld.bootstrap.AbstractBeanDeployer.deploy(AbstractBeanDeployer.java:126)
  at
 
 org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:217)
  at
 
 org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:358)
  at
  org.jboss.weld.bootstrap.WeldBootstrap.jrRescan(WeldBootstrap.java)
  at
 
 org.zeroturnaround.jrebel.weld.WeldReloader.reloadBeanDefinitionsInternal(WeldReloader.java:320)
  at
 
 org.zeroturnaround.jrebel.weld.WeldReloader.reloadBeanDefinitions(WeldReloader.java:302)
  at
 
 org.zeroturnaround.jrebel.weld.WeldReloader.onClassEvent(WeldReloader.java:159)
  at com.zeroturnaround.javarebel.SDKReloaderImpl.b(JRebel:136)
  at
 
 com.zeroturnaround.javarebel.SDKReloaderImpl.firePendingReloadListeners(JRebel:73)
  at
 
 

[jira] [Commented] (DELTASPIKE-273) Provide a way to obtain all property names or map of properties

2013-03-20 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/DELTASPIKE-273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13608524#comment-13608524
 ] 

John D. Ament commented on DELTASPIKE-273:
--

Thanks! Merged in your changes.

 Provide a way to obtain all property names or map of properties
 ---

 Key: DELTASPIKE-273
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-273
 Project: DeltaSpike
  Issue Type: Improvement
  Components: Configuration
Reporter: Łukasz Dywicki
Assignee: John D. Ament
 Attachments: DELTASPIKE-273.patch


 ConfigResolver API provides a way to resolve singular property or multivalued 
 property, however there is lack of method which allows to read all properties 
 discovered from all ConfigSources.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DELTASPIKE-273) Provide a way to obtain all property names or map of properties

2013-03-20 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament updated DELTASPIKE-273:
-

Fix Version/s: 0.4-incubating

 Provide a way to obtain all property names or map of properties
 ---

 Key: DELTASPIKE-273
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-273
 Project: DeltaSpike
  Issue Type: Improvement
  Components: Configuration
Reporter: Łukasz Dywicki
Assignee: John D. Ament
 Fix For: 0.4-incubating

 Attachments: DELTASPIKE-273.patch


 ConfigResolver API provides a way to resolve singular property or multivalued 
 property, however there is lack of method which allows to read all properties 
 discovered from all ConfigSources.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (DELTASPIKE-273) Provide a way to obtain all property names or map of properties

2013-03-20 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament resolved DELTASPIKE-273.
--

Resolution: Fixed

Tested locally, seems ok.  No regression breaks.  Pushed.

 Provide a way to obtain all property names or map of properties
 ---

 Key: DELTASPIKE-273
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-273
 Project: DeltaSpike
  Issue Type: Improvement
  Components: Configuration
Reporter: Łukasz Dywicki
Assignee: John D. Ament
 Fix For: 0.4-incubating

 Attachments: DELTASPIKE-273.patch


 ConfigResolver API provides a way to resolve singular property or multivalued 
 property, however there is lack of method which allows to read all properties 
 discovered from all ConfigSources.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (DELTASPIKE-321) DefaultMessage.argument(Serializable...) should guard against empty arrays

2013-03-19 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/DELTASPIKE-321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13606300#comment-13606300
 ] 

John D. Ament commented on DELTASPIKE-321:
--

Added two new methods to help support this use case.  I think your description 
and title differ in meaning a bit, but now there's an argumentArray method that 
you can pass your vararg'd reference to apply properly.

 DefaultMessage.argument(Serializable...) should guard against empty arrays
 --

 Key: DELTASPIKE-321
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-321
 Project: DeltaSpike
  Issue Type: Bug
  Components: Core
Reporter: Nicklas Karlsson
Assignee: John D. Ament
 Fix For: 0.4-incubating


 If you have a method with ... parameters, it will be interpreted as an array. 
 If it is passed along to DefaultMessage.argument the object array is 
 interpreted as an object and added as such. Now that I mention it, wouldn't 
 the flow be the same even if the array came populated with data?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (DELTASPIKE-321) DefaultMessage.argument(Serializable...) should guard against empty arrays

2013-03-19 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament resolved DELTASPIKE-321.
--

Resolution: Fixed

 DefaultMessage.argument(Serializable...) should guard against empty arrays
 --

 Key: DELTASPIKE-321
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-321
 Project: DeltaSpike
  Issue Type: Bug
  Components: Core
Reporter: Nicklas Karlsson
Assignee: John D. Ament
 Fix For: 0.4-incubating


 If you have a method with ... parameters, it will be interpreted as an array. 
 If it is passed along to DefaultMessage.argument the object array is 
 interpreted as an object and added as such. Now that I mention it, wouldn't 
 the flow be the same even if the array came populated with data?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DELTASPIKE-321) DefaultMessage.argument(Serializable...) should guard against empty arrays

2013-03-18 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament updated DELTASPIKE-321:
-

Assignee: John D. Ament  (was: Mark Struberg)

 DefaultMessage.argument(Serializable...) should guard against empty arrays
 --

 Key: DELTASPIKE-321
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-321
 Project: DeltaSpike
  Issue Type: Bug
  Components: Core
Affects Versions: 0.4-incubating
Reporter: Nicklas Karlsson
Assignee: John D. Ament

 If you have a method with ... parameters, it will be interpreted as an array. 
 If it is passed along to DefaultMessage.argument the object array is 
 interpreted as an object and added as such. Now that I mention it, wouldn't 
 the flow be the same even if the array came populated with data?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (DELTASPIKE-321) DefaultMessage.argument(Serializable...) should guard against empty arrays

2013-03-18 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/DELTASPIKE-321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13605165#comment-13605165
 ] 

John D. Ament commented on DELTASPIKE-321:
--

Added a test, to reproduce the NPE

java.lang.NullPointerException
at java.util.Collections.addAll(Collections.java:3844)
at 
org.apache.deltaspike.core.impl.message.DefaultMessage.argument(DefaultMessage.java:65)

Commiting a Null check.

 DefaultMessage.argument(Serializable...) should guard against empty arrays
 --

 Key: DELTASPIKE-321
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-321
 Project: DeltaSpike
  Issue Type: Bug
  Components: Core
Affects Versions: 0.4-incubating
Reporter: Nicklas Karlsson
Assignee: John D. Ament

 If you have a method with ... parameters, it will be interpreted as an array. 
 If it is passed along to DefaultMessage.argument the object array is 
 interpreted as an object and added as such. Now that I mention it, wouldn't 
 the flow be the same even if the array came populated with data?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (DELTASPIKE-321) DefaultMessage.argument(Serializable...) should guard against empty arrays

2013-03-18 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament resolved DELTASPIKE-321.
--

Resolution: Fixed

Fixed and validated (finally checked in too!)

 DefaultMessage.argument(Serializable...) should guard against empty arrays
 --

 Key: DELTASPIKE-321
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-321
 Project: DeltaSpike
  Issue Type: Bug
  Components: Core
Reporter: Nicklas Karlsson
Assignee: John D. Ament
 Fix For: 0.4-incubating


 If you have a method with ... parameters, it will be interpreted as an array. 
 If it is passed along to DefaultMessage.argument the object array is 
 interpreted as an object and added as such. Now that I mention it, wouldn't 
 the flow be the same even if the array came populated with data?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (DELTASPIKE-321) DefaultMessage.argument(Serializable...) should guard against empty arrays

2013-03-18 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/DELTASPIKE-321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13605548#comment-13605548
 ] 

John D. Ament commented on DELTASPIKE-321:
--

I'll check it again this evening.

 DefaultMessage.argument(Serializable...) should guard against empty arrays
 --

 Key: DELTASPIKE-321
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-321
 Project: DeltaSpike
  Issue Type: Bug
  Components: Core
Reporter: Nicklas Karlsson
Assignee: John D. Ament
 Fix For: 0.4-incubating


 If you have a method with ... parameters, it will be interpreted as an array. 
 If it is passed along to DefaultMessage.argument the object array is 
 interpreted as an object and added as such. Now that I mention it, wouldn't 
 the flow be the same even if the array came populated with data?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (DELTASPIKE-321) DefaultMessage.argument(Serializable...) should guard against empty arrays

2013-03-18 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/DELTASPIKE-321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13605573#comment-13605573
 ] 

John D. Ament commented on DELTASPIKE-321:
--

I believe this is a limitation of the syntax.  It's implicitly converted to an 
Object[] on the receiving method, so it goes in as a single argument.

I can add something to check to see if an argument is an array.

 DefaultMessage.argument(Serializable...) should guard against empty arrays
 --

 Key: DELTASPIKE-321
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-321
 Project: DeltaSpike
  Issue Type: Bug
  Components: Core
Reporter: Nicklas Karlsson
Assignee: John D. Ament
 Fix For: 0.4-incubating


 If you have a method with ... parameters, it will be interpreted as an array. 
 If it is passed along to DefaultMessage.argument the object array is 
 interpreted as an object and added as such. Now that I mention it, wouldn't 
 the flow be the same even if the array came populated with data?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (DELTASPIKE-321) DefaultMessage.argument(Serializable...) should guard against empty arrays

2013-03-18 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/DELTASPIKE-321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13605899#comment-13605899
 ] 

John D. Ament commented on DELTASPIKE-321:
--

What you're looking for isn't feasible.  When you pass varargs into a method it 
gets erased into an array.

This type of declaration is not valid: String... c = {a,b,c}, varargs 
only can go into method arguments.



 DefaultMessage.argument(Serializable...) should guard against empty arrays
 --

 Key: DELTASPIKE-321
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-321
 Project: DeltaSpike
  Issue Type: Bug
  Components: Core
Reporter: Nicklas Karlsson
Assignee: John D. Ament
 Fix For: 0.4-incubating


 If you have a method with ... parameters, it will be interpreted as an array. 
 If it is passed along to DefaultMessage.argument the object array is 
 interpreted as an object and added as such. Now that I mention it, wouldn't 
 the flow be the same even if the array came populated with data?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (DELTASPIKE-321) DefaultMessage.argument(Serializable...) should guard against empty arrays

2013-03-18 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/DELTASPIKE-321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13605903#comment-13605903
 ] 

John D. Ament commented on DELTASPIKE-321:
--

Also, cannot check to see if the elements are an array.  Cannot do T[] since 
there is no type yet.  Cannot check for every T for all possible types, just 
not feasible.  This also happens when you use String.format.

 DefaultMessage.argument(Serializable...) should guard against empty arrays
 --

 Key: DELTASPIKE-321
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-321
 Project: DeltaSpike
  Issue Type: Bug
  Components: Core
Reporter: Nicklas Karlsson
Assignee: John D. Ament
 Fix For: 0.4-incubating


 If you have a method with ... parameters, it will be interpreted as an array. 
 If it is passed along to DefaultMessage.argument the object array is 
 interpreted as an object and added as such. Now that I mention it, wouldn't 
 the flow be the same even if the array came populated with data?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: DELTASPIKE-321

2013-03-18 Thread John D. Ament
Oops..

Looks like there's only one implementation of message.


On Mon, Mar 18, 2013 at 9:57 PM, John D. Ament john.d.am...@gmail.comwrote:

 All,

 Based on the above mentioned issue, I'd like to add the following two
 methods to the Message interface:

 public Message argument(Serializable[] arguments)

 public Message argument(CollectionSerializable arguments)

 This appears to be the standard way of handling this type of issue.  I'm
 just not sure of all the impact to doing this.  If I make this change, is
 anyone concerned that I touch their module to add these two methods?

 John



[jira] [Updated] (DELTASPIKE-319) JPA module fails to start transaction if a qualifier is not used under certain conditions

2013-03-12 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament updated DELTASPIKE-319:
-

Fix Version/s: (was: 0.3-incubating)
   0.4-incubating
 Assignee: John D. Ament

I can take a look.  I think we should fail the deployment in this case, since 
most EM operations need an active transaction.

 JPA module fails to start transaction if a qualifier is not used under 
 certain conditions
 -

 Key: DELTASPIKE-319
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-319
 Project: DeltaSpike
  Issue Type: Bug
  Components: JPA-Module
Affects Versions: 0.3-incubating
Reporter: Gabriel Sosa
Assignee: John D. Ament
 Fix For: 0.4-incubating


 I stumbled upon this by coincidence and it gave me major headaches as it was 
 a bit hard to realize why and where it happened.
 I started using Picketlink 3.0.0.alpha1 and it provides an IdentityManager 
 that handles precisely that. Now the problem is that after looking at 
 Deltaspike's source code for a while, it does the following:
 On a method annotated with @Transactional:
 @Transactional
 public void myTransactionalMethod() {
 identityManager.createUser(foo);
 }
 As far as I understand, the module needs to know which EntityManager should 
 execute within a transaction, so basically it first scans the annotation 
 (@Transactional) looking for qualifiers, if it finds a qualifier, it performs 
 some checks then starts a transaction. If the annotation does not have a 
 qualifier, then it takes the class that has the @Transactional method, and 
 starts scanning its fields to find the EntityManager used and get its 
 qualifier, if it finds an EntityManager it will take its qualifier. This is 
 expected behaviour but the problem arises when the class calling the 
 transactional method does not have an EntityManager because it doesn't need 
 one. 
 Say in this scenario:
 Public class IdentityManager {
protected EntityManager doBlackMagicToGetAnEntityManager() {
//find an entitymanager.
}
public void createUser(String username) {
doBlackMagicToGetAnEntityManager().persist(new User(username));
}
 }
 @Named
 @RequestScoped
 public class VictimBean {
  @Inject
  IdentityManager identityManager;
  protected String name;
  @Transactional
  public void doCreate() {
 identityManager.createUser(this.name);
  }
 }
 Deltaspike will look for a qualifier, won't find it in Transactional. 
 Therefore, it will scan VictimBean looking for a qualifier for an 
 EntityManager, it won't find one, it won't open a transaction, the 
 application throws an exception because createUser(..) modifies the database 
 and is required to be executed within a transaction.
 Is this behavior expected? Because it is very unpredictable. I didn't really 
 see it coming.
 PicketLink requires me to use a @PicketLink qualifier in a field producer so 
 it can get an entity manager but I have this in my Resources bean, which 
 doesn't directly participate in that code.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Reopened] (DELTASPIKE-319) JPA module fails to start transaction if a qualifier is not used under certain conditions

2013-03-12 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament reopened DELTASPIKE-319:
--


 JPA module fails to start transaction if a qualifier is not used under 
 certain conditions
 -

 Key: DELTASPIKE-319
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-319
 Project: DeltaSpike
  Issue Type: Bug
  Components: JPA-Module
Affects Versions: 0.3-incubating
Reporter: Gabriel Sosa
Assignee: John D. Ament
 Fix For: 0.4-incubating


 I stumbled upon this by coincidence and it gave me major headaches as it was 
 a bit hard to realize why and where it happened.
 I started using Picketlink 3.0.0.alpha1 and it provides an IdentityManager 
 that handles precisely that. Now the problem is that after looking at 
 Deltaspike's source code for a while, it does the following:
 On a method annotated with @Transactional:
 @Transactional
 public void myTransactionalMethod() {
 identityManager.createUser(foo);
 }
 As far as I understand, the module needs to know which EntityManager should 
 execute within a transaction, so basically it first scans the annotation 
 (@Transactional) looking for qualifiers, if it finds a qualifier, it performs 
 some checks then starts a transaction. If the annotation does not have a 
 qualifier, then it takes the class that has the @Transactional method, and 
 starts scanning its fields to find the EntityManager used and get its 
 qualifier, if it finds an EntityManager it will take its qualifier. This is 
 expected behaviour but the problem arises when the class calling the 
 transactional method does not have an EntityManager because it doesn't need 
 one. 
 Say in this scenario:
 Public class IdentityManager {
protected EntityManager doBlackMagicToGetAnEntityManager() {
//find an entitymanager.
}
public void createUser(String username) {
doBlackMagicToGetAnEntityManager().persist(new User(username));
}
 }
 @Named
 @RequestScoped
 public class VictimBean {
  @Inject
  IdentityManager identityManager;
  protected String name;
  @Transactional
  public void doCreate() {
 identityManager.createUser(this.name);
  }
 }
 Deltaspike will look for a qualifier, won't find it in Transactional. 
 Therefore, it will scan VictimBean looking for a qualifier for an 
 EntityManager, it won't find one, it won't open a transaction, the 
 application throws an exception because createUser(..) modifies the database 
 and is required to be executed within a transaction.
 Is this behavior expected? Because it is very unpredictable. I didn't really 
 see it coming.
 PicketLink requires me to use a @PicketLink qualifier in a field producer so 
 it can get an entity manager but I have this in my Resources bean, which 
 doesn't directly participate in that code.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DELTASPIKE-319) Fail deployment of app with JPA module when EM not found in same class.

2013-03-12 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament updated DELTASPIKE-319:
-

Summary: Fail deployment of app with JPA module when EM not found in same 
class.  (was: JPA module fails to start transaction if a qualifier is not used 
under certain conditions)

 Fail deployment of app with JPA module when EM not found in same class.
 ---

 Key: DELTASPIKE-319
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-319
 Project: DeltaSpike
  Issue Type: Bug
  Components: JPA-Module
Affects Versions: 0.3-incubating
Reporter: Gabriel Sosa
Assignee: John D. Ament
 Fix For: 0.4-incubating


 I stumbled upon this by coincidence and it gave me major headaches as it was 
 a bit hard to realize why and where it happened.
 I started using Picketlink 3.0.0.alpha1 and it provides an IdentityManager 
 that handles precisely that. Now the problem is that after looking at 
 Deltaspike's source code for a while, it does the following:
 On a method annotated with @Transactional:
 @Transactional
 public void myTransactionalMethod() {
 identityManager.createUser(foo);
 }
 As far as I understand, the module needs to know which EntityManager should 
 execute within a transaction, so basically it first scans the annotation 
 (@Transactional) looking for qualifiers, if it finds a qualifier, it performs 
 some checks then starts a transaction. If the annotation does not have a 
 qualifier, then it takes the class that has the @Transactional method, and 
 starts scanning its fields to find the EntityManager used and get its 
 qualifier, if it finds an EntityManager it will take its qualifier. This is 
 expected behaviour but the problem arises when the class calling the 
 transactional method does not have an EntityManager because it doesn't need 
 one. 
 Say in this scenario:
 Public class IdentityManager {
protected EntityManager doBlackMagicToGetAnEntityManager() {
//find an entitymanager.
}
public void createUser(String username) {
doBlackMagicToGetAnEntityManager().persist(new User(username));
}
 }
 @Named
 @RequestScoped
 public class VictimBean {
  @Inject
  IdentityManager identityManager;
  protected String name;
  @Transactional
  public void doCreate() {
 identityManager.createUser(this.name);
  }
 }
 Deltaspike will look for a qualifier, won't find it in Transactional. 
 Therefore, it will scan VictimBean looking for a qualifier for an 
 EntityManager, it won't find one, it won't open a transaction, the 
 application throws an exception because createUser(..) modifies the database 
 and is required to be executed within a transaction.
 Is this behavior expected? Because it is very unpredictable. I didn't really 
 see it coming.
 PicketLink requires me to use a @PicketLink qualifier in a field producer so 
 it can get an entity manager but I have this in my Resources bean, which 
 doesn't directly participate in that code.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (DELTASPIKE-295) JsfMessageProducer createJsfMessage return type should be parametrized

2013-03-08 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/DELTASPIKE-295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13597047#comment-13597047
 ] 

John D. Ament commented on DELTASPIKE-295:
--

Mark, are you working this?  Otherwise I can commit the fix.

 JsfMessageProducer createJsfMessage return type should be parametrized
 --

 Key: DELTASPIKE-295
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-295
 Project: DeltaSpike
  Issue Type: Bug
  Components: JSF-Module
Affects Versions: 0.4-incubating
 Environment: Current 0.4-incubating snapshot, Weld 2.0.0.Beta1
Reporter: Marek Schmidt
Assignee: Mark Struberg
 Fix For: 0.4-incubating


 The 
 {code}
 public JsfMessage createJsfMessage(InjectionPoint injectionPoint)
 {code}
 should probably be
 {code}
 public T JsfMessageT createJsfMessage(InjectionPoint injectionPoint)
 {code}
 instead.
 The problem manifests itself in Weld 2.0.0.Beta1:
 {noformat}
 Tests in error: 
   org.apache.deltaspike.test.jsf.impl.message.JsfMessageTest: Could not 
 deploy to container: {JBAS014671: Failed services = 
 {jboss.deployment.unit.\jsfMessageTest.war\.WeldService = 
 org.jboss.msc.service.StartException in service 
 jboss.deployment.unit.\jsfMessageTest.war\.WeldService: 
 org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied 
 dependencies for type [JsfMessageUserMessage] with qualifiers [@Default] at 
 injection point [[BackedAnnotatedField] @Inject private 
 org.apache.deltaspike.test.jsf.impl.message.beans.JsfMessageBackingBean.msg]}}
 {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Assigned] (DELTASPIKE-295) JsfMessageProducer createJsfMessage return type should be parametrized

2013-03-08 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament reassigned DELTASPIKE-295:


Assignee: John D. Ament  (was: Mark Struberg)

 JsfMessageProducer createJsfMessage return type should be parametrized
 --

 Key: DELTASPIKE-295
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-295
 Project: DeltaSpike
  Issue Type: Bug
  Components: JSF-Module
Affects Versions: 0.4-incubating
 Environment: Current 0.4-incubating snapshot, Weld 2.0.0.Beta1
Reporter: Marek Schmidt
Assignee: John D. Ament
 Fix For: 0.4-incubating


 The 
 {code}
 public JsfMessage createJsfMessage(InjectionPoint injectionPoint)
 {code}
 should probably be
 {code}
 public T JsfMessageT createJsfMessage(InjectionPoint injectionPoint)
 {code}
 instead.
 The problem manifests itself in Weld 2.0.0.Beta1:
 {noformat}
 Tests in error: 
   org.apache.deltaspike.test.jsf.impl.message.JsfMessageTest: Could not 
 deploy to container: {JBAS014671: Failed services = 
 {jboss.deployment.unit.\jsfMessageTest.war\.WeldService = 
 org.jboss.msc.service.StartException in service 
 jboss.deployment.unit.\jsfMessageTest.war\.WeldService: 
 org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied 
 dependencies for type [JsfMessageUserMessage] with qualifiers [@Default] at 
 injection point [[BackedAnnotatedField] @Inject private 
 org.apache.deltaspike.test.jsf.impl.message.beans.JsfMessageBackingBean.msg]}}
 {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (DELTASPIKE-295) JsfMessageProducer createJsfMessage return type should be parametrized

2013-03-08 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/DELTASPIKE-295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13597073#comment-13597073
 ] 

John D. Ament commented on DELTASPIKE-295:
--

I have a fix in place but don't seem to have commit rights.
Anyways, I'm not sure Weld 2 is the target anymore, is it now Weld 1.2? Is 
there a profile I can check against?

I made the following changes:

public M JsfMessageM createJsfMessage
..
try
{
@SuppressWarnings(unchecked)
ClassM type = (ClassM) actualTypes[0];
return createJsfMessageFor(injectionPoint, type);
}
...
private M JsfMessageM createJsfMessageFor

but don't seem to see a Weld 1.2 profile.

 JsfMessageProducer createJsfMessage return type should be parametrized
 --

 Key: DELTASPIKE-295
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-295
 Project: DeltaSpike
  Issue Type: Bug
  Components: JSF-Module
Affects Versions: 0.4-incubating
 Environment: Current 0.4-incubating snapshot, Weld 2.0.0.Beta1
Reporter: Marek Schmidt
Assignee: John D. Ament
 Fix For: 0.4-incubating


 The 
 {code}
 public JsfMessage createJsfMessage(InjectionPoint injectionPoint)
 {code}
 should probably be
 {code}
 public T JsfMessageT createJsfMessage(InjectionPoint injectionPoint)
 {code}
 instead.
 The problem manifests itself in Weld 2.0.0.Beta1:
 {noformat}
 Tests in error: 
   org.apache.deltaspike.test.jsf.impl.message.JsfMessageTest: Could not 
 deploy to container: {JBAS014671: Failed services = 
 {jboss.deployment.unit.\jsfMessageTest.war\.WeldService = 
 org.jboss.msc.service.StartException in service 
 jboss.deployment.unit.\jsfMessageTest.war\.WeldService: 
 org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied 
 dependencies for type [JsfMessageUserMessage] with qualifiers [@Default] at 
 injection point [[BackedAnnotatedField] @Inject private 
 org.apache.deltaspike.test.jsf.impl.message.beans.JsfMessageBackingBean.msg]}}
 {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: Push rights to the git repo?

2013-03-08 Thread John D. Ament
Nevermind, it apparently was truly a credential issue.  I was able to login
to JIRA using the credential I knew, but it stopped working in GIT.  Fixed
now.




On Fri, Mar 8, 2013 at 7:28 AM, John D. Ament john.d.am...@gmail.comwrote:

 As far as I know, my username is johndament and I've been a committer
 (who hasn't done much) since the start.  Yet I cannot push, receive
 Authentication failed.

 So please let me know what I might be doing wrong.  Am I not supposed to
 push as johndament?



[jira] [Resolved] (DELTASPIKE-295) JsfMessageProducer createJsfMessage return type should be parametrized

2013-03-08 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament resolved DELTASPIKE-295.
--

Resolution: Fixed

Ran this on the JSF module

mvn clean install -PWeld -Dweld.version=1.2.0-SNAPSHOT -PJBossSnapshots

Which if I had to guess runs in Weld mode using Weld 1.2.  Seems to work fine.  
I'm going to mark this resolved, but feel free to comment if it's not doing 
what you expect.

 JsfMessageProducer createJsfMessage return type should be parametrized
 --

 Key: DELTASPIKE-295
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-295
 Project: DeltaSpike
  Issue Type: Bug
  Components: JSF-Module
Affects Versions: 0.4-incubating
 Environment: Current 0.4-incubating snapshot, Weld 2.0.0.Beta1
Reporter: Marek Schmidt
Assignee: John D. Ament
 Fix For: 0.4-incubating


 The 
 {code}
 public JsfMessage createJsfMessage(InjectionPoint injectionPoint)
 {code}
 should probably be
 {code}
 public T JsfMessageT createJsfMessage(InjectionPoint injectionPoint)
 {code}
 instead.
 The problem manifests itself in Weld 2.0.0.Beta1:
 {noformat}
 Tests in error: 
   org.apache.deltaspike.test.jsf.impl.message.JsfMessageTest: Could not 
 deploy to container: {JBAS014671: Failed services = 
 {jboss.deployment.unit.\jsfMessageTest.war\.WeldService = 
 org.jboss.msc.service.StartException in service 
 jboss.deployment.unit.\jsfMessageTest.war\.WeldService: 
 org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied 
 dependencies for type [JsfMessageUserMessage] with qualifiers [@Default] at 
 injection point [[BackedAnnotatedField] @Inject private 
 org.apache.deltaspike.test.jsf.impl.message.beans.JsfMessageBackingBean.msg]}}
 {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (DELTASPIKE-295) JsfMessageProducer createJsfMessage return type should be parametrized

2013-03-08 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/DELTASPIKE-295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13597161#comment-13597161
 ] 

John D. Ament commented on DELTASPIKE-295:
--

The problem (and actually I missed this earlier), this specific tests requires 
at least web profile to be available.  
Is there a configured JBoss AS 7.x or equivalent that I can use to run Weld 
2.0.0 Beta4?

 JsfMessageProducer createJsfMessage return type should be parametrized
 --

 Key: DELTASPIKE-295
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-295
 Project: DeltaSpike
  Issue Type: Bug
  Components: JSF-Module
Affects Versions: 0.4-incubating
 Environment: Current 0.4-incubating snapshot, Weld 2.0.0.Beta1
Reporter: Marek Schmidt
Assignee: John D. Ament
 Fix For: 0.4-incubating


 The 
 {code}
 public JsfMessage createJsfMessage(InjectionPoint injectionPoint)
 {code}
 should probably be
 {code}
 public T JsfMessageT createJsfMessage(InjectionPoint injectionPoint)
 {code}
 instead.
 The problem manifests itself in Weld 2.0.0.Beta1:
 {noformat}
 Tests in error: 
   org.apache.deltaspike.test.jsf.impl.message.JsfMessageTest: Could not 
 deploy to container: {JBAS014671: Failed services = 
 {jboss.deployment.unit.\jsfMessageTest.war\.WeldService = 
 org.jboss.msc.service.StartException in service 
 jboss.deployment.unit.\jsfMessageTest.war\.WeldService: 
 org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied 
 dependencies for type [JsfMessageUserMessage] with qualifiers [@Default] at 
 injection point [[BackedAnnotatedField] @Inject private 
 org.apache.deltaspike.test.jsf.impl.message.beans.JsfMessageBackingBean.msg]}}
 {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Assigned] (DELTASPIKE-113) Review and Discuss ServiceHandlers

2013-02-12 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament reassigned DELTASPIKE-113:


Assignee: Gerhard Petracek  (was: John D. Ament)

 Review and Discuss ServiceHandlers
 --

 Key: DELTASPIKE-113
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-113
 Project: DeltaSpike
  Issue Type: Sub-task
  Components: Core
Affects Versions: 0.1-incubating
Reporter: John D. Ament
Assignee: Gerhard Petracek
 Fix For: 0.4-incubating


 Discuss the Solder feature ServiceHandler

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: [DISCUSS] [DELTASPIKE-113] Review and Discuss ServiceHandler

2012-12-26 Thread John D. Ament
Pete,

What do you expect the normal way to be?  I figured qualifiers made more
sense since a lot of the CDI functionality is based on qualifiers (though I
think a lot of applications mostly use a single type of an interface or
leverage alternatives).


On Mon, Dec 24, 2012 at 8:47 AM, Pete Muir pm...@redhat.com wrote:

 I think it should work, adding a qualifier, but I don't think it's the
 normal way to do it.

 On 23 Dec 2012, at 16:12, John D. Ament wrote:

  Well, this object is used for a specific case. In my opinion, you should
 be
  able to resolve it using
 
  @Inject @QueryHandler
  private InvocationHandler queryHandler;
 
  Though why you may want to inject it in a client app is unknown to me; it
  does make it easier from an implementation standpoint.
 
  Does the service handler need to have any specific scope? Can it inherit
  the scope of what it's handling? I guess not, since it could be a handler
  to n things.  NormalScope would be appropriate then.
 
 
  On Sat, Dec 22, 2012 at 2:50 PM, Mark Struberg strub...@yahoo.de
 wrote:
 
  I guess because it might overlap with other qualifiers added in some
 cases.
 
  What do we gain for making it a qualifier?
 
  Another important difference to CDI interceptors is that they are always
  @Dependent to the intercepted instance.
  Whereas the ServiceHandler should be of NormalScope, isn't?
 
  LieGrue,
  strub
 
 
 
 
  - Original Message -
  From: John D. Ament john.d.am...@gmail.com
  To: deltaspike-dev@incubator.apache.org
  Cc:
  Sent: Saturday, December 22, 2012 7:56 PM
  Subject: Re: [DISCUSS] [DELTASPIKE-113] Review and Discuss
 ServiceHandler
 
  Pete,
 
  Regarding interceptors - I think what I have is pretty close to the
  interceptor definition, except this should only end up working on a
  class/interface (I think?)
 
  Also, why wouldn't we want the annotation to also be a qualifier?
 
  John
 
 
  On Fri, Dec 21, 2012 at 5:21 AM, Pete Muir pm...@redhat.com wrote:
 
 
  On 21 Dec 2012, at 02:21, John D. Ament wrote:
 
  Hi all,
 
  So just to summarize the current proposal:
 
  - Create a new annotation @ServiceHandlerBinding (in core/api) which
  will
  be placed on on the interface that defines points of the
  - Create a new annotation @ServiceHandler (in core/api) (I think
  based
  on
  below this isn't needed since we have the interface now).
  - Create an extension that can generate object proxies that link
  calls
  to
  methods on the - org.apache.deltaspike.core.api
 
  Define the binding type annotation:
 
  @ServiceHandlerBinding
  @Qualifier
  public @interface QueryHandler {
  }
 
  I don't think we want @Qualifier here.
 
 
  which will define the relationship between the interface/abstract
  class
  that will use the service handler and the class that will serve as
  the
  invocation handler.
 
  For example, we can use @QueryHandler on an interface:
 
  @QueryHandler
  public interface PersonDAO {
  //...
  }
 
  When the container finds this interface it will identify the
  appropriate
  InvocationHandler, based on the following matches:
 
  - Implements InvocationHandler
 
  Yes.
 
  - Is annotated @QueryHandler
 
  Ish, this should follow standard CDI resolution rules, you can copy
 the
  way interceptor bindings work here.
 
  - Is annotated @ServiceHandler
 
  Yes
 
 
  DeltaSpike will provide a proxied object where all abstract method
  calls
  are delegated to the InvocationHandler.  The InvocationHandler will
  need
  to
  have logic to handle all methods as defined within the class, as long
  as
  that method is invoked through the InvocationHandler.
 
  @QueryHandler @ServiceHandler
  public QueryHandlerInvoker implements InvocationHandler {
 
  public Object invoke(Object proxy, Method method, Object[] args) {
  if(method.getName().startsWith(find...){
  //...
  }
  return null;
 
  }
  }
 
  In addition, the ServiceHandlerBinding can be placed on an abstract
  class.
  In this case, only abstract methods will be passed to the
  InvocationHandler.
 
  @QueryHandler
  public abstract interface PersonDAO {
  public String doSomethingConcrete() {
  return concrete;
  }
 
  public abstract Person find(int id);
  }
 
  Only the find method will be wrapped, the method doSomethingConcrete
  will
  be invoked directly.  When interacting with an abstract class, the
  InvocationHandler can call methods on the proxied object.
 
  Finally, the app developer will be able to simply inject their
  interface/abstract class in to their beans to perform work:
 
  @Inject @QueryHandler PersonDAO dao;
 
  Questions:
 
  Should we provide a store (simple key/value map) to keep a history of
  found
  object types and how they map?
 
  You mean like BeanManager.resolveInterceptors() ? I guess this is
  useful.
 
  Should we depend on certain libraries for proxying (e.g. javassist, I
  think
  both Weld  OWB use this still?)
 
  If you want to just cover interfaces, it's easy, you can use proxying
  from
  the JDK

Re: [DISCUSS] [DELTASPIKE-113] Review and Discuss ServiceHandler

2012-12-26 Thread John D. Ament
Gerhard,

I apologize, I hadn't realized you implemented this feature, considering it
has been assigned to me.

John


On Wed, Dec 26, 2012 at 1:56 PM, Gerhard Petracek 
gerhard.petra...@gmail.com wrote:

 hi john,

 that can't be - the described example (/excerpt) is a copy of a working
 example (tested with owb and weld).

 the only use-case (we have so far) which can't be implemented with std. cdi
 mechanisms (due to abstract classes) is DELTASPIKE-60.

 @ InvocationHandler as a separated bean (at runtime):
 currently i can't see a benefit for DELTASPIKE-60.

 regards,
 gerhard



 2012/12/26 John D. Ament john.d.am...@gmail.com

  but the
  specific one annotated a certain way.  The cleanest way (conceptual
 



Re: [DISCUSS] [DELTASPIKE-113] Review and Discuss ServiceHandler

2012-12-26 Thread John D. Ament
Gerhard,

Just so I'm clear, when I was referring to the current implementation, it
was the one shipped with Seam3/Solder:
https://github.com/seam/solder/tree/develop/impl/src/main/java/org/jboss/solder/serviceHandler

It does look like we're doing something very similar by veto'ing the
handler classes.

else if (InvocationHandler.class.isAssignableFrom(beanClass))
{
validateInvocationHandler(beanClass, bindingAnnotationClass);

this.partialBeanHandlers.put(bindingAnnotationClass,
(Class? extends InvocationHandler) beanClass);
pat.veto();
}

I believe as a result, we have to do what you're doing in
PartialBeanLifecycle.create (line 75) to manually create the instance.
 If we just let the scopes handle the scopes whether this is a new
instance or an existing instance should resolve itself more naturally.



On Wed, Dec 26, 2012 at 2:06 PM, John D. Ament john.d.am...@gmail.comwrote:

 Gerhard,

 I apologize, I hadn't realized you implemented this feature, considering
 it has been assigned to me.

 John


 On Wed, Dec 26, 2012 at 1:56 PM, Gerhard Petracek 
 gerhard.petra...@gmail.com wrote:

 hi john,

 that can't be - the described example (/excerpt) is a copy of a working
 example (tested with owb and weld).

 the only use-case (we have so far) which can't be implemented with std.
 cdi
 mechanisms (due to abstract classes) is DELTASPIKE-60.

 @ InvocationHandler as a separated bean (at runtime):
 currently i can't see a benefit for DELTASPIKE-60.

 regards,
 gerhard



 2012/12/26 John D. Ament john.d.am...@gmail.com

  but the
  specific one annotated a certain way.  The cleanest way (conceptual
 





Re: [DISCUSS] [DELTASPIKE-113] Review and Discuss ServiceHandler

2012-12-26 Thread John D. Ament
i think there's a C here as well that can be considered (which is what I've
been driving to):

Allow the scope of the InvocationHandler to drive the scope of the
InvocationProxy (the interface/abstract class we just proxied), with an
override to a narrower scope (if so chosen by the app developer).  This
approach closely mirrors the CDI approach of injecting a session scoped
object in to a request scoped object, or another session scoped object (so
it's relate-able).  We don't veto the InvocationHandler and instead allow
it to retain its original scope (in fact, we don't have to do anything with
the invocation handler until runtime and validation).  We just have to make
sure we install the InvocationProxy with the appropriate scopes.


On Wed, Dec 26, 2012 at 5:15 PM, Mark Struberg strub...@yahoo.de wrote:

 I think we have to first point out all available options.

 Option A.) is to treat the InvocationHandler as CDI bean and create all
 the proxies as @Dependent beans and inject them directly.
 So you would _not_ get a normalscoped CDI proxy (Contextual Reference) but
 our own proxy which is different for each injection point. And this own
 proxy resolves the InvocationHandler as CDI beans.

 Option B.) The InvocationHandler is _no_ CDI bean at all. It's even vetoed
 as bean! We take the scope and the qualifiers, etc from the 'serviced'
 interface/abstract class and create a Bean? for each of it which gets
 those scopes and qualifiers. The registered Beans will create Contextual
 Instances which are _our_ servicehandler proxies. Those will be stored in
 the Contexts. During injection the CDI container will apply all
 NormalScoped mechanism like the CDI proxy over our internal servicehandler
 proxy.

 Both ways will provide similar results, but they each have a different
 impact on side effects, states and handling.

 I think B.) is what Gerhard implemented, right?


 What option was used in Seam?

 LieGrue,
 strub




 - Original Message -
  From: Gerhard Petracek gerhard.petra...@gmail.com
  To: deltaspike-dev@incubator.apache.org
  Cc:
  Sent: Wednesday, December 26, 2012 9:59 PM
  Subject: Re: [DISCUSS] [DELTASPIKE-113] Review and Discuss ServiceHandler
 
  hi john,
 
  as mentioned before:
 
   @ InvocationHandler as a separated bean (at runtime):
   currently i can't see a benefit for DELTASPIKE-60.
 
  regards,
  gerhard
 
 
 
  2012/12/26 John D. Ament john.d.am...@gmail.com
 
   Gerhard,
 
   Just so I'm clear, when I was referring to the current implementation,
  it
   was the one shipped with Seam3/Solder:
 
 
 
 https://github.com/seam/solder/tree/develop/impl/src/main/java/org/jboss/solder/serviceHandler
 
   It does look like we're doing something very similar by veto'ing
  the
   handler classes.
 
   else if (InvocationHandler.class.isAssignableFrom(beanClass))
   {
   validateInvocationHandler(beanClass,
 bindingAnnotationClass);
 
   this.partialBeanHandlers.put(bindingAnnotationClass,
   (Class? extends InvocationHandler) beanClass);
   pat.veto();
   }
 
   I believe as a result, we have to do what you're doing in
   PartialBeanLifecycle.create (line 75) to manually create the instance.
If we just let the scopes handle the scopes whether this is a new
   instance or an existing instance should resolve itself more naturally.
 
 
 
   On Wed, Dec 26, 2012 at 2:06 PM, John D. Ament john.d.am...@gmail.com
   wrote:
 
Gerhard,
   
I apologize, I hadn't realized you implemented this feature,
  considering
it has been assigned to me.
   
John
   
   
On Wed, Dec 26, 2012 at 1:56 PM, Gerhard Petracek 
gerhard.petra...@gmail.com wrote:
   
hi john,
   
that can't be - the described example (/excerpt) is a copy of
  a working
example (tested with owb and weld).
   
the only use-case (we have so far) which can't be implemented
  with std.
cdi
mechanisms (due to abstract classes) is DELTASPIKE-60.
   
@ InvocationHandler as a separated bean (at runtime):
currently i can't see a benefit for DELTASPIKE-60.
   
regards,
gerhard
   
   
   
2012/12/26 John D. Ament john.d.am...@gmail.com
   
 but the
 specific one annotated a certain way.  The cleanest way
  (conceptual

   
   
   
 
 



Re: [DISCUSS] [DELTASPIKE-113] Review and Discuss ServiceHandler

2012-12-22 Thread John D. Ament
Pete,

Regarding interceptors - I think what I have is pretty close to the
interceptor definition, except this should only end up working on a
class/interface (I think?)

Also, why wouldn't we want the annotation to also be a qualifier?

John


On Fri, Dec 21, 2012 at 5:21 AM, Pete Muir pm...@redhat.com wrote:


 On 21 Dec 2012, at 02:21, John D. Ament wrote:

  Hi all,
 
  So just to summarize the current proposal:
 
  - Create a new annotation @ServiceHandlerBinding (in core/api) which will
  be placed on on the interface that defines points of the
  - Create a new annotation @ServiceHandler (in core/api) (I think based on
  below this isn't needed since we have the interface now).
  - Create an extension that can generate object proxies that link calls to
  methods on the - org.apache.deltaspike.core.api
 
  Define the binding type annotation:
 
  @ServiceHandlerBinding
  @Qualifier
  public @interface QueryHandler {
  }

 I don't think we want @Qualifier here.

 
  which will define the relationship between the interface/abstract class
  that will use the service handler and the class that will serve as the
  invocation handler.
 
  For example, we can use @QueryHandler on an interface:
 
  @QueryHandler
  public interface PersonDAO {
  //...
  }
 
  When the container finds this interface it will identify the appropriate
  InvocationHandler, based on the following matches:
 
  - Implements InvocationHandler

 Yes.

  - Is annotated @QueryHandler

 Ish, this should follow standard CDI resolution rules, you can copy the
 way interceptor bindings work here.

  - Is annotated @ServiceHandler

 Yes

 
  DeltaSpike will provide a proxied object where all abstract method calls
  are delegated to the InvocationHandler.  The InvocationHandler will need
 to
  have logic to handle all methods as defined within the class, as long as
  that method is invoked through the InvocationHandler.
 
  @QueryHandler @ServiceHandler
  public QueryHandlerInvoker implements InvocationHandler {
 
  public Object invoke(Object proxy, Method method, Object[] args) {
  if(method.getName().startsWith(find...){
  //...
  }
  return null;
 
  }
  }
 
  In addition, the ServiceHandlerBinding can be placed on an abstract
 class.
  In this case, only abstract methods will be passed to the
  InvocationHandler.
 
  @QueryHandler
  public abstract interface PersonDAO {
  public String doSomethingConcrete() {
  return concrete;
  }
 
  public abstract Person find(int id);
  }
 
  Only the find method will be wrapped, the method doSomethingConcrete will
  be invoked directly.  When interacting with an abstract class, the
  InvocationHandler can call methods on the proxied object.
 
  Finally, the app developer will be able to simply inject their
  interface/abstract class in to their beans to perform work:
 
  @Inject @QueryHandler PersonDAO dao;
 
  Questions:
 
  Should we provide a store (simple key/value map) to keep a history of
 found
  object types and how they map?

 You mean like BeanManager.resolveInterceptors() ? I guess this is useful.

  Should we depend on certain libraries for proxying (e.g. javassist, I
 think
  both Weld  OWB use this still?)

 If you want to just cover interfaces, it's easy, you can use proxying from
 the JDK. Otherwise yes you need to pick a lib.

 Weld doesn't use javassist for proxying, but does for other stuff.

  Since we now use the interface InvocationHandler should we rename the
  binding to be InvocationHandlerBinding?

 Yes, this makes sense

   I also think it's not necessary to
  have @ServiceHandler since the marker interface now exists.

 +1

 
  Comments welcome..
 
  John
 
 
 
 
  On Thu, Dec 20, 2012 at 12:33 PM, Jason Porter lightguard...@gmail.com
 wrote:
 
  +1 for @ServiceHandler
 
 
  On Thu, Dec 20, 2012 at 9:39 AM, John D. Ament john.d.am...@gmail.com
  wrote:
 
  If we're still calling the feature ServiceHandler then why not
  @ServiceHandler?
 
 
  On Thu, Dec 20, 2012 at 11:33 AM, Romain Manni-Bucau
  rmannibu...@gmail.comwrote:
 
  if we don't need it perfect, if we need it we'll just use another name
  @DSHandler, @Handler...whatever it is ;)
 
  Romain Manni-Bucau
  Twitter: @rmannibucau
  Blog: http://rmannibucau.wordpress.com/
  LinkedIn: http://fr.linkedin.com/in/rmannibucau
  Github: https://github.com/rmannibucau
 
 
 
  2012/12/20 Pete Muir pm...@redhat.com:
  :-) Yes for sure. I suspect we dont' need @InvocationHandler at all.
 
  On 20 Dec 2012, at 16:30, John D. Ament wrote:
 
  The problem I have is that now InvocationHandler is both an
  interface
  and
  an @interface which will make it impossible for imports.  I don't
  think
  they should have the same name.
 
 
  On Thu, Dec 20, 2012 at 9:57 AM, Pete Muir pm...@redhat.com
  wrote:
 
 
  On 20 Dec 2012, at 12:32, John D. Ament wrote:
 
  All,
 
  So mostly ok from my perspective.  One thing to note:
 
  @InvocationHandlerBinding
  public @interface Repository {}
 
  @Repository
  public interface

Re: [DISCUSS] [DELTASPIKE-113] Review and Discuss ServiceHandler

2012-12-20 Thread John D. Ament
All,

So mostly ok from my perspective.  One thing to note:

@InvocationHandlerBinding
public @interface Repository {}

@Repository
public interface MyRepository {
  ...
}

@Repository @InvocationHandler
public class MyInvocationHandler implements InvocationHandler {
  ...
}

Why do we have a @InvocationHandler here? Is it supposed to be
@InvocationHandlerBinding instead?  If so, is it really needed here?

Thinking about the implementation for this, I think this actually becomes
easier to use and easier to understand over the Solder solution.  The
implementation of the InvocationHandler becomes a true CDI bean.

 Should DS support Interceptors and Decorators on
InvocationHandler beans?

Do you mean the implementation class or the interface?

John


On Thu, Dec 20, 2012 at 7:06 AM, Romain Manni-Bucau
rmannibu...@gmail.comwrote:

 i'd rather say no because the idea is to ease util extension
 writing. that's clearly not intended to be full business beans IMO (at
 least for a first step)

 That's why i'd leave it as this for now

 wdyt?

 Romain Manni-Bucau
 Twitter: @rmannibucau
 Blog: http://rmannibucau.wordpress.com/
 LinkedIn: http://fr.linkedin.com/in/rmannibucau
 Github: https://github.com/rmannibucau



 2012/12/20 Arne Limburg arne.limb...@openknowledge.de:
  Mark refers to my call stack.
 
  Out of the box this call stack would exist just in OWB, because Weld
 would
  not apply any Interceptors or Decorators...
 
  The question is: Should DS support Interceptors and Decorators on
  InvocationHandler beans? My answer would be: yes, if our implementation
  shall be a preview of CDI-110.
  And that would make things complicated in the implementation...
 
  Am 20.12.12 12:11 schrieb Romain Manni-Bucau unter
  rmannibu...@gmail.com:
 
 is it an issue for servicehandler? i don't think so
 
 it is often used to get util classes dynamically created, it is rarely
 (i never saw it) decorated directly
 
 
 Romain Manni-Bucau
 Twitter: @rmannibucau
 Blog: http://rmannibucau.wordpress.com/
 LinkedIn: http://fr.linkedin.com/in/rmannibucau
 Github: https://github.com/rmannibucau
 
 
 
 2012/12/20 Mark Struberg strub...@yahoo.de:
  we stumbled about this lately. It seems CDI only forces support for
 interceptors and decorators for CDI-annotated classes, but not for
 BeanT which get added via extensions nor even producer methods and
 fields :/
 
 
  Of course OWB does it, but it would be not portable...
 
  LieGrue,
  strub
 
 
 
  - Original Message -
  From: Arne Limburg arne.limb...@openknowledge.de
  To: deltaspike-dev@incubator.apache.org
 deltaspike-dev@incubator.apache.org
  Cc:
  Sent: Thursday, December 20, 2012 10:18 AM
  Subject: Re: [DISCUSS] [DELTASPIKE-113] Review and Discuss
 ServiceHandler
 
 T wo things about this: First: I don't like from the solder approach,
  because the interface is annotated instead of the implementation.
 
  Second, if we implement this we should conceptually make clear how it
  differentiates from Interceptors and Decorators. And personally I
 think
  this would work better with the InvocationHandler approach than with
 an
  approach that is very similar to interceptors.
 
  So +1 for an approach like this:
 
  @HandlesInvocationsOn(MyInterface.class)
  public class MyInvocationHandler implements InvocationHandler {
...
  }
 
  Technically we would register a custom Bean for every found
  InvocationHandler with that annotation and take over the
  interceptor-bindings from the interfaceŠ
  So the invocation stack would be clear, too:
  First Interceptors,
  Second Decorators,
  Third InvocationHandler
 
  Wdyt?
 
  Arne
 
  Am 20.12.12 01:53 schrieb Romain Manni-Bucau unter
  rmannibu...@gmail.com:
 
  +1
 
  that's a need, DS targets CDI 1.0 for now so just make this solder
  part portable ans it should be fine
 
  Romain Manni-Bucau
  Twitter: @rmannibucau
  Blog: http://rmannibucau.wordpress.com/
  LinkedIn: http://fr.linkedin.com/in/rmannibucau
  Github: https://github.com/rmannibucau
 
 
 
  2012/12/20 Jason Porter lightguard...@gmail.com:
   At this point, I'd say just do it as is in solder.
 
 
   On Wed, Dec 19, 2012 at 5:25 PM, John D. Ament
  john.d.am...@gmail.comwrote:
 
   Hi All,
 
   Regarding the two open questions:
 
1) the approach (including the name/s) we agree on will be used
  also
  for
   cdi 1.1 (the only difference is the package)
2) the eg has a different opinion about it -
 
   It looks like the JSR's answer
  (https://issues.jboss.org/browse/CDI-110 )
   is still unresolved - I'm not sure if we can get any further
  answer at
  this
   time.  The last posts on the subject seem to discuss using
  something
  along
   the lines of an invocation handler, which I think would work well.
  Since
   we have some features coming up that are interested in having
  service
   handlers available, do we
 
   1. Implement as is, or similar to, what is currently in Solder?
   2. Push EG on a resolution
   3. Do it using invocation handlers

Re: [DISCUSS] [DELTASPIKE-113] Review and Discuss ServiceHandler

2012-12-20 Thread John D. Ament
If we're still calling the feature ServiceHandler then why not
@ServiceHandler?


On Thu, Dec 20, 2012 at 11:33 AM, Romain Manni-Bucau
rmannibu...@gmail.comwrote:

 if we don't need it perfect, if we need it we'll just use another name
 @DSHandler, @Handler...whatever it is ;)

 Romain Manni-Bucau
 Twitter: @rmannibucau
 Blog: http://rmannibucau.wordpress.com/
 LinkedIn: http://fr.linkedin.com/in/rmannibucau
 Github: https://github.com/rmannibucau



 2012/12/20 Pete Muir pm...@redhat.com:
  :-) Yes for sure. I suspect we dont' need @InvocationHandler at all.
 
  On 20 Dec 2012, at 16:30, John D. Ament wrote:
 
  The problem I have is that now InvocationHandler is both an interface
 and
  an @interface which will make it impossible for imports.  I don't think
  they should have the same name.
 
 
  On Thu, Dec 20, 2012 at 9:57 AM, Pete Muir pm...@redhat.com wrote:
 
 
  On 20 Dec 2012, at 12:32, John D. Ament wrote:
 
  All,
 
  So mostly ok from my perspective.  One thing to note:
 
  @InvocationHandlerBinding
  public @interface Repository {}
 
  @Repository
  public interface MyRepository {
  ...
  }
 
  @Repository @InvocationHandler
  public class MyInvocationHandler implements InvocationHandler {
  ...
  }
 
  Why do we have a @InvocationHandler here? Is it supposed to be
  @InvocationHandlerBinding instead?  If so, is it really needed here?
 
  No, it should be @InvocationHandler, it's analagous to @Interceptor.
 It's
  not 100% necessary as we already implement the interface, which is
 enough
  of the marker.
 
 
  Thinking about the implementation for this, I think this actually
 becomes
  easier to use and easier to understand over the Solder solution.  The
  implementation of the InvocationHandler becomes a true CDI bean.
 
  Should DS support Interceptors and Decorators on
  InvocationHandler beans?
 
  Do you mean the implementation class or the interface?
 
  John
 
 
  On Thu, Dec 20, 2012 at 7:06 AM, Romain Manni-Bucau
  rmannibu...@gmail.comwrote:
 
  i'd rather say no because the idea is to ease util extension
  writing. that's clearly not intended to be full business beans IMO
 (at
  least for a first step)
 
  That's why i'd leave it as this for now
 
  wdyt?
 
  Romain Manni-Bucau
  Twitter: @rmannibucau
  Blog: http://rmannibucau.wordpress.com/
  LinkedIn: http://fr.linkedin.com/in/rmannibucau
  Github: https://github.com/rmannibucau
 
 
 
  2012/12/20 Arne Limburg arne.limb...@openknowledge.de:
  Mark refers to my call stack.
 
  Out of the box this call stack would exist just in OWB, because Weld
  would
  not apply any Interceptors or Decorators...
 
  The question is: Should DS support Interceptors and Decorators on
  InvocationHandler beans? My answer would be: yes, if our
 implementation
  shall be a preview of CDI-110.
  And that would make things complicated in the implementation...
 
  Am 20.12.12 12:11 schrieb Romain Manni-Bucau unter
  rmannibu...@gmail.com:
 
  is it an issue for servicehandler? i don't think so
 
  it is often used to get util classes dynamically created, it is
 rarely
  (i never saw it) decorated directly
 
 
  Romain Manni-Bucau
  Twitter: @rmannibucau
  Blog: http://rmannibucau.wordpress.com/
  LinkedIn: http://fr.linkedin.com/in/rmannibucau
  Github: https://github.com/rmannibucau
 
 
 
  2012/12/20 Mark Struberg strub...@yahoo.de:
  we stumbled about this lately. It seems CDI only forces support
 for
  interceptors and decorators for CDI-annotated classes, but not for
  BeanT which get added via extensions nor even producer methods
 and
  fields :/
 
 
  Of course OWB does it, but it would be not portable...
 
  LieGrue,
  strub
 
 
 
  - Original Message -
  From: Arne Limburg arne.limb...@openknowledge.de
  To: deltaspike-dev@incubator.apache.org
  deltaspike-dev@incubator.apache.org
  Cc:
  Sent: Thursday, December 20, 2012 10:18 AM
  Subject: Re: [DISCUSS] [DELTASPIKE-113] Review and Discuss
  ServiceHandler
 
  T wo things about this: First: I don't like from the solder
  approach,
  because the interface is annotated instead of the implementation.
 
  Second, if we implement this we should conceptually make clear
 how
  it
  differentiates from Interceptors and Decorators. And personally I
  think
  this would work better with the InvocationHandler approach than
 with
  an
  approach that is very similar to interceptors.
 
  So +1 for an approach like this:
 
  @HandlesInvocationsOn(MyInterface.class)
  public class MyInvocationHandler implements InvocationHandler {
  ...
  }
 
  Technically we would register a custom Bean for every found
  InvocationHandler with that annotation and take over the
  interceptor-bindings from the interfaceŠ
  So the invocation stack would be clear, too:
  First Interceptors,
  Second Decorators,
  Third InvocationHandler
 
  Wdyt?
 
  Arne
 
  Am 20.12.12 01:53 schrieb Romain Manni-Bucau unter
  rmannibu...@gmail.com:
 
  +1
 
  that's a need, DS targets CDI 1.0 for now so just make this
 solder
  part

Re: [DISCUSS] [DELTASPIKE-113] Review and Discuss ServiceHandler

2012-12-20 Thread John D. Ament
Hi all,

So just to summarize the current proposal:

- Create a new annotation @ServiceHandlerBinding (in core/api) which will
be placed on on the interface that defines points of the
- Create a new annotation @ServiceHandler (in core/api) (I think based on
below this isn't needed since we have the interface now).
- Create an extension that can generate object proxies that link calls to
methods on the - org.apache.deltaspike.core.api

Define the binding type annotation:

@ServiceHandlerBinding
@Qualifier
public @interface QueryHandler {
}

which will define the relationship between the interface/abstract class
that will use the service handler and the class that will serve as the
invocation handler.

For example, we can use @QueryHandler on an interface:

@QueryHandler
public interface PersonDAO {
//...
}

When the container finds this interface it will identify the appropriate
InvocationHandler, based on the following matches:

- Implements InvocationHandler
- Is annotated @QueryHandler
- Is annotated @ServiceHandler

DeltaSpike will provide a proxied object where all abstract method calls
are delegated to the InvocationHandler.  The InvocationHandler will need to
have logic to handle all methods as defined within the class, as long as
that method is invoked through the InvocationHandler.

@QueryHandler @ServiceHandler
public QueryHandlerInvoker implements InvocationHandler {

public Object invoke(Object proxy, Method method, Object[] args) {
if(method.getName().startsWith(find...){
//...
}
return null;

}
}

In addition, the ServiceHandlerBinding can be placed on an abstract class.
 In this case, only abstract methods will be passed to the
InvocationHandler.

@QueryHandler
public abstract interface PersonDAO {
public String doSomethingConcrete() {
return concrete;
}

public abstract Person find(int id);
}

Only the find method will be wrapped, the method doSomethingConcrete will
be invoked directly.  When interacting with an abstract class, the
InvocationHandler can call methods on the proxied object.

Finally, the app developer will be able to simply inject their
interface/abstract class in to their beans to perform work:

@Inject @QueryHandler PersonDAO dao;

Questions:

Should we provide a store (simple key/value map) to keep a history of found
object types and how they map?
Should we depend on certain libraries for proxying (e.g. javassist, I think
both Weld  OWB use this still?)
Since we now use the interface InvocationHandler should we rename the
binding to be InvocationHandlerBinding?  I also think it's not necessary to
have @ServiceHandler since the marker interface now exists.

Comments welcome..

John




On Thu, Dec 20, 2012 at 12:33 PM, Jason Porter lightguard...@gmail.comwrote:

 +1 for @ServiceHandler


 On Thu, Dec 20, 2012 at 9:39 AM, John D. Ament john.d.am...@gmail.com
 wrote:

  If we're still calling the feature ServiceHandler then why not
  @ServiceHandler?
 
 
  On Thu, Dec 20, 2012 at 11:33 AM, Romain Manni-Bucau
  rmannibu...@gmail.comwrote:
 
   if we don't need it perfect, if we need it we'll just use another name
   @DSHandler, @Handler...whatever it is ;)
  
   Romain Manni-Bucau
   Twitter: @rmannibucau
   Blog: http://rmannibucau.wordpress.com/
   LinkedIn: http://fr.linkedin.com/in/rmannibucau
   Github: https://github.com/rmannibucau
  
  
  
   2012/12/20 Pete Muir pm...@redhat.com:
:-) Yes for sure. I suspect we dont' need @InvocationHandler at all.
   
On 20 Dec 2012, at 16:30, John D. Ament wrote:
   
The problem I have is that now InvocationHandler is both an
 interface
   and
an @interface which will make it impossible for imports.  I don't
  think
they should have the same name.
   
   
On Thu, Dec 20, 2012 at 9:57 AM, Pete Muir pm...@redhat.com
 wrote:
   
   
On 20 Dec 2012, at 12:32, John D. Ament wrote:
   
All,
   
So mostly ok from my perspective.  One thing to note:
   
@InvocationHandlerBinding
public @interface Repository {}
   
@Repository
public interface MyRepository {
...
}
   
@Repository @InvocationHandler
public class MyInvocationHandler implements InvocationHandler {
...
}
   
Why do we have a @InvocationHandler here? Is it supposed to be
@InvocationHandlerBinding instead?  If so, is it really needed
 here?
   
No, it should be @InvocationHandler, it's analagous to
 @Interceptor.
   It's
not 100% necessary as we already implement the interface, which is
   enough
of the marker.
   
   
Thinking about the implementation for this, I think this actually
   becomes
easier to use and easier to understand over the Solder solution.
   The
implementation of the InvocationHandler becomes a true CDI bean.
   
Should DS support Interceptors and Decorators on
InvocationHandler beans?
   
Do you mean the implementation class or the interface?
   
John
   
   
On Thu, Dec 20, 2012 at 7:06 AM, Romain Manni-Bucau
rmannibu

Re: [DISCUSS] [DELTASPIKE-113] Review and Discuss ServiceHandler

2012-12-19 Thread John D. Ament
Hi All,

Regarding the two open questions:

 1) the approach (including the name/s) we agree on will be used also for
cdi 1.1 (the only difference is the package)
 2) the eg has a different opinion about it -

It looks like the JSR's answer (https://issues.jboss.org/browse/CDI-110 )
is still unresolved - I'm not sure if we can get any further answer at this
time.  The last posts on the subject seem to discuss using something along
the lines of an invocation handler, which I think would work well.  Since
we have some features coming up that are interested in having service
handlers available, do we

1. Implement as is, or similar to, what is currently in Solder?
2. Push EG on a resolution
3. Do it using invocation handlers.
4. Do it some other way?

John


On Wed, Apr 4, 2012 at 3:50 PM, Gerhard Petracek gerhard.petra...@gmail.com
 wrote:

 hi john,

 as mentioned before we need the answers to the existing questions.

 regards,
 gerhard



 2012/4/4 John D. Ament john.d.am...@gmail.com

  All,
 
  I kind of let this one and the other drop off my radar, I apologize.  it
  looks like where we last left off, Gerhard was still requesting
 additional
  comments from everyone.  Any other feedback?
 
  John
 
  On Mon, Mar 12, 2012 at 1:06 PM, Gerhard Petracek 
  gerhard.petra...@gmail.com wrote:
 
   hi george,
  
   thx for the information. i thought there might be at least some
  additional
   answers/clarifications, since pete asked for them in several comments.
   - imo we should continue with them.
  
   regards,
   gerhard
  
  
  
   2012/3/12 George Gastaldi gegasta...@gmail.com
  
Hello Gerhard,
   
Yeah, it´s the last state. I know it´s quite old, but I haven´t had
  time
to work on it after that.
Regards,
   
George
   
   
2012/3/12 Gerhard Petracek gerhard.petra...@gmail.com
   
hi george,
   
thx for the link.
i'm not sure if it is the latest state of your discussion and/or
 draft
(at least it's quite old already).
   
regards,
gerhard
   
   
   
2012/3/7 George Gastaldi gegasta...@gmail.com
   
Hi !
   
+1 to #1. I also agree that the term Service Handler might not be
  so
appropriate, so it should be discussed as well.
Here is the latest pull request with some comments from Pete yet to
  be
reviewed: https://github.com/jboss/cdi/pull/28
   
2012/3/7 Pete Muir pm...@redhat.com
   
 Agreed :-)

 George is working on it for CDI 1.1. George, can you share your
proposal
 so far?

 On 7 Mar 2012, at 17:05, Gerhard Petracek wrote:

  hi pete,
 
  independent of my opinion about the feature (which is still
 +0):
  if it should be part of cdi 1.1, we have the following options
  imo:
 
  1) the approach (including the name/s) we agree on will be used
   also
for
  cdi 1.1 (the only difference is the package)
  2) the eg has a different opinion about it -
  2a) the rest of the eg joins this discussion
  2b) we wait for the final version and just allow the same with
  cdi
1.0
  3) if the eg doesn't agree on the idea, it should be re-visited
  for
  deltaspike (if we really need it)
  4) we agree on it independent of the result in cdi 1.1
 
  1-3 is ok for me but -1 for #4
 
  regards,
  gerhard
 
 
 
  2012/3/7 Pete Muir pm...@redhat.com
 
  I'm not sure what you mean by a super interceptor, but if
 you
mean it
 as
  in super man (something better than an interceptor), then I
   would
  disagree, it's actually a specialised form of interceptor.
 
  The best use case I know of is the one John mentions -
 creating
   type
 safe
  references to queries:
 
  @QueryService
  interface UserQuery {
 
   @Query(select u from User u)
   public ListUser getAllUsers();
 
   @Query(select u from User u order by u.name)
   public ListUser getAllUsersSortedByName();
 
  }
 
  Now, it may be the case that there aren't any other use cases
  for
 service
  handlers, in which case we should perhaps just offer this
   particular
  service handler - references to type safe queries - as I think
   this
is
 an
  extremely powerful idea.
 
  Note, that at the moment service handlers are scheduled for
 CDI
   1.1.
 
 
  On 7 Mar 2012, at 02:35, Jason Porter wrote:
 
  Somewhat. I wouldn't really think of them as overrides, they,
  to
me,
  seem more like items to do in addition to whatever the
 original
   impl
 does.
 
  ServiceHandlers to me seem more like super interceptors.
 
  Sent from my iPhone
 
  On Mar 6, 2012, at 19:23, John D. Ament 
   john.d.am...@gmail.com
  wrote:
 
  @jason
 
  I think the concepts are very dissimilar.  servicehandlers
   create
the
  implementation.  delegates are more like overrides

Re: [DISCUSS] DELTASPIKE-60 Review and discuss a generic DAO API

2012-12-19 Thread John D. Ament
I just revived the DS-113 discussion.  I was hoping to see more responses
internally to my question about approach as well as some more progression
from the CDI EG.

John


On Wed, Dec 19, 2012 at 7:18 PM, Romain Manni-Bucau
rmannibu...@gmail.comwrote:

 cdi-query is close to be the answer

 think we are still waiting servicehandler to be imported

 anyone who could do it?

 Romain Manni-Bucau
 Twitter: @rmannibucau
 Blog: http://rmannibucau.wordpress.com/
 LinkedIn: http://fr.linkedin.com/in/rmannibucau
 Github: https://github.com/rmannibucau



 2012/12/20 Jason Porter lightguard...@gmail.com:
  Is CDI Query still being looked at, or are we talking about something
 else?
 
 
  On Wed, Dec 19, 2012 at 3:48 PM, Mark Struberg strub...@yahoo.de
 wrote:
 
  I thought we will for now at least start with the dynamic query api
 which
  is similar to what we do with the typesafe messages?
 
  LieGrue,
  strub
 
 
 
 
  - Original Message -
   From: Arne Limburg arne.limb...@openknowledge.de
   To: deltaspike-dev@incubator.apache.org 
  deltaspike-dev@incubator.apache.org
   Cc:
   Sent: Wednesday, December 19, 2012 11:41 PM
   Subject: [DISCUSS] DELTASPIKE-60 Review and discuss a generic DAO API
  
   Did you notice that Spring-Data ships with a CDI extension?
  
  
   So if we want to implement this, the core question for me is, how does
  our
   implementation distinguish from spring-data?
  
   Cheers,
   Arne
  
   Am 19.12.12 23:33 schrieb Gerhard Petracek (JIRA) unter
   j...@apache.org:
  
  
[
  
 
 https://issues.apache.org/jira/browse/DELTASPIKE-60?page=com.atlassian.jir
   a.plugin.system.issuetabpanels:all-tabpanel ]
  
   Gerhard Petracek updated DELTASPIKE-60:
   ---
  
   Assignee: Romain Manni-Bucau  (was: Gerhard Petracek)
  
Review and discuss a generic DAO API

  
Key: DELTASPIKE-60
URL:
   https://issues.apache.org/jira/browse/DELTASPIKE-60
Project: DeltaSpike
 Issue Type: Task
 Components: Core
   Reporter: Thomas Hug
   Assignee: Romain Manni-Bucau
Fix For: 0.4-incubating
  
  
A CDI extension based DAO API is intended to help simplifying DAOs.
  JPA
   query methods often require repetitive code and clutter DAOs.
 Getting
   rid of boilerplate and allowing to create simple queries
 declaratively
   will help keeping focus on the more complex query logic.
Topics:
- Declarative queries
- Simplified usage of JPA
There is already an existing CDI extension approaching this
 problem:
https://github.com/ctpconsulting/query
http://ctpconsulting.github.com/query/latest
  
   --
   This message is automatically generated by JIRA.
   If you think it was sent incorrectly, please contact your JIRA
   administrators
   For more information on JIRA, see:
  http://www.atlassian.com/software/jira
  
 
 
 
 
  --
  Jason Porter
  http://lightguard-jp.blogspot.com
  http://twitter.com/lightguardjp
 
  Software Engineer
  Open Source Advocate
 
  PGP key id: 926CCFF5
  PGP key available at: keyserver.net, pgp.mit.edu



Re: DeltaSpike Roadmap

2012-12-17 Thread John D. Ament
Almost like a cross community interaction, similar to the way DS started?


On Mon, Dec 17, 2012 at 8:47 AM, Romain Manni-Bucau
rmannibu...@gmail.comwrote:

 +1 for a separated lib but not in DS IMO

 could be a commons-bval or something like that no? depend the amount
 of validations

 that's said bval-extra works too and i think i saw the same in
 hibernate (can't remember the name)

 maybe just another merge project to create, wdyt?

 Romain Manni-Bucau
 Twitter: @rmannibucau
 Blog: http://rmannibucau.wordpress.com/
 LinkedIn: http://fr.linkedin.com/in/rmannibucau
 Github: https://github.com/rmannibucau



 2012/12/17 Gerhard Petracek gerhard.petra...@gmail.com:
  +0 (what we would really need with both bval and hibernate-validator is a
  constraint-lib which is packaged separately from the bv-impl.)
 
  @ thomas:
  besides discussions on the list, you could follow [1].
 
  regards,
  gerhard
 
  [1]
 
 http://incubator.apache.org/deltaspike/suggested-git-workflows.html#discussion-workflow-optional
 
 
 
  2012/12/17 Romain Manni-Bucau rmannibu...@gmail.com
 
  yep: here the extra part:
  http://svn.apache.org/repos/asf/bval/trunk/bval-extras/ (not specific
  IIRC)
 
  and here the email:
 
 
 http://svn.apache.org/repos/asf/bval/trunk/bval-jsr303/src/main/java/org/apache/bval/constraints/EmailValidator.java
 
  Romain Manni-Bucau
  Twitter: @rmannibucau
  Blog: http://rmannibucau.wordpress.com/
  LinkedIn: http://fr.linkedin.com/in/rmannibucau
  Github: https://github.com/rmannibucau
 
 
 
  2012/12/17 John D. Ament john.d.am...@gmail.com:
   +1 to Romain's thoughts.
  
   DeltaSpike shouldn't care about Validations, since
   javax.validator.Validator is already injectable to the application
 stack.
Hibernate Validator already provides an @Email as well, perhaps it
 would
   be worthwhile to encourage that community publish the constraints in
 an
   implementation inspecific fashion (right now I think they're just
 part of
   the JAR).
  
  
   On Mon, Dec 17, 2012 at 7:25 AM, Romain Manni-Bucau
   rmannibu...@gmail.comwrote:
  
   Hi,
  
   about bval we should maybe see with bval project. IMO we shouldnt
 take
   validator which doesn't need CDI (bval-extra is here for that) - i
   think to email one which is already in place in bval-extra
  
   wdyt?
  
   Romain Manni-Bucau
   Twitter: @rmannibucau
   Blog: http://rmannibucau.wordpress.com/
   LinkedIn: http://fr.linkedin.com/in/rmannibucau
   Github: https://github.com/rmannibucau
  
  
  
   2012/12/17 Thomas Andraschko andraschko.tho...@gmail.com:
ng i used in some project is
  
 



  1   2   >