Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion emon-lib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.kloia.eventapis</groupId>
<artifactId>eventapis-parent</artifactId>
<version>0.7.1</version>
<version>0.7.2-SNAPSHOT</version>
</parent>

<artifactId>emon-lib</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion emon/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.kloia.eventapis</groupId>
<artifactId>eventapis-parent</artifactId>
<version>0.7.1</version>
<version>0.7.2-SNAPSHOT</version>
</parent>

<artifactId>emon</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion java-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.kloia.eventapis</groupId>
<artifactId>eventapis-parent</artifactId>
<version>0.7.1</version>
<version>0.7.2-SNAPSHOT</version>
</parent>

<artifactId>java-api</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.kloia.eventapis</groupId>
<artifactId>eventapis-parent</artifactId>
<version>0.7.1</version>
<version>0.7.2-SNAPSHOT</version>
<packaging>pom</packaging>

<name>eventapis-parent</name>
Expand Down
2 changes: 1 addition & 1 deletion spring-integration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.kloia.eventapis</groupId>
<artifactId>eventapis-parent</artifactId>
<version>0.7.1</version>
<version>0.7.2-SNAPSHOT</version>
</parent>

<artifactId>spring-integration</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.kloia.eventapis.spring.configuration;

import com.kloia.eventapis.cassandra.CassandraSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PreDestroy;

@Component
public class CassandraSessionConfig {

@Autowired
private CassandraSession cassandraSession;

@PreDestroy
public void destroy() {
cassandraSession.destroy();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import org.springframework.transaction.TransactionException;
import org.springframework.transaction.TransactionStatus;

import javax.annotation.PreDestroy;
import javax.servlet.DispatcherType;
import java.util.EnumSet;

Expand All @@ -51,9 +50,6 @@ public class EventApisFactory {
@Autowired
private EventApisConfiguration eventApisConfiguration;

@Autowired
private CassandraSession cassandraSession;

@Bean
public OperationContext createOperationContext() {
return new OperationContext();
Expand All @@ -64,12 +60,6 @@ CassandraSession cassandraSession() {
return new CassandraSession(eventApisConfiguration.getStoreConfig());
}

@PreDestroy
public void destroy() {
cassandraSession.destroy();
}


@Bean
public FilterRegistrationBean createOpContextFilter(@Autowired OperationContext operationContext) {
FilterRegistrationBean registration = new FilterRegistrationBean();
Expand Down
2 changes: 1 addition & 1 deletion spring-jpa-view/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.kloia.eventapis</groupId>
<artifactId>eventapis-parent</artifactId>
<version>0.7.1</version>
<version>0.7.2-SNAPSHOT</version>
</parent>

<artifactId>spring-jpa-view</artifactId>
Expand Down