Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
[THORN-2470] update the AMQ booster to use the ejb-mdb fraction
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladicek committed Sep 24, 2019
1 parent 02fe43b commit 745c545
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 22 deletions.
1 change: 0 additions & 1 deletion .gitignore
@@ -1,4 +1,3 @@
target/
audit.log
/README.html
.idea
8 changes: 1 addition & 7 deletions frontend/pom.xml
Expand Up @@ -37,7 +37,7 @@
</dependency>
<dependency>
<groupId>io.thorntail</groupId>
<artifactId>ejb</artifactId>
<artifactId>ejb-mdb</artifactId>
</dependency>
<dependency>
<groupId>io.thorntail</groupId>
Expand All @@ -57,12 +57,6 @@
<version>${version.amqphub-jca}</version>
<type>rar</type>
</dependency>

<!-- I don't think I should need this, but I do -->
<dependency>
<groupId>io.thorntail</groupId>
<artifactId>messaging</artifactId>
</dependency>
</dependencies>

<profiles>
Expand Down
Expand Up @@ -3,7 +3,6 @@
import org.jboss.logging.Logger;

import javax.inject.Inject;
import javax.jms.JMSConnectionFactory;
import javax.jms.JMSContext;
import javax.jms.JMSException;
import javax.jms.Queue;
Expand All @@ -26,7 +25,6 @@ public class FrontendResource {
private GlobalData globalData;

@Inject
@JMSConnectionFactory("java:global/jms/default")
private JMSContext jmsContext;

@POST
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/main/resources/project-defaults.yml
Expand Up @@ -23,3 +23,5 @@ thorntail:
default-resource-adapter-name: default
ee:
annotation-property-replacement: true
default-bindings-service:
jms-connection-factory: java:global/jms/default
9 changes: 1 addition & 8 deletions worker/pom.xml
Expand Up @@ -37,7 +37,7 @@
</dependency>
<dependency>
<groupId>io.thorntail</groupId>
<artifactId>ejb</artifactId>
<artifactId>ejb-mdb</artifactId>
</dependency>
<dependency>
<groupId>io.thorntail</groupId>
Expand All @@ -53,15 +53,8 @@
<version>${version.amqphub-jca}</version>
<type>rar</type>
</dependency>

<!-- I don't think I should need this, but I do -->
<dependency>
<groupId>io.thorntail</groupId>
<artifactId>messaging</artifactId>
</dependency>
</dependencies>


<profiles>
<profile>
<id>openshift</id>
Expand Down
Expand Up @@ -25,7 +25,6 @@
import javax.ejb.TransactionAttributeType;
import javax.inject.Inject;
import javax.jms.Destination;
import javax.jms.JMSConnectionFactory;
import javax.jms.JMSContext;
import javax.jms.JMSException;
import javax.jms.Message;
Expand All @@ -47,7 +46,6 @@ public class RequestListener implements MessageListener {
private GlobalData globalData;

@Inject
@JMSConnectionFactory("java:global/jms/default")
private JMSContext jmsContext;

@Override
Expand Down
2 changes: 0 additions & 2 deletions worker/src/main/java/io/thorntail/example/UpdatesSender.java
Expand Up @@ -24,7 +24,6 @@
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.inject.Inject;
import javax.jms.JMSConnectionFactory;
import javax.jms.JMSContext;
import javax.jms.JMSException;
import javax.jms.Message;
Expand All @@ -39,7 +38,6 @@ public class UpdatesSender {
private GlobalData globalData;

@Inject
@JMSConnectionFactory("java:global/jms/default")
private JMSContext jmsContext;

@Schedule(second = "*/5", minute = "*", hour = "*", persistent = false)
Expand Down
2 changes: 2 additions & 0 deletions worker/src/main/resources/project-defaults.yml
Expand Up @@ -23,3 +23,5 @@ thorntail:
default-resource-adapter-name: default
ee:
annotation-property-replacement: true
default-bindings-service:
jms-connection-factory: java:global/jms/default

0 comments on commit 745c545

Please sign in to comment.