Re: Simple Cron Module

2013-12-06 Thread Thomas Andraschko
Arne, can i rework it and provide a patch?
Do you know what needs to be reworked?


2013/12/4 Thomas Andraschko andraschko.tho...@gmail.com

 Hi,

 Arne's extensions looks good.
 It's a different approach compared to seam but i like it.

 Regards,
 Thomas


 2013/12/4 Arne Limburg arne.limb...@openknowledge.de

 Hi all,

 Gerhard is right. I wrote such stuff some time ago.
 It needs some rework to be integrated in deltaspike, but we can take it.
 You find the code here:

 https://github.com/openknowledge/openknowledge-cdi-extensions/tree/master/openknowledge-cdi-job
 So, if anyone wants to review, feel free…

 Regards,
 Arne

 Von: Gerhard Petracek gerhard.petra...@gmail.commailto:
 gerhard.petra...@gmail.com
 Datum: Mittwoch, 4. Dezember 2013 09:59
 An: dev@deltaspike.apache.orgmailto:dev@deltaspike.apache.org 
 dev@deltaspike.apache.orgmailto:dev@deltaspike.apache.org
 Cc: Arne Limburg arne.limb...@openknowledge.demailto:
 arne.limb...@openknowledge.de
 Betreff: Re: Simple Cron Module

 afaik arne has an existing quartz-integration to donate.

 regards,
 gerhard



 2013/12/3 Romain Manni-Bucau rmannibu...@gmail.commailto:
 rmannibu...@gmail.com
 Oh, so something else ;).

 I'm +0 on this feature since IMO JavaEE 6 offers what is needed but I
 understand your constraint
 Romain Manni-Bucau
 Twitter: @rmannibucau
 Blog: http://rmannibucau.wordpress.com/
 LinkedIn: http://fr.linkedin.com/in/rmannibucau
 Github: https://github.com/rmannibucau



 2013/12/3 Thomas Andraschko andraschko.tho...@gmail.commailto:
 andraschko.tho...@gmail.com:
  My problem is that some customers just have a tomcat, without JavaEE.
 
 
 
 
  2013/12/3 Romain Manni-Bucau rmannibu...@gmail.commailto:
 rmannibu...@gmail.com
 
  Hi
 
  what is issing in JavaEE 6 for you (TimerService already allows a lot)?
  Romain Manni-Bucau
  Twitter: @rmannibucau
  Blog: http://rmannibucau.wordpress.com/
  LinkedIn: http://fr.linkedin.com/in/rmannibucau
  Github: https://github.com/rmannibucau
 
 
 
  2013/12/3 Nathan Dennis nathan.den...@monarchnc.orgmailto:
 nathan.den...@monarchnc.org:
   Beyond what JEE6 Time Service offers,  (and maybe I missed this
  somewhere in there), the ability to store, recall, pause, edit jobs
 would
  be nice using some sort of handle. I was definitely making use of these
  features in Seam 2. Actually, I'm still running that code in places in
  production just for the easy integration with Quartz scheduler. That
 being
  said, the follow up question would be is Delta Spike the right place
 for
  this type of functionality?
  
  
   best regards,
  
   Nathan Dennis | Software Developer
   732 Greenwood Street | Albemarle, NC | 28001
   Main (800) 230-7525tel:%28800%29%20230-7525 | Direct: 704-986-7211
 tel:704-986-7211 | Mobile 704.984.0829tel:704.984.0829
   www.monarchnc.orghttp://www.monarchnc.org |
 nathan.den...@monarchnc.orgmailto:nathan.den...@monarchnc.org
  
  
   -Original Message-
   From: Thomas Andraschko [mailto:andraschko.tho...@gmail.commailto:
 andraschko.tho...@gmail.com]
   Sent: Tuesday, December 03, 2013 7:43 AM
   To: dev@deltaspike.apache.orgmailto:dev@deltaspike.apache.org
   Subject: Simle Cron Module
  
   Hi,
  
   what do you think about a simple cron module like in Seam?
  
   Regards,
   Thomas
  
  
   [http://monarchnc.org/images/monarch/env.png]Please consider the
  environment before printing this email.
   WARNING: This email is intended solely for the person or entity to
 which
  it is addressed and may contain confidential and/or privileged
 information.
  Any review, dissemination, copying, printing or other use of the email
 by
  persons or entities other than the addressee is prohibited. If you have
  received this email in error, please contact the sender immediately and
  delete the material from any computer. If you are unable to determine
 the
  sender of this email, please email Monarch at supp...@monarchnc.org
 mailto:supp...@monarchnc.org or
  contact us at toll free (800) 230-7525tel:%28800%29%20230-7525, and
 advise us of the error.
 





[jira] [Created] (DELTASPIKE-462) BeanManagedUserTransactionStrategy closes transaction even if it is called within EJB

2013-12-06 Thread Mark Struberg (JIRA)
Mark Struberg created DELTASPIKE-462:


 Summary: BeanManagedUserTransactionStrategy closes transaction 
even if it is called within EJB
 Key: DELTASPIKE-462
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-462
 Project: DeltaSpike
  Issue Type: Bug
  Components: JPA-Module
Affects Versions: 0.5
Reporter: Mark Struberg
Assignee: Mark Struberg
 Fix For: 0.6


Happens if BeanManagedUserTransactionStrategy is used.

If a @Stateless EJB invokes a @Transactional CDI bean then the UserTransaction 
is already open. In this case our TransactionStrategy must not commit the 
EntityTransaction but leave it to the outer EJB.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (DELTASPIKE-449) ExceptionHandler not invoked for AccessDeniedException

2013-12-06 Thread JIRA

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

Rainer Schön commented on DELTASPIKE-449:
-

I came across the same issue. In my opinion, it could be solved by providing an 
additional security interceptor, say ExceptionHandlingAwareSecurityInterceptor. 
This interceptor catches the AccessDenied exception and fires a 
ExceptionToCatchEven instead:
{quote}
@Dependent  // important, otherwise it gets not installed in CDI 1.1 when 
bean-discovery-mode=annotated, alternatively you must set all
@SecurityInterceptorBinding
@Interceptor
public class ExceptionHandlingAwareSecurityInterceptor implements Serializable
{
private static final long serialVersionUID = 1L;

@Inject
private SecurityStrategy securityStrategy;
{color:red}
@Inject
private EventExceptionToCatchEvent exEvt;
   {color}

@AroundInvoke
public Object filterDeniedInvocations(InvocationContext invocationContext) 
throws Exception
{

Object retval = null;
  
try {
retval = securityStrategy.execute(invocationContext);

}  catch (AccessDeniedException e) {

  {color:red}exEvt.fire(new ExceptionToCatchEvent(e));{color}   

}
 
return retval; 
}
}
{quote}

I implemented the idea above in my test environment (same package names as the 
original interceptor of course) and it works as expected.

 ExceptionHandler not invoked for AccessDeniedException
 --

 Key: DELTASPIKE-449
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-449
 Project: DeltaSpike
  Issue Type: New Feature
  Components: Security-Module
Affects Versions: 0.5
 Environment: Glassfish 4 / Weld 2.0.4
Reporter: John Schneider
Assignee: Jason Porter

 When an 
 org.apache.deltaspike.security.api.authorization.AccessDeniedException is 
 thrown, a valid ExceptionHandler method is not invoked.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (DELTASPIKE-449) ExceptionHandler not invoked for AccessDeniedException

2013-12-06 Thread Jason Porter (JIRA)

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

Jason Porter commented on DELTASPIKE-449:
-

Rainer: This is great! Would you be okay contributing this up to DeltaSpike? Do 
you have a CLA on file with Apache?

 ExceptionHandler not invoked for AccessDeniedException
 --

 Key: DELTASPIKE-449
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-449
 Project: DeltaSpike
  Issue Type: New Feature
  Components: Security-Module
Affects Versions: 0.5
 Environment: Glassfish 4 / Weld 2.0.4
Reporter: John Schneider
Assignee: Jason Porter

 When an 
 org.apache.deltaspike.security.api.authorization.AccessDeniedException is 
 thrown, a valid ExceptionHandler method is not invoked.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (DELTASPIKE-457) add missing literals

2013-12-06 Thread Gerhard Petracek (JIRA)

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

Gerhard Petracek commented on DELTASPIKE-457:
-

currently we would need:

core:
AggregatedLiteral
BeforeHandlesLiteral
ConfigPropertyLiteral
DefaultCallbackLiteral
ExceptionHandlerLiteral
ExcludeLiteral
HandlesLiteral
InitViewLiteral
InlineViewMetaDataLiteral
JmxManagedLiteral
MBeanLiteral
MessageTemplateLiteral
NavigationParameterLiteral
NotificationInfoLiteral
PostRenderViewLiteral
PreRenderViewLiteral
PreViewActionLiteral
SkipMetaDataMergeLiteral
ViewConfigRootLiteral
ViewMetaDataLiteral
ViewRefLiteral
WindowScopedLiteral


jpa-module:
PersistenceUnitNameLiteral
TransactionalLiteral


jsf-module:
AfterJsfRequestLiteral
AfterPhaseLiteral
BeforeJsfRequestLiteral
BeforePhaseLiteral
JsfPhaseListenerLiteral


security-module:
SecuredLiteral
SecuredReturnLiteral
SecuresLiteral
SecurityBindingTypeLiteral
SecurityParameterBindingLiteral

 add missing literals
 

 Key: DELTASPIKE-457
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-457
 Project: DeltaSpike
  Issue Type: Improvement
Affects Versions: 0.5
Reporter: Gerhard Petracek
Assignee: Gerhard Petracek
Priority: Minor
 Fix For: 1.0.1


 for some annotations we don't have literals (e.g. @Transactional)



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Updated] (DELTASPIKE-457) add missing literals

2013-12-06 Thread Gerhard Petracek (JIRA)

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

Gerhard Petracek updated DELTASPIKE-457:


Fix Version/s: (was: 0.6)
   1.0.1

 add missing literals
 

 Key: DELTASPIKE-457
 URL: https://issues.apache.org/jira/browse/DELTASPIKE-457
 Project: DeltaSpike
  Issue Type: Improvement
Affects Versions: 0.5
Reporter: Gerhard Petracek
Assignee: Gerhard Petracek
Priority: Minor
 Fix For: 1.0.1


 for some annotations we don't have literals (e.g. @Transactional)



--
This message was sent by Atlassian JIRA
(v6.1#6144)