Skip to content

Commit 67c565f

Browse files
Fix the missing sql and the git ignore
1 parent 8fadf6d commit 67c565f

File tree

7 files changed

+4612
-5
lines changed

7 files changed

+4612
-5
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
# Logs and databases #
2424
######################
2525
*.log
26-
*.sql
2726
*.sqlite
2827

2928
# OS generated files #

counterparty-service/pom.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@
7575
<version>5.0.10.Final</version>
7676
<scope>test</scope>
7777
</dependency>
78-
78+
<dependency>
79+
<groupId>io.thorntail</groupId>
80+
<artifactId>logstash</artifactId>
81+
</dependency>
7982

8083
<dependency>
8184
<groupId>com.github.dadrus.jpa-unit</groupId>
@@ -99,5 +102,5 @@
99102
<scope>test</scope>
100103
</dependency>
101104
</dependencies>
102-
105+
103106
</project>

counterparty-service/src/main/java/domain/service/CounterpartyServiceImpl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@
99
import javax.persistence.criteria.CriteriaQuery;
1010

1111
import domain.model.Counterparty;
12+
import lombok.extern.java.Log;
1213

1314
@ApplicationScoped
15+
@Log
1416
public class CounterpartyServiceImpl implements CounterpartyService {
1517

1618
@PersistenceContext(unitName = "CounterpartyPU")
1719
private EntityManager em;
1820

1921
@Override
2022
public List<Counterparty> getAll() {
23+
log.info("retrieve all counterparties");
2124
CriteriaBuilder builder = em.getCriteriaBuilder();
2225
CriteriaQuery<Counterparty> criteria = builder.createQuery( Counterparty.class );
2326
criteria.from(Counterparty.class);

counterparty-service/src/main/resources/META-INF/load.sql

Lines changed: 2000 additions & 0 deletions
Large diffs are not rendered by default.

counterparty-service/src/main/resources/project-defaults.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
thorntail:
1+
swarm:
22
datasources:
33
data-sources:
44
CounterpartyDS:
@@ -10,4 +10,8 @@ thorntail:
1010
myh2:
1111
driver-class-name: org.h2.Driver
1212
xa-datasource-name: org.h2.jdbcx.JdbcDataSource
13-
driver-module-name: com.h2database.h2
13+
driver-module-name: com.h2database.h2
14+
logstash:
15+
hostname: localhost
16+
port: 9300
17+
level: INFO
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
input {
2+
tcp {
3+
port => 9300
4+
}
5+
}
6+
7+
filter {
8+
json {
9+
source => "message"
10+
}
11+
}
12+
13+
output {
14+
stdout { codec => rubydebug }
15+
}

instrument-service/src/main/resources/META-INF/instruments_test_data.sql

Lines changed: 2583 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)