Questions tagged [deltaspike]

Apache DeltaSpike (formerly Seam Solder) is a set of CDI extensions meant to ease application development both in and out of Java EE containers.

DeltaSpike (formerly Seam Solder) is designed to run on different implementations of CDI such as Apache OpenWebBeans and JBoss Weld as well as Java Enterprise servers such as Apache TomEE, JBoss AS7, JBoss WildFly 8, Oracle GlassFish, IBM Websphere, Oracle Weblogic Server 12c. There are also extensions to provide support in Apache Tomcat, JBoss Undertow and Jetty.

129 questions
2
votes
0 answers

Random error SQLNonTransientConnectionException: Connection is closed

From time to time we get the following error in our Wildfly Swarm app server (full stack trace at the end): java.sql.SQLNonTransientConnectionException: (conn=19796385) Connection is closed Can someone explain how these kind of errors can occur?…
Michael Hunziker
  • 2,659
  • 3
  • 22
  • 26
2
votes
2 answers

Programmatic lookup of all beans of parametrized interface

Given the type: public interface Foo{...} I need to use programmatic lookup to find bean that implement the given interface regardless of parameter types. Because of type safe resolution this returns an empty set: final Set>…
Gee2113
  • 258
  • 2
  • 11
2
votes
1 answer

Force new Transacion in DeltaSpike

I have a method using a @Transactional by DeltaSpike, but inside this method i need call a save() and force commit, independent of any exception after. If i use save and after force a expcetion the DeltaSpike rollback everything, like…
Ronaldo Lanhellas
  • 2,975
  • 5
  • 46
  • 92
2
votes
1 answer

Deltaspike Data (CDI + JPA) Custom PrePersistAuditListener and PreUpdateAuditListener for custom java.time.ChronoLocalDateTime at UTC

Deltaspike Ver 1.7.2 on Wildfly 9.0.2.Final I'm using the JPA @EntityListeners(AuditEntityListener.class) and the audit functionality of Deltaspike Data (@CreatedOn, @ModifiedOn and @ModifiedBy annotations) on an entity bean with the difference…
nicoschl
  • 2,346
  • 1
  • 17
  • 17
2
votes
1 answer

Configure Logging for Deltaspike Test-Control

I've CDI based test using following dependencies: org.apache.deltaspike.modules deltaspike-test-control-module-api 1.6.0
lefloh
  • 10,653
  • 3
  • 28
  • 50
2
votes
3 answers

DeltaSpike @Scheduled does not firing

My job annotated with @Scheduled does not fire the task. I am using Wildfly 10 deltaspike-scheduler-module 1.5.3 quartz 2.2.2 Quartz alone works fine. My actual code problem: @Scheduled(cronExpression = "0 * * * * ?") public class CronTask…
icaro56
  • 167
  • 9
2
votes
2 answers

Message driven beans and transactions

I know there are a lot a of questions about message driven beans and transactions, however I've not been able to find the answer to (what I think) must be a common scenario. I have a service that can be called to send emails. When it's called, it…
StuPointerException
  • 7,117
  • 5
  • 29
  • 54
2
votes
1 answer

un-scope @ViewAccessScoped Beans on Tab close

I have a JSF-App with two @ViewAccessScoped Beans and two Pages/Views, one Bean for a Search, on Bean for details. The details Bean references the @ViewAccessScoped so the data available when I go back to the Search. No other CDI-References. The…
hinneLinks
  • 3,673
  • 26
  • 40
2
votes
3 answers

@PersistenceContext is always null

I'm trying to get CDI (with Open Web Beans) working from within a unit test using Delta Spike (@RunWith(CdiTestRunner.class)). Dependency injection is working fine but my EntityManagerFactory is always null: public class EntityManagerProducer { …
StuPointerException
  • 7,117
  • 5
  • 29
  • 54
2
votes
0 answers

CDI (Weld), DeltaSpike, Tomcat and persistence.xml

I am setting up a new project using Tomcat, Weld (for CDI) and DeltaSpike (Data, JPA and JSF modules) I have reached the point now where I am trying to create a JPA repository (backed by Hibernate) by following the directions in the DeltaSpike…
2
votes
1 answer

RequestDispatcher#forward is redirecting instead of forwarding if I add Deltaspike

I'm deploying a web application into JBoss EAP6 and Glassfish 4, every thing works as expected till the point where I add deltaskpike jars to the projet. Once deltaskpike enabled, the following code inside a…
faissalb
  • 1,739
  • 1
  • 12
  • 14
2
votes
1 answer

Custom ConfigSource in DeltaSpike

How do I create a custom ConfigSource in DeltaSpike that read config data from legacy code? Does DeltaSpike also support configuration changes? i.e. the injected value will get changed when the underlying configuration has been changed
DarVar
  • 16,882
  • 29
  • 97
  • 146
2
votes
1 answer

@RolesAllowed doesn't work properly

I have to restrict the access of a method only to the users who have a certain role. The IdentityManager is built correctly. I have this controller class. @Named @RequestScoped @LoggedIn public class UserController{ @RolesAllowed({"tt"}) …
Luca G.
  • 86
  • 4
2
votes
1 answer

DeltaSpike with JTA data sources

Has anyone tried to setup transactionality in Jetty using Apache's DeltaSpike? I have a webapp that I am trying to run in Jetty that uses CDI and has JTA data sources. My transaction manager is not being injected and it is null, therefore causing…
user2533384
  • 107
  • 1
  • 10
2
votes
2 answers

CDI (Weld) + DeltaSpike + Converstation

I'm currently trying to get CDI (Weld to be more precise) to work with JSF 2 and a long running conversation. I'm starting the conversation in @ConversationScoped my backing bean. I'm also creating a @ConversationScoped entity manager. Sadly the…
egore911
  • 438
  • 3
  • 9
1
2
3
8 9